pct create
Create LXC containers in Proxmox. More information: https://pve.proxmox.com/pve-docs/pct.1.html#cli_pct_create.
- Create a container from a template with 4GB size, give it 512MiB of memory, and unlimited access to CPU:
pct --rootfs :4
- Give a container a specific memory limit in megabytes:
pct --rootfs : --memory
- Give a container a hostname and a password:
pct --rootfs : --hostname --password
- Give a container network access:
pct --rootfs : --net0 name=,bridge=,ip= --features nesting=1
- Start a container immediately after creation:
pct --rootfs : --start
- Set the container to start on system boot:
pct --rootfs : --onboot
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
