LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pct-set

modifies the configuration of a Proxmox LXC container

TLDR

Enable autostart on boot
$ pct set 100 --onboot
copy
Set static IP
$ pct set 100 --net0 name=eth0,bridge=vmbr0,ip=10.0.0.100/24,gw=10.0.0.1
copy
Set memory and CPU limit
$ pct set 100 --memory 8192 --cpulimit 4
copy
Mount host directory
$ pct set 100 --mp0 /host/path,mp=/guest/mount
copy
Set tags
$ pct set 100 --tags tag1,tag2
copy
Delete options
$ pct set 100 --delete net0,mp0
copy

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid