Update docs/tech_docs/OpenWrt.md
This commit is contained in:
@@ -19,9 +19,10 @@
|
||||
Use the following command to create a new container with reduced memory and storage:
|
||||
|
||||
```bash
|
||||
pct create 100 /var/lib/vz/template/cache/openwrt-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype unmanaged --hostname openwrt-0 --password changeme --tag network --storage local-lvm --memory 128 --swap 0 --rootfs local-lvm:1,size=512M \
|
||||
pct create 100 /var/lib/vz/template/cache/openwrt-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype unmanaged --hostname openwrt-0 --password changeme --tag network --storage local-lvm --memory 256 --swap 128 --rootfs local-lvm:1,size=512M \
|
||||
--net0 name=eth0,bridge=vmbr0,firewall=1 \
|
||||
--net1 name=eth1,bridge=vmbr1,firewall=1
|
||||
--net1 name=eth1,bridge=vmbr1,firewall=1 \
|
||||
--cores 1 --cpuunits 500 --onboot 1 --debug 0
|
||||
```
|
||||
|
||||
```bash
|
||||
@@ -132,7 +133,8 @@ After updating the configuration files:
|
||||
|
||||
Alpine Container (ID: 300):
|
||||
```bash
|
||||
pct create 300 /var/lib/vz/template/cache/alpine-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype alpine --hostname alpine-0 --password changeme --tag docker --storage local-lvm --cores 2 --memory 1024 --swap 256 --rootfs local-lvm:1,size=8G --net0 name=eth0,bridge=vmbr0,firewall=1
|
||||
pct create 300 /var/lib/vz/template/cache/alpine-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype alpine --hostname alpine-0 --password changeme --tag docker --storage local-lvm --cores 2 --memory 1024 --swap 256 --rootfs local-lvm:1,size=8G --net0 name=eth0,bridge=vmbr0,firewall=1 \
|
||||
--keyctl 1 --nesting 1 --cpuunits 1000 --onboot 1 --debug 0
|
||||
```
|
||||
|
||||
```bash
|
||||
@@ -201,7 +203,6 @@ Save and exit
|
||||
service sshd restart
|
||||
```
|
||||
|
||||
|
||||
```bash
|
||||
apk add docker
|
||||
```
|
||||
@@ -244,5 +245,6 @@ docker run hello-world
|
||||
|
||||
Kali Linux Container (ID: 200):
|
||||
```bash
|
||||
pct create 200 /var/lib/vz/template/cache/kali-default-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype debian --hostname kali-0 --password changeme --tag tools --storage local-lvm --cores 2 --memory 1024 --swap 512 --rootfs local-lvm:1,size=8G --net0 name=eth0,bridge=vmbr0,firewall=1
|
||||
pct create 200 /var/lib/vz/template/cache/kali-default-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype debian --hostname kali-0 --password changeme --tag tools --storage local-lvm --cores 2 --memory 2048 --swap 1024 --rootfs local-lvm:1,size=10G --net0 name=eth0,bridge=vmbr0,firewall=1 \
|
||||
--cpuunits 1500 --onboot 1 --debug 0 --features nesting=1,keyctl=1
|
||||
```
|
||||
Reference in New Issue
Block a user