pct-create
Create LXC containers in Proxmox. tldr-pages
On Linux
Linux
Create a container from a template with 4GB size, give it 512MiB of memory, and unlimited access to CPU
pct [cr 100 local:vztmpl/distro-name.tar.zst --rootfs local-lvm:4IdentifyGive a container a specific memory limit in megabytes
pct [cr 100 local:vztmpl/distro-name.tar.zst --rootfs local-lvm:4 --memory 8192IdentifyGive a container a hostname and a password
pct [cr 100 local:vztmpl/distro-name.tar.zst --rootfs local-lvm:4 --hostname hostname --password passwordIdentifyGive a container network access
pct [cr 100 local:vztmpl/distro-name.tar.zst --rootfs local-lvm:4 --net0 name=eth0,bridge=vmbr0,ip=dhcp --features nesting=1IdentifyStart a container immediately after creation
pct [cr 100 local:vztmpl/distro-name.tar.zst --rootfs local-lvm:4 --startIdentifySet the container to start on system boot
pct [cr 100 local:vztmpl/distro-name.tar.zst --rootfs local-lvm:4 --onbootIdentify