diff --git a/pages/linux/pct-create.md b/pages/linux/pct-create.md index 15069852e1..e4c5959747 100644 --- a/pages/linux/pct-create.md +++ b/pages/linux/pct-create.md @@ -3,22 +3,26 @@ > Create LXC containers in Proxmox. > More information: . -- Create a container from a template with 4GB size, give it 512MiB of memory and unlimited access to CPU: +- 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}}:4` -- Create a container from a template and give it a specific memory limit in megabytes: +- Give a container a specific memory limit in megabytes: `pct {{[cr|create]}} {{100}} {{local:vztmpl/distro-name.tar.zst}} --rootfs {{local-lvm}}:{{4}} --memory {{8192}}` -- Create a container from a template and give it a hostname and a password: +- Give a container a hostname and a password: `pct {{[cr|create]}} {{100}} {{local:vztmpl/distro-name.tar.zst}} --rootfs {{local-lvm}}:{{4}} --hostname {{hostname}} --password {{password}}` -- Create a container from a template and give it network access: +- Give a container 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=1` - Start a container immediately after creation: `pct {{[cr|create]}} {{100}} {{local:vztmpl/distro-name.tar.zst}} --rootfs {{local-lvm}}:{{4}} --start` + +- Set the container to start on system boot: + +`pct {{[cr|create]}} {{100}} {{local:vztmpl/distro-name.tar.zst}} --rootfs {{local-lvm}}:{{4}} --onboot`