5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-02-02 09:47:07 +03:00
pve-docs/qm.1-synopsis.adoc

1118 lines
32 KiB
Plaintext
Raw Normal View History

2016-01-05 11:14:03 +01:00
*qm* `<COMMAND> [ARGS] [OPTIONS]`
2016-12-01 10:57:38 +01:00
*qm agent* `<vmid> <command>`
Execute Qemu Guest Agent commands.
`<vmid>`: `<integer> (1 - N)` ::
The (unique) ID of the VM.
`<command>`: `<fsfreeze-freeze | fsfreeze-status | fsfreeze-thaw | fstrim | get-fsinfo | get-memory-block-info | get-memory-blocks | get-time | get-vcpus | info | network-get-interfaces | ping | shutdown | suspend-disk | suspend-hybrid | suspend-ram>` ::
The QGA command.
2016-01-05 11:14:03 +01:00
*qm clone* `<vmid> <newid>` `[OPTIONS]`
Create a copy of virtual machine/template.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`<newid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
VMID for the clone.
2016-11-05 16:49:43 +01:00
`-description` `<string>` ::
2016-01-05 11:14:03 +01:00
Description for the new VM.
2016-11-05 16:49:43 +01:00
`-format` `<qcow2 | raw | vmdk>` ::
2016-01-05 11:14:03 +01:00
Target format for file storage.
+
NOTE: Requires option(s): `full`
2016-11-05 16:49:43 +01:00
`-full` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Create a full copy of all disk. This is always done when you clone a normal VM. For VM templates, we try to create a linked clone by default.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-name` `<string>` ::
2016-01-05 11:14:03 +01:00
Set a name for the new VM.
2016-11-05 16:49:43 +01:00
`-pool` `<string>` ::
2016-01-05 11:14:03 +01:00
Add the new VM to the specified pool.
2016-11-05 16:49:43 +01:00
`-snapname` `<string>` ::
2016-01-05 11:14:03 +01:00
The name of the snapshot.
2016-11-05 16:49:43 +01:00
`-storage` `<string>` ::
2016-01-05 11:14:03 +01:00
Target storage for full clone.
+
NOTE: Requires option(s): `full`
2016-11-05 16:49:43 +01:00
`-target` `<string>` ::
2016-01-05 11:14:03 +01:00
Target node. Only allowed if the original VM is on shared storage.
*qm config* `<vmid>` `[OPTIONS]`
Get current virtual machine configuration. This does not include pending
configuration changes (see 'pending' API).
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`-current` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
Get current values (instead of pending values).
*qm create* `<vmid>` `[OPTIONS]`
Create or restore a virtual machine.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`-acpi` `<boolean>` ('default =' `1`)::
2016-01-05 11:14:03 +01:00
Enable/disable ACPI.
2016-11-05 16:49:43 +01:00
`-agent` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
Enable/disable Qemu GuestAgent.
2016-11-05 16:49:43 +01:00
`-archive` `<string>` ::
2016-01-05 11:14:03 +01:00
The backup file.
2016-11-05 16:49:43 +01:00
`-args` `<string>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Arbitrary arguments passed to kvm.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-autostart` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
Automatic restart after crash (currently ignored).
2016-11-05 16:49:43 +01:00
`-balloon` `<integer> (0 - N)` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Amount of target RAM for the VM in MB. Using zero disables the ballon driver.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-bios` `<ovmf | seabios>` ('default =' `seabios`)::
2016-01-05 11:14:03 +01:00
Select BIOS implementation.
2016-11-05 16:49:43 +01:00
`-boot` `[acdn]{1,4}` ('default =' `cdn`)::
2016-01-05 11:14:03 +01:00
Boot on floppy (a), hard disk (c), CD-ROM (d), or network (n).
`-bootdisk` `(ide|sata|scsi|virtio)\d+` ::
Enable booting from specified disk.
2016-11-05 16:49:43 +01:00
`-cdrom` `<volume>` ::
2016-01-05 11:14:03 +01:00
This is an alias for option -ide2
2016-11-05 16:49:43 +01:00
`-cores` `<integer> (1 - N)` ('default =' `1`)::
2016-01-05 11:14:03 +01:00
The number of cores per socket.
2016-11-05 16:49:43 +01:00
`-cpu` `[cputype=]<enum> [,hidden=<1|0>]` ::
2016-01-05 11:14:03 +01:00
Emulated CPU type.
2016-11-05 16:49:43 +01:00
`-cpulimit` `<number> (0 - 128)` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
2016-04-07 08:20:32 +02:00
Limit of CPU usage.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-cpuunits` `<integer> (0 - 500000)` ('default =' `1024`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
CPU weight for a VM.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-description` `<string>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Description for the VM. Only used on the configuration web interface. This is saved as comment inside the configuration file.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-efidisk0` `[file=]<volume> [,format=<enum>] [,size=<DiskSize>]` ::
2016-09-29 12:18:57 +02:00
Configure a Disk for storing EFI vars
2016-11-05 16:49:43 +01:00
`-force` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Allow to overwrite existing VM.
+
NOTE: Requires option(s): `archive`
2016-11-05 16:49:43 +01:00
`-freeze` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Freeze CPU at startup (use 'c' monitor command to start execution).
2017-01-27 11:25:55 +01:00
`-hostpci[n]` `[host=]<HOSTPCIID[;HOSTPCIID2...]> [,pcie=<1|0>] [,rombar=<1|0>] [,romfile=<string>] [,x-vga=<1|0>]` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Map host PCI devices into guest.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-hotplug` `<string>` ('default =' `network,disk,usb`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Selectively enable hotplug features. This is a comma separated list of hotplug features: 'network', 'disk', 'cpu', 'memory' and 'usb'. Use '0' to disable hotplug completely. Value '1' is an alias for the default 'network,disk,usb'.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-hugepages` `<1024 | 2 | any>` ::
2016-09-29 12:18:57 +02:00
Enable/disable hugepages memory.
2016-11-05 16:49:43 +01:00
`-ide[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_length=<seconds>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_length=<seconds>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
2016-01-05 11:14:03 +01:00
Use volume as IDE hard disk or CD-ROM (n is 0 to 3).
2016-11-05 16:49:43 +01:00
`-keyboard` `<da | de | de-ch | en-gb | en-us | es | fi | fr | fr-be | fr-ca | fr-ch | hu | is | it | ja | lt | mk | nl | no | pl | pt | pt-br | sl | sv | tr>` ('default =' `en-us`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Keybord layout for vnc server. Default is read from the '/etc/pve/datacenter.conf' configuration file.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-kvm` `<boolean>` ('default =' `1`)::
2016-01-05 11:14:03 +01:00
Enable/disable KVM hardware virtualization.
2016-11-05 16:49:43 +01:00
`-localtime` `<boolean>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Set the real time clock to local time. This is enabled by default if ostype indicates a Microsoft OS.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-lock` `<backup | migrate | rollback | snapshot>` ::
2016-01-05 11:14:03 +01:00
Lock/unlock the VM.
`-machine` `(pc|pc(-i440fx)?-\d+\.\d+(\.pxe)?|q35|pc-q35-\d+\.\d+(\.pxe)?)` ::
Specific the Qemu machine type.
2016-11-05 16:49:43 +01:00
`-memory` `<integer> (16 - N)` ('default =' `512`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-migrate_downtime` `<number> (0 - N)` ('default =' `0.1`)::
2016-01-05 11:14:03 +01:00
Set maximum tolerated downtime (in seconds) for migrations.
2016-11-05 16:49:43 +01:00
`-migrate_speed` `<integer> (0 - N)` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
2016-11-05 16:49:43 +01:00
`-name` `<string>` ::
2016-01-05 11:14:03 +01:00
Set a name for the VM. Only used on the configuration web interface.
2016-11-05 16:49:43 +01:00
`-net[n]` `[model=]<enum> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]` ::
2016-01-05 11:14:03 +01:00
Specify network devices.
2016-11-05 16:49:43 +01:00
`-numa` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
2016-04-07 08:20:32 +02:00
Enable/disable NUMA.
2016-01-05 11:14:03 +01:00
2016-05-11 10:42:47 +02:00
`-numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
NUMA topology.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-onboot` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
Specifies whether a VM will be started during system bootup.
2016-12-01 10:57:38 +01:00
`-ostype` `<l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win7 | win8 | wvista | wxp>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Specify guest operating system.
2016-01-05 11:14:03 +01:00
`-parallel[n]` `/dev/parport\d+|/dev/usb/lp\d+` ::
Map host parallel devices (n is 0 to 2).
2016-11-05 16:49:43 +01:00
`-pool` `<string>` ::
2016-01-05 11:14:03 +01:00
Add the VM to the specified pool.
2016-11-05 16:49:43 +01:00
`-protection` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-reboot` `<boolean>` ('default =' `1`)::
2016-01-05 11:14:03 +01:00
Allow reboot. If set to '0' the VM exit on reboot.
2016-11-05 16:49:43 +01:00
`-sata[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_length=<seconds>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_length=<seconds>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
2016-01-05 11:14:03 +01:00
Use volume as SATA hard disk or CD-ROM (n is 0 to 5).
2017-01-27 11:25:55 +01:00
`-scsi[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_length=<seconds>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_length=<seconds>] [,iops_wr_max=<iops>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,queues=<integer>] [,scsiblock=<1|0>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
2016-01-05 11:14:03 +01:00
Use volume as SCSI hard disk or CD-ROM (n is 0 to 13).
2016-11-05 16:49:43 +01:00
`-scsihw` `<lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single>` ('default =' `lsi`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
SCSI controller model
2016-01-05 11:14:03 +01:00
`-serial[n]` `(/dev/.+|socket)` ::
2016-05-19 16:14:05 +02:00
Create a serial device inside the VM (n is 0 to 3)
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-shares` `<integer> (0 - 50000)` ('default =' `1000`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Amount of memory shares for auto-ballooning. The larger the number is, the more memory this VM gets. Number is relative to weights of all other running VMs. Using zero disables auto-ballooning
2016-01-05 11:14:03 +01:00
2016-05-11 10:42:47 +02:00
`-smbios1` `[family=<string>] [,manufacturer=<string>] [,product=<string>] [,serial=<string>] [,sku=<string>] [,uuid=<UUID>] [,version=<string>]` ::
2016-01-05 11:14:03 +01:00
Specify SMBIOS type 1 fields.
2016-11-05 16:49:43 +01:00
`-smp` `<integer> (1 - N)` ('default =' `1`)::
2016-01-05 11:14:03 +01:00
The number of CPUs. Please use option -sockets instead.
2016-11-05 16:49:43 +01:00
`-sockets` `<integer> (1 - N)` ('default =' `1`)::
2016-01-05 11:14:03 +01:00
The number of CPU sockets.
2016-11-05 16:49:43 +01:00
`-startdate` `(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)` ('default =' `now`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Set the initial date of the real time clock. Valid format for date are: 'now' or '2006-06-17T16:01:21' or '2006-06-17'.
2016-01-05 11:14:03 +01:00
`-startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
2016-05-19 16:14:05 +02:00
Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the 'up' or 'down' delay in seconds, which specifies a delay to wait before the next VM is started or stopped.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-storage` `<string>` ::
2016-01-05 11:14:03 +01:00
Default storage.
2016-11-05 16:49:43 +01:00
`-tablet` `<boolean>` ('default =' `1`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Enable/disable the USB tablet device.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-tdf` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
Enable/disable time drift fix.
2016-11-05 16:49:43 +01:00
`-template` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
Enable/disable Template.
2016-11-05 16:49:43 +01:00
`-unique` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Assign a unique random ethernet address.
+
NOTE: Requires option(s): `archive`
2016-11-05 16:49:43 +01:00
`-unused[n]` `<string>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Reference to unused volumes. This is used internally, and should not be modified manually.
2016-01-05 11:14:03 +01:00
2016-05-11 10:42:47 +02:00
`-usb[n]` `[host=]<HOSTUSBDEVICE|spice> [,usb3=<1|0>]` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Configure an USB device (n is 0 to 4).
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-vcpus` `<integer> (1 - N)` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
Number of hotplugged vcpus.
2016-11-05 16:49:43 +01:00
`-vga` `<cirrus | qxl | qxl2 | qxl3 | qxl4 | serial0 | serial1 | serial2 | serial3 | std | vmware>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Select the VGA type.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-virtio[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_length=<seconds>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_length=<seconds>] [,iops_wr_max=<iops>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
2016-01-05 11:14:03 +01:00
Use volume as VIRTIO hard disk (n is 0 to 15).
2016-11-05 16:49:43 +01:00
`-watchdog` `[[model=]<i6300esb|ib700>] [,action=<enum>]` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Create a virtual hardware watchdog device.
2016-01-05 11:14:03 +01:00
*qm delsnapshot* `<vmid> <snapname>` `[OPTIONS]`
Delete a VM snapshot.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`<snapname>`: `<string>` ::
2016-01-05 11:14:03 +01:00
The name of the snapshot.
2016-11-05 16:49:43 +01:00
`-force` `<boolean>` ::
2016-01-05 11:14:03 +01:00
For removal from config file, even if removing disk snapshots fails.
*qm destroy* `<vmid>` `[OPTIONS]`
Destroy the vm (also delete all used/owned volumes).
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`-skiplock` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Ignore locks - only root is allowed to use this option.
*qm help* `[<cmd>]` `[OPTIONS]`
Get help about specified command.
2016-11-05 16:49:43 +01:00
`<cmd>`: `<string>` ::
2016-01-05 11:14:03 +01:00
Command name
2016-11-05 16:49:43 +01:00
`-verbose` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Verbose output format.
2016-04-07 08:20:32 +02:00
*qm list* `[OPTIONS]`
2016-01-05 11:14:03 +01:00
Virtual machine index (per node).
2016-11-05 16:49:43 +01:00
`-full` `<boolean>` ::
2016-04-07 08:20:32 +02:00
Determine the full status of active VMs.
2016-01-05 11:14:03 +01:00
2016-11-03 13:21:10 +01:00
*qm listsnapshot* `<vmid>`
List all snapshots.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-11-03 13:21:10 +01:00
The (unique) ID of the VM.
2016-01-05 11:14:03 +01:00
*qm migrate* `<vmid> <target>` `[OPTIONS]`
Migrate virtual machine. Creates a new migration task.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`<target>`: `<string>` ::
2016-01-05 11:14:03 +01:00
Target node.
2016-11-05 16:49:43 +01:00
`-force` `<boolean>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Allow to migrate VMs which use local devices. Only root may use this option.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-migration_network` `<string>` ::
2016-11-03 13:21:10 +01:00
CIDR of the (sub) network that is used for migration.
2016-11-05 16:49:43 +01:00
`-migration_type` `<insecure | secure>` ::
2016-11-03 13:21:10 +01:00
Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.
2016-11-05 16:49:43 +01:00
`-online` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Use online/live migration.
2017-01-27 11:25:55 +01:00
`-targetstorage` `<string>` ::
Default target storage.
`-with-local-disks` `<boolean>` ::
Enable live storage migration for local disk
2016-01-05 11:14:03 +01:00
*qm monitor* `<vmid>`
Enter Qemu Monitor interface.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
*qm move_disk* `<vmid> <disk> <storage>` `[OPTIONS]`
Move volume to different storage.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`<disk>`: `<efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi2 | scsi3 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>` ::
2016-01-05 11:14:03 +01:00
The disk you want to move.
2016-11-05 16:49:43 +01:00
`<storage>`: `<string>` ::
2016-01-05 11:14:03 +01:00
Target storage.
2016-11-05 16:49:43 +01:00
`-delete` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Delete the original disk after successful copy. By default the original disk is kept as unused disk.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-digest` `<string>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-format` `<qcow2 | raw | vmdk>` ::
2016-01-05 11:14:03 +01:00
Target Format.
*qm mtunnel*
Used by qmigrate - do not use manually.
2017-01-27 11:25:55 +01:00
*qm nbdstop* `<vmid>`
Stop embedded nbd server.
`<vmid>`: `<integer> (1 - N)` ::
The (unique) ID of the VM.
2016-01-05 11:14:03 +01:00
*qm pending* `<vmid>`
Get virtual machine configuration, including pending changes.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
*qm rescan* `[OPTIONS]`
Rescan all storages and update disk sizes and unused disk images.
2016-11-05 16:49:43 +01:00
`-vmid` `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
*qm reset* `<vmid>` `[OPTIONS]`
Reset virtual machine.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`-skiplock` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Ignore locks - only root is allowed to use this option.
*qm resize* `<vmid> <disk> <size>` `[OPTIONS]`
Extend volume size.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`<disk>`: `<efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi2 | scsi3 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>` ::
2016-01-05 11:14:03 +01:00
The disk you want to resize.
2016-11-05 16:49:43 +01:00
`<size>`: `\+?\d+(\.\d+)?[KMGT]?` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
The new size. With the '+' sign the value is added to the actual size of the volume and without it, the value is taken as an absolute one. Shrinking disk size is not supported.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-digest` `<string>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-skiplock` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Ignore locks - only root is allowed to use this option.
*qm resume* `<vmid>` `[OPTIONS]`
Resume virtual machine.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`-nocheck` `<boolean>` ::
2016-01-05 11:14:03 +01:00
no description available
2016-11-05 16:49:43 +01:00
`-skiplock` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Ignore locks - only root is allowed to use this option.
*qm rollback* `<vmid> <snapname>`
Rollback VM state to specified snapshot.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`<snapname>`: `<string>` ::
2016-01-05 11:14:03 +01:00
The name of the snapshot.
*qm sendkey* `<vmid> <key>` `[OPTIONS]`
Send key event to virtual machine.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`<key>`: `<string>` ::
2016-01-05 11:14:03 +01:00
The key (qemu monitor encoding).
2016-11-05 16:49:43 +01:00
`-skiplock` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Ignore locks - only root is allowed to use this option.
*qm set* `<vmid>` `[OPTIONS]`
Set virtual machine options (synchrounous API) - You should consider using
the POST method instead for any actions involving hotplug or storage
allocation.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`-acpi` `<boolean>` ('default =' `1`)::
2016-01-05 11:14:03 +01:00
Enable/disable ACPI.
2016-11-05 16:49:43 +01:00
`-agent` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
Enable/disable Qemu GuestAgent.
2016-11-05 16:49:43 +01:00
`-args` `<string>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Arbitrary arguments passed to kvm.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-autostart` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
Automatic restart after crash (currently ignored).
2016-11-05 16:49:43 +01:00
`-balloon` `<integer> (0 - N)` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Amount of target RAM for the VM in MB. Using zero disables the ballon driver.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-bios` `<ovmf | seabios>` ('default =' `seabios`)::
2016-01-05 11:14:03 +01:00
Select BIOS implementation.
2016-11-05 16:49:43 +01:00
`-boot` `[acdn]{1,4}` ('default =' `cdn`)::
2016-01-05 11:14:03 +01:00
Boot on floppy (a), hard disk (c), CD-ROM (d), or network (n).
`-bootdisk` `(ide|sata|scsi|virtio)\d+` ::
Enable booting from specified disk.
2016-11-05 16:49:43 +01:00
`-cdrom` `<volume>` ::
2016-01-05 11:14:03 +01:00
This is an alias for option -ide2
2016-11-05 16:49:43 +01:00
`-cores` `<integer> (1 - N)` ('default =' `1`)::
2016-01-05 11:14:03 +01:00
The number of cores per socket.
2016-11-05 16:49:43 +01:00
`-cpu` `[cputype=]<enum> [,hidden=<1|0>]` ::
2016-01-05 11:14:03 +01:00
Emulated CPU type.
2016-11-05 16:49:43 +01:00
`-cpulimit` `<number> (0 - 128)` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
2016-04-07 08:20:32 +02:00
Limit of CPU usage.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-cpuunits` `<integer> (0 - 500000)` ('default =' `1024`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
CPU weight for a VM.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-delete` `<string>` ::
2016-01-05 11:14:03 +01:00
A list of settings you want to delete.
2016-11-05 16:49:43 +01:00
`-description` `<string>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Description for the VM. Only used on the configuration web interface. This is saved as comment inside the configuration file.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-digest` `<string>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-efidisk0` `[file=]<volume> [,format=<enum>] [,size=<DiskSize>]` ::
2016-09-29 12:18:57 +02:00
Configure a Disk for storing EFI vars
2016-11-05 16:49:43 +01:00
`-force` `<boolean>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Force physical removal. Without this, we simple remove the disk from the config file and create an additional configuration entry called 'unused[n]', which contains the volume ID. Unlink of unused[n] always cause physical removal.
2016-01-05 11:14:03 +01:00
+
NOTE: Requires option(s): `delete`
2016-11-05 16:49:43 +01:00
`-freeze` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Freeze CPU at startup (use 'c' monitor command to start execution).
2017-01-27 11:25:55 +01:00
`-hostpci[n]` `[host=]<HOSTPCIID[;HOSTPCIID2...]> [,pcie=<1|0>] [,rombar=<1|0>] [,romfile=<string>] [,x-vga=<1|0>]` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Map host PCI devices into guest.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-hotplug` `<string>` ('default =' `network,disk,usb`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Selectively enable hotplug features. This is a comma separated list of hotplug features: 'network', 'disk', 'cpu', 'memory' and 'usb'. Use '0' to disable hotplug completely. Value '1' is an alias for the default 'network,disk,usb'.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-hugepages` `<1024 | 2 | any>` ::
2016-09-29 12:18:57 +02:00
Enable/disable hugepages memory.
2016-11-05 16:49:43 +01:00
`-ide[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_length=<seconds>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_length=<seconds>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
2016-01-05 11:14:03 +01:00
Use volume as IDE hard disk or CD-ROM (n is 0 to 3).
2016-11-05 16:49:43 +01:00
`-keyboard` `<da | de | de-ch | en-gb | en-us | es | fi | fr | fr-be | fr-ca | fr-ch | hu | is | it | ja | lt | mk | nl | no | pl | pt | pt-br | sl | sv | tr>` ('default =' `en-us`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Keybord layout for vnc server. Default is read from the '/etc/pve/datacenter.conf' configuration file.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-kvm` `<boolean>` ('default =' `1`)::
2016-01-05 11:14:03 +01:00
Enable/disable KVM hardware virtualization.
2016-11-05 16:49:43 +01:00
`-localtime` `<boolean>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Set the real time clock to local time. This is enabled by default if ostype indicates a Microsoft OS.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-lock` `<backup | migrate | rollback | snapshot>` ::
2016-01-05 11:14:03 +01:00
Lock/unlock the VM.
`-machine` `(pc|pc(-i440fx)?-\d+\.\d+(\.pxe)?|q35|pc-q35-\d+\.\d+(\.pxe)?)` ::
Specific the Qemu machine type.
2016-11-05 16:49:43 +01:00
`-memory` `<integer> (16 - N)` ('default =' `512`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-migrate_downtime` `<number> (0 - N)` ('default =' `0.1`)::
2016-01-05 11:14:03 +01:00
Set maximum tolerated downtime (in seconds) for migrations.
2016-11-05 16:49:43 +01:00
`-migrate_speed` `<integer> (0 - N)` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
2016-11-05 16:49:43 +01:00
`-name` `<string>` ::
2016-01-05 11:14:03 +01:00
Set a name for the VM. Only used on the configuration web interface.
2016-11-05 16:49:43 +01:00
`-net[n]` `[model=]<enum> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]` ::
2016-01-05 11:14:03 +01:00
Specify network devices.
2016-11-05 16:49:43 +01:00
`-numa` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
2016-04-07 08:20:32 +02:00
Enable/disable NUMA.
2016-01-05 11:14:03 +01:00
2016-05-11 10:42:47 +02:00
`-numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
NUMA topology.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-onboot` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
Specifies whether a VM will be started during system bootup.
2016-12-01 10:57:38 +01:00
`-ostype` `<l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win7 | win8 | wvista | wxp>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Specify guest operating system.
2016-01-05 11:14:03 +01:00
`-parallel[n]` `/dev/parport\d+|/dev/usb/lp\d+` ::
Map host parallel devices (n is 0 to 2).
2016-11-05 16:49:43 +01:00
`-protection` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-reboot` `<boolean>` ('default =' `1`)::
2016-01-05 11:14:03 +01:00
Allow reboot. If set to '0' the VM exit on reboot.
2016-11-05 16:49:43 +01:00
`-revert` `<string>` ::
2016-01-05 11:14:03 +01:00
Revert a pending change.
2016-11-05 16:49:43 +01:00
`-sata[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_length=<seconds>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_length=<seconds>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
2016-01-05 11:14:03 +01:00
Use volume as SATA hard disk or CD-ROM (n is 0 to 5).
2017-01-27 11:25:55 +01:00
`-scsi[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_length=<seconds>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_length=<seconds>] [,iops_wr_max=<iops>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,queues=<integer>] [,scsiblock=<1|0>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
2016-01-05 11:14:03 +01:00
Use volume as SCSI hard disk or CD-ROM (n is 0 to 13).
2016-11-05 16:49:43 +01:00
`-scsihw` `<lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single>` ('default =' `lsi`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
SCSI controller model
2016-01-05 11:14:03 +01:00
`-serial[n]` `(/dev/.+|socket)` ::
2016-05-19 16:14:05 +02:00
Create a serial device inside the VM (n is 0 to 3)
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-shares` `<integer> (0 - 50000)` ('default =' `1000`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Amount of memory shares for auto-ballooning. The larger the number is, the more memory this VM gets. Number is relative to weights of all other running VMs. Using zero disables auto-ballooning
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-skiplock` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Ignore locks - only root is allowed to use this option.
2016-05-11 10:42:47 +02:00
`-smbios1` `[family=<string>] [,manufacturer=<string>] [,product=<string>] [,serial=<string>] [,sku=<string>] [,uuid=<UUID>] [,version=<string>]` ::
2016-01-05 11:14:03 +01:00
Specify SMBIOS type 1 fields.
2016-11-05 16:49:43 +01:00
`-smp` `<integer> (1 - N)` ('default =' `1`)::
2016-01-05 11:14:03 +01:00
The number of CPUs. Please use option -sockets instead.
2016-11-05 16:49:43 +01:00
`-sockets` `<integer> (1 - N)` ('default =' `1`)::
2016-01-05 11:14:03 +01:00
The number of CPU sockets.
2016-11-05 16:49:43 +01:00
`-startdate` `(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)` ('default =' `now`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Set the initial date of the real time clock. Valid format for date are: 'now' or '2006-06-17T16:01:21' or '2006-06-17'.
2016-01-05 11:14:03 +01:00
`-startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
2016-05-19 16:14:05 +02:00
Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the 'up' or 'down' delay in seconds, which specifies a delay to wait before the next VM is started or stopped.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-tablet` `<boolean>` ('default =' `1`)::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Enable/disable the USB tablet device.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-tdf` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
Enable/disable time drift fix.
2016-11-05 16:49:43 +01:00
`-template` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
Enable/disable Template.
2016-11-05 16:49:43 +01:00
`-unused[n]` `<string>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Reference to unused volumes. This is used internally, and should not be modified manually.
2016-01-05 11:14:03 +01:00
2016-05-11 10:42:47 +02:00
`-usb[n]` `[host=]<HOSTUSBDEVICE|spice> [,usb3=<1|0>]` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Configure an USB device (n is 0 to 4).
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-vcpus` `<integer> (1 - N)` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
Number of hotplugged vcpus.
2016-11-05 16:49:43 +01:00
`-vga` `<cirrus | qxl | qxl2 | qxl3 | qxl4 | serial0 | serial1 | serial2 | serial3 | std | vmware>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Select the VGA type.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-virtio[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_length=<seconds>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_length=<seconds>] [,iops_wr_max=<iops>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
2016-01-05 11:14:03 +01:00
Use volume as VIRTIO hard disk (n is 0 to 15).
2016-11-05 16:49:43 +01:00
`-watchdog` `[[model=]<i6300esb|ib700>] [,action=<enum>]` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Create a virtual hardware watchdog device.
2016-01-05 11:14:03 +01:00
*qm showcmd* `<vmid>`
Show command line which is used to start the VM (debug info).
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
*qm shutdown* `<vmid>` `[OPTIONS]`
2016-04-07 08:20:32 +02:00
Shutdown virtual machine. This is similar to pressing the power button on a
physical machine.This will send an ACPI event for the guest OS, which
should then proceed to a clean shutdown.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`-forceStop` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
Make sure the VM stops.
2016-11-05 16:49:43 +01:00
`-keepActive` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
2016-11-03 13:21:10 +01:00
Do not deactivate storage volumes.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-skiplock` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Ignore locks - only root is allowed to use this option.
2016-11-05 16:49:43 +01:00
`-timeout` `<integer> (0 - N)` ::
2016-01-05 11:14:03 +01:00
Wait maximal timeout seconds.
*qm snapshot* `<vmid> <snapname>` `[OPTIONS]`
Snapshot a VM.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`<snapname>`: `<string>` ::
2016-01-05 11:14:03 +01:00
The name of the snapshot.
2016-11-05 16:49:43 +01:00
`-description` `<string>` ::
2016-01-05 11:14:03 +01:00
A textual description or comment.
2016-11-05 16:49:43 +01:00
`-vmstate` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Save the vmstate
*qm start* `<vmid>` `[OPTIONS]`
Start virtual machine.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
`-machine` `(pc|pc(-i440fx)?-\d+\.\d+(\.pxe)?|q35|pc-q35-\d+\.\d+(\.pxe)?)` ::
Specific the Qemu machine type.
2016-11-05 16:49:43 +01:00
`-migratedfrom` `<string>` ::
2016-01-05 11:14:03 +01:00
The cluster node name.
2016-11-05 16:49:43 +01:00
`-migration_network` `<string>` ::
2016-11-03 13:21:10 +01:00
CIDR of the (sub) network that is used for migration.
2016-11-05 16:49:43 +01:00
`-migration_type` `<insecure | secure>` ::
2016-11-03 13:21:10 +01:00
Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.
2016-11-05 16:49:43 +01:00
`-skiplock` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Ignore locks - only root is allowed to use this option.
2016-11-05 16:49:43 +01:00
`-stateuri` `<string>` ::
2016-01-05 11:14:03 +01:00
Some command save/restore state from this location.
2017-01-27 11:25:55 +01:00
`-targetstorage` `<string>` ::
Target storage for the migration. (Can be '1' to use the same storage id as on the source node.)
2016-01-05 11:14:03 +01:00
*qm status* `<vmid>` `[OPTIONS]`
Show VM status.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`-verbose` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Verbose output format
*qm stop* `<vmid>` `[OPTIONS]`
2016-04-07 08:20:32 +02:00
Stop virtual machine. The qemu process will exit immediately. Thisis akin
to pulling the power plug of a running computer and may damage the VM data
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`-keepActive` `<boolean>` ('default =' `0`)::
2016-01-05 11:14:03 +01:00
2016-11-03 13:21:10 +01:00
Do not deactivate storage volumes.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-migratedfrom` `<string>` ::
2016-01-05 11:14:03 +01:00
The cluster node name.
2016-11-05 16:49:43 +01:00
`-skiplock` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Ignore locks - only root is allowed to use this option.
2016-11-05 16:49:43 +01:00
`-timeout` `<integer> (0 - N)` ::
2016-01-05 11:14:03 +01:00
Wait maximal timeout seconds.
*qm suspend* `<vmid>` `[OPTIONS]`
Suspend virtual machine.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`-skiplock` `<boolean>` ::
2016-01-05 11:14:03 +01:00
Ignore locks - only root is allowed to use this option.
*qm template* `<vmid>` `[OPTIONS]`
Create a Template.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`-disk` `<efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi2 | scsi3 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>` ::
2016-01-05 11:14:03 +01:00
If you want to convert only 1 disk to base image.
*qm terminal* `<vmid>` `[OPTIONS]`
Open a terminal using a serial device (The VM need to have a serial device
configured, for example 'serial0: socket')
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`-iface` `<serial0 | serial1 | serial2 | serial3>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Select the serial device. By default we simply use the first suitable device.
2016-01-05 11:14:03 +01:00
*qm unlink* `<vmid> -idlist <string>` `[OPTIONS]`
Unlink/delete disk images.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`-force` `<boolean>` ::
2016-01-05 11:14:03 +01:00
2016-05-19 16:14:05 +02:00
Force physical removal. Without this, we simple remove the disk from the config file and create an additional configuration entry called 'unused[n]', which contains the volume ID. Unlink of unused[n] always cause physical removal.
2016-01-05 11:14:03 +01:00
2016-11-05 16:49:43 +01:00
`-idlist` `<string>` ::
2016-01-05 11:14:03 +01:00
A list of disk IDs you want to delete.
*qm unlock* `<vmid>`
Unlock the VM.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
*qm vncproxy* `<vmid>`
Proxy VM VNC traffic to stdin/stdout
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
*qm wait* `<vmid>` `[OPTIONS]`
Wait until the VM is stopped.
2016-11-05 16:49:43 +01:00
`<vmid>`: `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
The (unique) ID of the VM.
2016-11-05 16:49:43 +01:00
`-timeout` `<integer> (1 - N)` ::
2016-01-05 11:14:03 +01:00
Timeout in seconds. Default is to wait forever.