qm
QEMU/KVM Virtual Machine Manager. Some subcommands such as `list`, `start`, `stop`, `clone`, etc. have their own usage documentation.
More info →Subcommands (41)
This command is an alias of `qm guest cmd`.
Clean up resources on QEMU/KVM Virtual Machine Manager like tap devices, VGPUs, etc. Called after a VM shuts down, crashes, etc.
Create a copy of virtual machine on QEMU/KVM Virtual Machine Manager.
Manage Cloud-Init settings.
Display the virtual machine configuration with pending configuration changes applied.
Create or restore a virtual machine on QEMU/KVM Virtual Machine Manager.
Delete virtual machine snapshots.
Destroy a virtual machine in QEMU/KVM Virtual Machine Manager.
Manage disk images.
Manage a VM guest agent.
Display help for a command.
This command is an alias of `qm disk import`.
List all virtual machines.
List snapshots of virtual machines.
Migrate a virtual machine. Used to create a new migration task.
Enter the QEMU Monitor interface.
This command is an alias of `qm disk move`.
Used by `qmigrate`. It should not be invoked manually.
Stop embedded nbd server.
Get the virtual machine configuration with both current and pending values.
Reboot a virtual machine by shutting it down, and starting it again after applying pending changes.
This command is an alias of `qm disk rescan`.
Reset a virtual machine on QEMU/KVM Virtual Machine Manager.
This command is an alias of `qm disk resize`.
Resume a virtual machine.
Rollback the VM state to a specified snapshot.
Send QEMU monitor encoding key event to a virtual machine.
Set virtual machine options.
Show command-line which is used to start the VM (debug info).
Shutdown a virtual machine on QEMU/KVM Virtual Machine Manager.
Create virtual machine snapshots.
Start a virtual machine on QEMU/KVM Virtual Machine Manager.
Show virtual machine status.
Stop a virtual machine.
Suspend a virtual machine (VM) in the Proxmox Virtual Environment (PVE). Use `--skiplock` and `--skiplockstorage` flags with caution, as they may lead to data corruption in certain situations.
Create a Proxmox VM template.
Attach to the serial console of a VM.
This command is an alias of `qm disk unlink`.
Unlock a virtual machine in QEMU/KVM Virtual Machine Manager.
Proxy Virtual Machine VNC (Virtual network computing) traffic to `stdin` or `stdout`.
Wait until the virtual machine is stopped.
Options (5)
booleanUsing an ISO file uploaded on the local storage, create a virtual machine with a 4 GB SCSI disk on the `local-lvm` storage and an ID of 100
qm {{[cr|create]}} {{100}} --scsi0 {{local-lvm:4}} --net0 {{e1000}} --cdrom {{local:iso/proxmox-mailgateway_2.1.iso}}booleanShow the configuration of a virtual machine, specifying its ID
qm {{[co|config]}} {{100}}booleanSend a shutdown request, then wait until the virtual machine is stopped
qm {{[shu|shutdown]}} {{100}} && qm {{[w|wait]}} {{100}}booleanSend a shutdown request, then wait until the virtual machine is stopped
qm {{[shu|shutdown]}} {{100}} && qm {{[w|wait]}} {{100}}booleanDestroy a virtual machine and remove all related resources
qm {{[des|destroy]}} {{100}} --purgeExamples (6)
List all virtual machines
Using an ISO file uploaded on the local storage, create a virtual machine with a 4 GB SCSI disk on the `local-lvm` storage and an ID of 100
qm [cr|create] 100 --scsi0 local-lvm:4 --net0 e1000 --cdrom local:iso/proxmox-mailgateway_2.1.isoShow the configuration of a virtual machine, specifying its ID
qm [co|config] 100Start a specific virtual machine
qm start 100Send a shutdown request, then wait until the virtual machine is stopped
Destroy a virtual machine and remove all related resources
qm [des|destroy] 100 --purge