Options (1)
booleanCreate a container from a template with 4GB size, give it 512MiB of memory and unlimited access to CPU
Example:
pct {{[cr|create]}} {{100}} {{local:vztmpl/distro-name.tar.zst}} --rootfs {{local-lvm}}:4Examples (5)
Create a container from a template with 4GB size, give it 512MiB of memory and unlimited access to CPU
pct [cr|create] 100 local:vztmpl/distro-name.tar.zst --rootfs local-lvm:4Create a container from a template and give it a specific memory limit in megabytes
pct [cr|create] 100 local:vztmpl/distro-name.tar.zst --rootfs local-lvm:4 --memory 8192Create a container from a template and give it a hostname and a password
Create a container from a template and give it network access
pct [cr|create] 100 local:vztmpl/distro-name.tar.zst --rootfs local-lvm:4 --net0 name=eth0,bridge=vmbr0,ip=dhcp|manual|10.0.0.1/24 --features nesting=1Start a container immediately after creation
pct [cr|create] 100 local:vztmpl/distro-name.tar.zst --rootfs local-lvm:4 --startmade by @shridhargupta | data from tldr-pages