Update docs/tech_docs/OpenWrt.md
This commit is contained in:
@@ -5,7 +5,19 @@ Here's an updated OpenWRT container configuration with a smaller footprint:
|
||||
Use the following command to create a new container with reduced memory and storage:
|
||||
|
||||
```bash
|
||||
pct create 101 /var/lib/vz/template/cache/openwrt-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype unmanaged --hostname openwrt-0 --storage local-lvm --memory 128 --swap 0 --rootfs local-lvm:2,size=1G \
|
||||
pct create 100 /var/lib/vz/template/cache/openwrt-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype unmanaged --hostname openwrt-0 --storage local-lvm --memory 128 --swap 0 --rootfs local-lvm:2,size=1G \
|
||||
--net0 name=eth0,bridge=vmbr0,firewall=1 \
|
||||
--net1 name=eth1,bridge=vmbr1,firewall=1
|
||||
```
|
||||
|
||||
```bash
|
||||
pct create 101 /var/lib/vz/template/cache/openwrt-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype unmanaged --hostname openwrt-1 --storage local-lvm --memory 128 --swap 0 --rootfs local-lvm:2,size=1G \
|
||||
--net0 name=eth0,bridge=vmbr0,firewall=1 \
|
||||
--net1 name=eth1,bridge=vmbr1,firewall=1
|
||||
```
|
||||
|
||||
```bash
|
||||
pct create 102 /var/lib/vz/template/cache/openwrt-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype unmanaged --hostname openwrt-2 --storage local-lvm --memory 128 --swap 0 --rootfs local-lvm:2,size=1G \
|
||||
--net0 name=eth0,bridge=vmbr0,firewall=1 \
|
||||
--net1 name=eth1,bridge=vmbr1,firewall=1
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user