qm
Manage Proxmox VE virtual machines
TLDR
List all VMs
$ qm list
Create a VM$ qm create 100 --scsi0 local-lvm:4 --net0 e1000 --cdrom local:iso/image.iso
Show VM configuration$ qm config 100
Start a VM$ qm start 100
Shutdown and wait$ qm shutdown 100 && qm wait 100
Destroy a VM$ qm destroy 100 --purge
SYNOPSIS
qm command [OPTIONS] [vmid]
DESCRIPTION
qm is the QEMU/KVM Virtual Machine Manager for Proxmox VE. It provides a comprehensive command-line interface for creating, configuring, starting, stopping, and managing virtual machines.
PARAMETERS
list
List all virtual machinescreate vmid
Create a new virtual machineconfig vmid
Display VM configurationset vmid
Modify VM configurationstart vmid
Start a virtual machinestop vmid
Stop a virtual machine (hard shutdown)shutdown vmid
Gracefully shutdown via ACPIdestroy vmid
Remove a virtual machinesnapshot vmid name
Create a snapshotrollback vmid name
Rollback to a snapshotclone vmid newid
Clone a virtual machinemigrate vmid target
Migrate VM to another node--purge
Remove all related resources when destroying
CONFIGURATION
/etc/pve/qemu-server/<vmid>.conf
Per-VM configuration file containing hardware settings, disk definitions, network interfaces, and boot options./etc/pve/datacenter.cfg
Cluster-wide datacenter configuration affecting default VM settings and migration behavior.
CAVEATS
VM IDs must be unique across the Proxmox cluster. Operations may require root privileges. Some commands require the VM to be in a specific state (running or stopped).
HISTORY
qm is part of the Proxmox VE virtualization platform, which combines KVM hypervisor and LXC containers with a web-based management interface.
