← 返回命令列表

Linux command

qm 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List

qm list

Create

qm create 100 --scsi0 local-lvm:4 --net0 e1000 --cdrom local:iso/image.iso

Show

qm config 100

Start

qm start 100

Shutdown

qm shutdown 100 && qm wait 100

Destroy

qm destroy 100 --purge

说明

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.

参数

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

FAQ

What is the qm command used for?

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.

How do I run a basic qm example?

Run `qm list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does list do in qm?

List all virtual machines