Update docs/tech_docs/linux_lab_starting.md
This commit is contained in:
@@ -192,4 +192,40 @@ You can also configure firewall rules using `iptables` or by modifying the `/etc
|
||||
|
||||
Remember to update and upgrade the Kali Linux packages inside the container and install any additional tools you require for your typical use case.
|
||||
|
||||
Note: The resource allocation (memory, swap, and disk size) provided in this example is a general recommendation. You may need to adjust these values based on your specific requirements and the tasks you intend to perform with the Kali Linux container.
|
||||
Note: The resource allocation (memory, swap, and disk size) provided in this example is a general recommendation. You may need to adjust these values based on your specific requirements and the tasks you intend to perform with the Kali Linux container.
|
||||
|
||||
---
|
||||
|
||||
Here are the adjusted container creation commands with scaled-down resources:
|
||||
|
||||
OpenWRT Container (ID: 100):
|
||||
```bash
|
||||
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 64 --swap 0 --rootfs local-lvm:2,size=512M --net0 name=eth0,bridge=vmbr0,firewall=1 --net1 name=eth1,bridge=vmbr1,firewall=1
|
||||
```
|
||||
|
||||
Changes:
|
||||
- Reduced memory to 64MB
|
||||
- Reduced rootfs size to 512MB
|
||||
|
||||
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 --tag tools --storage local-lvm --memory 512 --swap 256 --rootfs local-lvm:2,size=4G --net0 name=eth0,bridge=vmbr0,firewall=1 --net1 name=eth1,bridge=vmbr1,firewall=1
|
||||
```
|
||||
|
||||
Changes:
|
||||
- Reduced memory to 512MB
|
||||
- Reduced swap to 256MB
|
||||
- Reduced rootfs size to 4GB
|
||||
|
||||
Alpine Container (ID: 300):
|
||||
```bash
|
||||
pct create 300 /var/lib/vz/template/cache/alpine-default-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype alpine --hostname alpine-0 --tag docker --storage local-lvm --memory 64 --swap 0 --rootfs local-lvm:2,size=512M --net0 name=eth0,bridge=vmbr0,firewall=1 --net1 name=eth1,bridge=vmbr1,firewall=1
|
||||
```
|
||||
|
||||
Changes:
|
||||
- Reduced memory to 64MB
|
||||
- Reduced rootfs size to 512MB
|
||||
|
||||
Please note that these resource adjustments are based on general recommendations for minimal resource usage. Depending on your specific use case and the applications you plan to run inside the containers, you might need to fine-tune these values further.
|
||||
|
||||
Remember to monitor the performance and resource utilization of your containers after creating them with these scaled-down resources. If you encounter any issues or need more resources, you can always adjust the values accordingly using the `pct resize` command.
|
||||
Reference in New Issue
Block a user