LinuxCommandLibrary

qm

Manage Proxmox VE virtual machines

TLDR

List all VMs

$ qm list
copy
Create a VM
$ qm create 100 --scsi0 local-lvm:4 --net0 e1000 --cdrom local:iso/image.iso
copy
Show VM configuration
$ qm config 100
copy
Start a VM
$ qm start 100
copy
Shutdown and wait
$ qm shutdown 100 && qm wait 100
copy
Destroy a VM
$ qm destroy 100 --purge
copy

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 machines
create vmid
Create a new virtual machine
config vmid
Display VM configuration
set vmid
Modify VM configuration
start vmid
Start a virtual machine
stop vmid
Stop a virtual machine (hard shutdown)
shutdown vmid
Gracefully shutdown via ACPI
destroy vmid
Remove a virtual machine
snapshot vmid name
Create a snapshot
rollback vmid name
Rollback to a snapshot
clone vmid newid
Clone a virtual machine
migrate 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.

SEE ALSO

qm-start(1), qm-stop(1), qm-config(1), pct(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community