From 7358d0912f3caf068abad1f45d7248266f2ed45d Mon Sep 17 00:00:00 2001 From: medusa Date: Fri, 19 Apr 2024 05:20:30 +0000 Subject: [PATCH] Update docs/tech_docs/linux_lab_starting.md --- docs/tech_docs/linux_lab_starting.md | 44 ++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/docs/tech_docs/linux_lab_starting.md b/docs/tech_docs/linux_lab_starting.md index 463b8fa..c7e5689 100644 --- a/docs/tech_docs/linux_lab_starting.md +++ b/docs/tech_docs/linux_lab_starting.md @@ -1,3 +1,28 @@ +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 128 --swap 0 --rootfs local-lvm:1,size=1G --net0 name=eth0,bridge=vmbr0,firewall=1 --net1 name=eth1,bridge=vmbr1,firewall=1 +``` +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 2048 --swap 512 --rootfs local-lvm:1,size=16G --net0 name=eth0,bridge=vmbr0,firewall=1 --net1 name=eth1,bridge=vmbr1,firewall=1 +``` +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 1024 --swap 256 --rootfs local-lvm:1,size=8G --net0 name=eth0,bridge=vmbr0,firewall=1 --net1 name=eth1,bridge=vmbr1,firewall=1 +``` + +```bash +pct start 100 +``` +```bash +pct stop 100 +``` +```bash +pct destroy 100 +``` + +--- + Here's the updated response with the additional information on installing packages via the CLI on OpenWrt: ### Proxmox Container Creation @@ -200,28 +225,21 @@ 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:1,size=512M --net0 name=eth0,bridge=vmbr0,firewall=1 --net1 name=eth1,bridge=vmbr1,firewall=1 +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:1,size=1G --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:1,size=2G --net0 name=eth0,bridge=vmbr0,firewall=1 --net1 name=eth1,bridge=vmbr1,firewall=1 +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 2048 --swap 512 --rootfs local-lvm:1,size=16G --net0 name=eth0,bridge=vmbr0,firewall=1 --net1 name=eth1,bridge=vmbr1,firewall=1 +``` +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 1024 --swap 256 --rootfs local-lvm:1,size=8G --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:1,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