Back to Help and Info

VM and CT Management Commands

This section provides commands for managing virtual machines (VMs) and containers (CTs) in Proxmox VE. Learn how to list, start, stop, configure, and perform other operations on your virtualized environments.

Listing and Information

CommandDescriptionAction
qm listList all virtual machines
pct listList all LXC containers
qm config <vmid>Show VM configuration. Use the correct <vmid>
pct config <ctid>Show container configuration. Use the correct <ctid>

VM Management

CommandDescriptionAction
qm start <vmid>Start a virtual machine. Use the correct <vmid>
qm stop <vmid>Force stop a virtual machine. Use the correct <vmid>
qm shutdown <vmid>Gracefully shutdown a virtual machine
qm reset <vmid>Reset a virtual machine (hard reboot)
qm suspend <vmid>Suspend a virtual machine
qm resume <vmid>Resume a suspended virtual machine
qm destroy <vmid>Delete a VM (irreversible). Use the correct <vmid>

Container Management

CommandDescriptionAction
pct start <ctid>Start a container. Use the correct <ctid>
pct stop <ctid>Force stop a container. Use the correct <ctid>
pct shutdown <ctid>Gracefully shutdown a container
pct restart <ctid>Restart a container
pct destroy <ctid>Delete a CT (irreversible). Use the correct <ctid>

Container Operations

CommandDescriptionAction
pct exec <ctid> -- getent passwd | column -t -s :Show CT users in table format
pct exec <ctid> -- ps aux --sort=-%mem | headTop memory processes in CT
pct enter <ctid>Enter container shell
pct push <ctid> <source> <dest>Copy file from host to container
pct pull <ctid> <source> <dest>Copy file from container to host

Usage Notes

  • Replace <vmid> with the ID of your virtual machine
  • Replace <ctid> with the ID of your container
  • Use qm list or pct list to find the IDs of your VMs and containers
  • Be careful with destroy commands as they permanently delete the VM or container