pct-set
modifies the configuration of a Proxmox LXC container
TLDR
Enable autostart on boot
$ pct set 100 --onboot
Set static IP$ pct set 100 --net0 name=eth0,bridge=vmbr0,ip=10.0.0.100/24,gw=10.0.0.1
Set memory and CPU limit$ pct set 100 --memory 8192 --cpulimit 4
Mount host directory$ pct set 100 --mp0 /host/path,mp=/guest/mount
Set tags$ pct set 100 --tags tag1,tag2
Delete options$ pct set 100 --delete net0,mp0
SYNOPSIS
pct set vmid [OPTIONS]
DESCRIPTION
pct set modifies the configuration of a Proxmox LXC container. Changes may require a container restart to take effect. This command can configure networking, resources, mount points, and other container properties.
PARAMETERS
vmid
The numeric ID of the container--onboot boolean
Start container on host boot--memory megabytes
Memory limit in MB--cpulimit number
CPU time limit (e.g., 4 for 4 cores worth)--netN config
Network interface configuration--mpN config
Mount point configuration for bind mounts--tags list
Comma-separated list of tags--delete list
Remove specified options
CAVEATS
Some changes require stopping the container first. Network changes may disconnect running sessions. Mount points must exist on the host system.
HISTORY
pct set is part of the Proxmox VE virtualization platform for managing LXC containers.
SEE ALSO
pct(1), pct-config(1)
