Update docs/tech_docs/linux_lab_starting.md

This commit is contained in:
2024-04-19 05:00:23 +00:00
parent cadc129fcd
commit 2d9f65c092

View File

@@ -5,15 +5,15 @@ Here's the updated response with the additional information on installing packag
Use the following command to create a new container with reduced memory and storage: Use the following command to create a new container with reduced memory and storage:
```bash ```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 --tag network --storage local-lvm --memory 128 --swap 0 --rootfs local-lvm:2,size=1G \
--net0 name=eth0,bridge=vmbr0,firewall=1 \ --net0 name=eth0,bridge=vmbr0,firewall=1 \
--net1 name=eth1,bridge=vmbr1,firewall=1 --net1 name=eth1,bridge=vmbr1,firewall=1
``` ```
Key changes: ```bash
- Reduced memory to 128MB (`--memory 128`) pct create 200 /var/lib/vz/template/cache/kali-default-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype debian --hostname kali-0 --storage local-lvm --memory 1024 --swap 512 --rootfs local-lvm:2,size=8G --net0 name=eth0,bridge=vmbr0,firewall=1 --net1 name=eth1,bridge=vmbr1,firewall=1
- Disabled swap (`--swap 0`) ```
- Reduced rootfs size to 1GB (`--rootfs local-lvm:2,size=1G`)
### OpenWRT Firewall Configuration ### OpenWRT Firewall Configuration