No command found.
Virtual Machines (VMs)#
List all VMs#
Start a VM#
Stop a VM (graceful)#
Stop a VM (hard)#
Restart a VM#
Show VM configuration#
Delete a VM#
Clone a VM#
qm clone <vmid> <new-vmid> --name <name> --full
Convert VM to template#
Connect to VM console (via QEMU agent)#
Containers (LXC)#
List all containers#
Start a container#
Stop a container#
Restart a container#
Show container configuration#
Delete a container#
Enter container shell#
Clone a container#
pct clone <ctid> <new-ctid> --hostname <name>
Snapshots#
Create VM snapshot#
qm snapshot <vmid> <snapname> --description "<description>"
Restore VM snapshot#
qm rollback <vmid> <snapname>
List VM snapshots#
Delete VM snapshot#
qm delsnapshot <vmid> <snapname>
Create container snapshot#
pct snapshot <ctid> <snapname>
Restore container snapshot#
pct rollback <ctid> <snapname>
Backup & Restore#
Manually back up a VM/CT#
vzdump <vmid> --storage <storage> --mode snapshot --compress zstd
Restore backup (VM)#
qmrestore <backup-file> <vmid> --storage <storage>
Restore backup (CT)#
pct restore <ctid> <backup-file> --storage <storage>
List all backups#
Storage#
Show storage overview#
List available images/volumes#
Import disk image (e.g. .qcow2)#
qm importdisk <vmid> <image-file> <storage>
Show thin-pool status (LVM)#
Cluster#
Show cluster status#
List all nodes#
Remove node from cluster#
Show Corosync log#
journalctl -u corosync -f
Networking#
Show network configuration#
cat /etc/network/interfaces
Reload network config (without reboot)#
Show bridge interfaces#
Show Open vSwitch status#
Nodes & System#
Show node status#
pvesh get /nodes/<nodename>/status
Show resource usage (CPU, RAM, Disk)#
pvesh get /nodes/<nodename>/rrddata --timeframe hour
Show Proxmox version#
Update Proxmox packages#
apt update && apt dist-upgrade
Show subscription status#
Show high availability (HA) status#
Certificates#
Order Let’s Encrypt certificate#
Renew certificate#
List ACME accounts#
pvenode acme account list
Hardware Configuration (LXC Containers)#
Change CPU cores#
pct set <ctid> --cores <n>
Set CPU limit (share of CPU time, 0 = unlimited)#
pct set <ctid> --cpulimit <n>
Set CPU units (relative weight)#
pct set <ctid> --cpuunits <n>
Change RAM (in MB)#
pct set <ctid> --memory <mb>
Change swap (in MB)#
pct set <ctid> --swap <mb>
Add network interface#
pct set <ctid> --net<n> name=eth<n>,bridge=<bridge>,ip=<ip/cidr>,gw=<gateway>
Remove network interface#
pct set <ctid> --delete net<n>
Show current container configuration#
Hardware Configuration (VMs)#
Change CPU configuration (cores, sockets, type)#
qm set <vmid> --cores <n> --sockets <n> --cpu <type>
Change RAM (in MB)#
qm set <vmid> --memory <mb>
Adjust balloon memory (dynamic)#
qm set <vmid> --balloon <mb>
Add network interface#
qm set <vmid> --net<n> virtio,bridge=<bridge>
Remove network interface#
qm set <vmid> --delete net<n>
Add PCI device for passthrough#
qm set <vmid> --hostpci<n> <pci-id>,pcie=1
Add USB device for passthrough#
qm set <vmid> --usb<n> host=<vendor-id>:<product-id>
Remove PCI/USB passthrough device#
qm set <vmid> --delete hostpci<n>
qm set <vmid> --delete usb<n>
List available PCI devices on host#
Show IOMMU groups#
find /sys/kernel/iommu_groups/ -type l | sort -V
Disk Resize#
Resize VM disk (Proxmox side)#
qm resize <vmid> <disk> +<size>G
Show current disk size of a VM#
qm config <vmid> | grep -E '^(scsi|virtio|ide|sata)'
Resize LXC container disk#
pct resize <ctid> rootfs +<size>G
Extend partition in guest (Linux, after VM resize)#
growpart /dev/<disk> <partition-number>
Extend filesystem — ext4#
resize2fs /dev/<partition>
Extend filesystem — xfs#
Extend filesystem — LVM (PV + LV + FS)#
pvresize /dev/<disk>
lvextend -l +100%FREE /dev/<vg>/<lv>
resize2fs /dev/<vg>/<lv>
Check disk usage in guest#
Logs & Diagnostics#
Follow Proxmox daemon log#
journalctl -u pvedaemon -f
Show task log for a VM#
pvesh get /nodes/<nodename>/tasks --vmid <vmid>
Show all running tasks#
Check network connectivity to node#