2016-01-05 13:14:03 +03:00
*qm* `<COMMAND> [ARGS] [OPTIONS]`
*qm clone* `<vmid> <newid>` `[OPTIONS]`
Create a copy of virtual machine/template.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`<newid>` `integer (1 - N)` ::
VMID for the clone.
`-description` `string` ::
Description for the new VM.
`-format` `(qcow2 | raw | vmdk)` ::
Target format for file storage.
+
NOTE: Requires option(s): `full`
`-full` `boolean` (default=`0`)::
2016-05-19 17:14:05 +03: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 13:14:03 +03:00
`-name` `string` ::
Set a name for the new VM.
`-pool` `string` ::
Add the new VM to the specified pool.
`-snapname` `string` ::
The name of the snapshot.
`-storage` `string` ::
Target storage for full clone.
+
NOTE: Requires option(s): `full`
`-target` `string` ::
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).
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`-current` `boolean` (default=`0`)::
Get current values (instead of pending values).
*qm create* `<vmid>` `[OPTIONS]`
Create or restore a virtual machine.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`-acpi` `boolean` (default=`1`)::
Enable/disable ACPI.
`-agent` `boolean` (default=`0`)::
Enable/disable Qemu GuestAgent.
`-archive` `string` ::
The backup file.
`-args` `string` ::
2016-05-19 17:14:05 +03:00
Arbitrary arguments passed to kvm.
2016-01-05 13:14:03 +03:00
`-autostart` `boolean` (default=`0`)::
Automatic restart after crash (currently ignored).
`-balloon` `integer (0 - N)` ::
2016-05-19 17:14:05 +03:00
Amount of target RAM for the VM in MB. Using zero disables the ballon driver.
2016-01-05 13:14:03 +03:00
`-bios` `(ovmf | seabios)` (default=`seabios`)::
Select BIOS implementation.
`-boot` `[acdn]{1,4}` (default=`cdn`)::
Boot on floppy (a), hard disk (c), CD-ROM (d), or network (n).
`-bootdisk` `(ide|sata|scsi|virtio)\d+` ::
Enable booting from specified disk.
`-cdrom` `volume` ::
This is an alias for option -ide2
`-cores` `integer (1 - N)` (default=`1`)::
The number of cores per socket.
2016-04-07 09:20:32 +03:00
`-cpu` `[cputype=]<cputype> [,hidden=<1|0>]` ::
2016-01-05 13:14:03 +03:00
Emulated CPU type.
`-cpulimit` `number (0 - 128)` (default=`0`)::
2016-04-07 09:20:32 +03:00
Limit of CPU usage.
2016-01-05 13:14:03 +03:00
`-cpuunits` `integer (0 - 500000)` (default=`1000`)::
2016-05-19 17:14:05 +03:00
CPU weight for a VM.
2016-01-05 13:14:03 +03:00
`-description` `string` ::
2016-05-19 17:14:05 +03:00
Description for the VM. Only used on the configuration web interface. This is saved as comment inside the configuration file.
2016-01-05 13:14:03 +03:00
2016-09-29 13:18:57 +03:00
`-efidisk0` `[file=]<volume> [,format=<image format>] [,size=<DiskSize>]` ::
Configure a Disk for storing EFI vars
2016-01-05 13:14:03 +03:00
`-force` `boolean` ::
Allow to overwrite existing VM.
+
NOTE: Requires option(s): `archive`
`-freeze` `boolean` ::
Freeze CPU at startup (use 'c' monitor command to start execution).
2016-04-07 09:20:32 +03:00
`-hostpci[n]` `[host=]<HOSTPCIID[;HOSTPCIID2...]> [,pcie=<1|0>] [,rombar=<1|0>] [,x-vga=<1|0>]` ::
2016-01-05 13:14:03 +03:00
2016-05-19 17:14:05 +03:00
Map host PCI devices into guest.
2016-01-05 13:14:03 +03:00
`-hotplug` `string` (default=`network,disk,usb`)::
2016-05-19 17:14:05 +03: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 13:14:03 +03:00
2016-09-29 13:18:57 +03:00
`-hugepages` `(1024 | 2 | any)` ::
Enable/disable hugepages memory.
2016-05-11 11:42:47 +03:00
`-ide[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,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=<enospc|ignore|report|stop>]` ::
2016-01-05 13:14:03 +03:00
Use volume as IDE hard disk or CD-ROM (n is 0 to 3).
`-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-05-19 17:14:05 +03:00
Keybord layout for vnc server. Default is read from the '/etc/pve/datacenter.conf' configuration file.
2016-01-05 13:14:03 +03:00
`-kvm` `boolean` (default=`1`)::
Enable/disable KVM hardware virtualization.
`-localtime` `boolean` ::
2016-05-19 17:14:05 +03:00
Set the real time clock to local time. This is enabled by default if ostype indicates a Microsoft OS.
2016-01-05 13:14:03 +03:00
`-lock` `(backup | migrate | rollback | snapshot)` ::
Lock/unlock the VM.
`-machine` `(pc|pc(-i440fx)?-\d+\.\d+(\.pxe)?|q35|pc-q35-\d+\.\d+(\.pxe)?)` ::
Specific the Qemu machine type.
`-memory` `integer (16 - N)` (default=`512`)::
2016-05-19 17:14:05 +03:00
Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device.
2016-01-05 13:14:03 +03:00
`-migrate_downtime` `number (0 - N)` (default=`0.1`)::
Set maximum tolerated downtime (in seconds) for migrations.
`-migrate_speed` `integer (0 - N)` (default=`0`)::
Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
`-name` `string` ::
Set a name for the VM. Only used on the configuration web interface.
2016-05-11 11:42:47 +03:00
`-net[n]` `[model=]<model> [,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 13:14:03 +03:00
Specify network devices.
`-numa` `boolean` (default=`0`)::
2016-04-07 09:20:32 +03:00
Enable/disable NUMA.
2016-01-05 13:14:03 +03:00
2016-05-11 11:42:47 +03:00
`-numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
2016-01-05 13:14:03 +03:00
2016-05-19 17:14:05 +03:00
NUMA topology.
2016-01-05 13:14:03 +03:00
`-onboot` `boolean` (default=`0`)::
Specifies whether a VM will be started during system bootup.
`-ostype` `(l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win7 | win8 | wvista | wxp)` ::
2016-05-19 17:14:05 +03:00
Specify guest operating system.
2016-01-05 13:14:03 +03:00
`-parallel[n]` `/dev/parport\d+|/dev/usb/lp\d+` ::
Map host parallel devices (n is 0 to 2).
`-pool` `string` ::
Add the VM to the specified pool.
`-protection` `boolean` (default=`0`)::
2016-05-19 17:14:05 +03:00
Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
2016-01-05 13:14:03 +03:00
`-reboot` `boolean` (default=`1`)::
Allow reboot. If set to '0' the VM exit on reboot.
2016-05-11 11:42:47 +03:00
`-sata[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,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=<enospc|ignore|report|stop>]` ::
2016-01-05 13:14:03 +03:00
Use volume as SATA hard disk or CD-ROM (n is 0 to 5).
2016-05-11 11:42:47 +03:00
`-scsi[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,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>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
2016-01-05 13:14:03 +03:00
Use volume as SCSI hard disk or CD-ROM (n is 0 to 13).
`-scsihw` `(lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single)` (default=`lsi`)::
2016-05-19 17:14:05 +03:00
SCSI controller model
2016-01-05 13:14:03 +03:00
`-serial[n]` `(/dev/.+|socket)` ::
2016-05-19 17:14:05 +03:00
Create a serial device inside the VM (n is 0 to 3)
2016-01-05 13:14:03 +03:00
`-shares` `integer (0 - 50000)` (default=`1000`)::
2016-05-19 17:14:05 +03: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 13:14:03 +03:00
2016-05-11 11:42:47 +03:00
`-smbios1` `[family=<string>] [,manufacturer=<string>] [,product=<string>] [,serial=<string>] [,sku=<string>] [,uuid=<UUID>] [,version=<string>]` ::
2016-01-05 13:14:03 +03:00
Specify SMBIOS type 1 fields.
`-smp` `integer (1 - N)` (default=`1`)::
The number of CPUs. Please use option -sockets instead.
`-sockets` `integer (1 - N)` (default=`1`)::
The number of CPU sockets.
`-startdate` `(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)` (default=`now`)::
2016-05-19 17:14:05 +03: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 13:14:03 +03:00
`-startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
2016-05-19 17:14:05 +03: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 13:14:03 +03:00
`-storage` `string` ::
Default storage.
`-tablet` `boolean` (default=`1`)::
2016-05-19 17:14:05 +03:00
Enable/disable the USB tablet device.
2016-01-05 13:14:03 +03:00
`-tdf` `boolean` (default=`0`)::
Enable/disable time drift fix.
`-template` `boolean` (default=`0`)::
Enable/disable Template.
`-unique` `boolean` ::
Assign a unique random ethernet address.
+
NOTE: Requires option(s): `archive`
`-unused[n]` `string` ::
2016-05-19 17:14:05 +03:00
Reference to unused volumes. This is used internally, and should not be modified manually.
2016-01-05 13:14:03 +03:00
2016-05-11 11:42:47 +03:00
`-usb[n]` `[host=]<HOSTUSBDEVICE|spice> [,usb3=<1|0>]` ::
2016-01-05 13:14:03 +03:00
2016-05-19 17:14:05 +03:00
Configure an USB device (n is 0 to 4).
2016-01-05 13:14:03 +03:00
`-vcpus` `integer (1 - N)` (default=`0`)::
Number of hotplugged vcpus.
`-vga` `(cirrus | qxl | qxl2 | qxl3 | qxl4 | serial0 | serial1 | serial2 | serial3 | std | vmware)` ::
2016-05-19 17:14:05 +03:00
Select the VGA type.
2016-01-05 13:14:03 +03:00
2016-05-11 11:42:47 +03:00
`-virtio[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,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=<enospc|ignore|report|stop>]` ::
2016-01-05 13:14:03 +03:00
Use volume as VIRTIO hard disk (n is 0 to 15).
2016-05-11 11:42:47 +03:00
`-watchdog` `[[model=]<i6300esb|ib700>] [,action=<reset|shutdown|poweroff|pause|debug|none>]` ::
2016-01-05 13:14:03 +03:00
2016-05-19 17:14:05 +03:00
Create a virtual hardware watchdog device.
2016-01-05 13:14:03 +03:00
*qm delsnapshot* `<vmid> <snapname>` `[OPTIONS]`
Delete a VM snapshot.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`<snapname>` `string` ::
The name of the snapshot.
`-force` `boolean` ::
For removal from config file, even if removing disk snapshots fails.
*qm destroy* `<vmid>` `[OPTIONS]`
Destroy the vm (also delete all used/owned volumes).
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`-skiplock` `boolean` ::
Ignore locks - only root is allowed to use this option.
*qm help* `[<cmd>]` `[OPTIONS]`
Get help about specified command.
`<cmd>` `string` ::
Command name
`-verbose` `boolean` ::
Verbose output format.
2016-04-07 09:20:32 +03:00
*qm list* `[OPTIONS]`
2016-01-05 13:14:03 +03:00
Virtual machine index (per node).
2016-04-07 09:20:32 +03:00
`-full` `boolean` ::
Determine the full status of active VMs.
2016-01-05 13:14:03 +03:00
*qm migrate* `<vmid> <target>` `[OPTIONS]`
Migrate virtual machine. Creates a new migration task.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`<target>` `string` ::
Target node.
`-force` `boolean` ::
2016-05-19 17:14:05 +03:00
Allow to migrate VMs which use local devices. Only root may use this option.
2016-01-05 13:14:03 +03:00
`-online` `boolean` ::
Use online/live migration.
*qm monitor* `<vmid>`
Enter Qemu Monitor interface.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
*qm move_disk* `<vmid> <disk> <storage>` `[OPTIONS]`
Move volume to different storage.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
2016-09-29 13:18:57 +03: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 13:14:03 +03:00
The disk you want to move.
`<storage>` `string` ::
Target storage.
`-delete` `boolean` (default=`0`)::
2016-05-19 17:14:05 +03:00
Delete the original disk after successful copy. By default the original disk is kept as unused disk.
2016-01-05 13:14:03 +03:00
`-digest` `string` ::
2016-05-19 17:14:05 +03:00
Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
2016-01-05 13:14:03 +03:00
`-format` `(qcow2 | raw | vmdk)` ::
Target Format.
*qm mtunnel*
Used by qmigrate - do not use manually.
*qm pending* `<vmid>`
Get virtual machine configuration, including pending changes.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
*qm rescan* `[OPTIONS]`
Rescan all storages and update disk sizes and unused disk images.
`-vmid` `integer (1 - N)` ::
The (unique) ID of the VM.
*qm reset* `<vmid>` `[OPTIONS]`
Reset virtual machine.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`-skiplock` `boolean` ::
Ignore locks - only root is allowed to use this option.
*qm resize* `<vmid> <disk> <size>` `[OPTIONS]`
Extend volume size.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
2016-09-29 13:18:57 +03: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 13:14:03 +03:00
The disk you want to resize.
`<size>` `\+?\d+(\.\d+)?[KMGT]?` ::
2016-05-19 17:14:05 +03: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 13:14:03 +03:00
`-digest` `string` ::
2016-05-19 17:14:05 +03:00
Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
2016-01-05 13:14:03 +03:00
`-skiplock` `boolean` ::
Ignore locks - only root is allowed to use this option.
*qm resume* `<vmid>` `[OPTIONS]`
Resume virtual machine.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`-nocheck` `boolean` ::
no description available
`-skiplock` `boolean` ::
Ignore locks - only root is allowed to use this option.
*qm rollback* `<vmid> <snapname>`
Rollback VM state to specified snapshot.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`<snapname>` `string` ::
The name of the snapshot.
*qm sendkey* `<vmid> <key>` `[OPTIONS]`
Send key event to virtual machine.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`<key>` `string` ::
The key (qemu monitor encoding).
`-skiplock` `boolean` ::
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.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`-acpi` `boolean` (default=`1`)::
Enable/disable ACPI.
`-agent` `boolean` (default=`0`)::
Enable/disable Qemu GuestAgent.
`-args` `string` ::
2016-05-19 17:14:05 +03:00
Arbitrary arguments passed to kvm.
2016-01-05 13:14:03 +03:00
`-autostart` `boolean` (default=`0`)::
Automatic restart after crash (currently ignored).
`-balloon` `integer (0 - N)` ::
2016-05-19 17:14:05 +03:00
Amount of target RAM for the VM in MB. Using zero disables the ballon driver.
2016-01-05 13:14:03 +03:00
`-bios` `(ovmf | seabios)` (default=`seabios`)::
Select BIOS implementation.
`-boot` `[acdn]{1,4}` (default=`cdn`)::
Boot on floppy (a), hard disk (c), CD-ROM (d), or network (n).
`-bootdisk` `(ide|sata|scsi|virtio)\d+` ::
Enable booting from specified disk.
`-cdrom` `volume` ::
This is an alias for option -ide2
`-cores` `integer (1 - N)` (default=`1`)::
The number of cores per socket.
2016-04-07 09:20:32 +03:00
`-cpu` `[cputype=]<cputype> [,hidden=<1|0>]` ::
2016-01-05 13:14:03 +03:00
Emulated CPU type.
`-cpulimit` `number (0 - 128)` (default=`0`)::
2016-04-07 09:20:32 +03:00
Limit of CPU usage.
2016-01-05 13:14:03 +03:00
`-cpuunits` `integer (0 - 500000)` (default=`1000`)::
2016-05-19 17:14:05 +03:00
CPU weight for a VM.
2016-01-05 13:14:03 +03:00
`-delete` `string` ::
A list of settings you want to delete.
`-description` `string` ::
2016-05-19 17:14:05 +03:00
Description for the VM. Only used on the configuration web interface. This is saved as comment inside the configuration file.
2016-01-05 13:14:03 +03:00
`-digest` `string` ::
2016-05-19 17:14:05 +03:00
Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
2016-01-05 13:14:03 +03:00
2016-09-29 13:18:57 +03:00
`-efidisk0` `[file=]<volume> [,format=<image format>] [,size=<DiskSize>]` ::
Configure a Disk for storing EFI vars
2016-01-05 13:14:03 +03:00
`-force` `boolean` ::
2016-05-19 17:14:05 +03: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 13:14:03 +03:00
+
NOTE: Requires option(s): `delete`
`-freeze` `boolean` ::
Freeze CPU at startup (use 'c' monitor command to start execution).
2016-04-07 09:20:32 +03:00
`-hostpci[n]` `[host=]<HOSTPCIID[;HOSTPCIID2...]> [,pcie=<1|0>] [,rombar=<1|0>] [,x-vga=<1|0>]` ::
2016-01-05 13:14:03 +03:00
2016-05-19 17:14:05 +03:00
Map host PCI devices into guest.
2016-01-05 13:14:03 +03:00
`-hotplug` `string` (default=`network,disk,usb`)::
2016-05-19 17:14:05 +03: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 13:14:03 +03:00
2016-09-29 13:18:57 +03:00
`-hugepages` `(1024 | 2 | any)` ::
Enable/disable hugepages memory.
2016-05-11 11:42:47 +03:00
`-ide[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,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=<enospc|ignore|report|stop>]` ::
2016-01-05 13:14:03 +03:00
Use volume as IDE hard disk or CD-ROM (n is 0 to 3).
`-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-05-19 17:14:05 +03:00
Keybord layout for vnc server. Default is read from the '/etc/pve/datacenter.conf' configuration file.
2016-01-05 13:14:03 +03:00
`-kvm` `boolean` (default=`1`)::
Enable/disable KVM hardware virtualization.
`-localtime` `boolean` ::
2016-05-19 17:14:05 +03:00
Set the real time clock to local time. This is enabled by default if ostype indicates a Microsoft OS.
2016-01-05 13:14:03 +03:00
`-lock` `(backup | migrate | rollback | snapshot)` ::
Lock/unlock the VM.
`-machine` `(pc|pc(-i440fx)?-\d+\.\d+(\.pxe)?|q35|pc-q35-\d+\.\d+(\.pxe)?)` ::
Specific the Qemu machine type.
`-memory` `integer (16 - N)` (default=`512`)::
2016-05-19 17:14:05 +03:00
Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device.
2016-01-05 13:14:03 +03:00
`-migrate_downtime` `number (0 - N)` (default=`0.1`)::
Set maximum tolerated downtime (in seconds) for migrations.
`-migrate_speed` `integer (0 - N)` (default=`0`)::
Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
`-name` `string` ::
Set a name for the VM. Only used on the configuration web interface.
2016-05-11 11:42:47 +03:00
`-net[n]` `[model=]<model> [,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 13:14:03 +03:00
Specify network devices.
`-numa` `boolean` (default=`0`)::
2016-04-07 09:20:32 +03:00
Enable/disable NUMA.
2016-01-05 13:14:03 +03:00
2016-05-11 11:42:47 +03:00
`-numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
2016-01-05 13:14:03 +03:00
2016-05-19 17:14:05 +03:00
NUMA topology.
2016-01-05 13:14:03 +03:00
`-onboot` `boolean` (default=`0`)::
Specifies whether a VM will be started during system bootup.
`-ostype` `(l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win7 | win8 | wvista | wxp)` ::
2016-05-19 17:14:05 +03:00
Specify guest operating system.
2016-01-05 13:14:03 +03:00
`-parallel[n]` `/dev/parport\d+|/dev/usb/lp\d+` ::
Map host parallel devices (n is 0 to 2).
`-protection` `boolean` (default=`0`)::
2016-05-19 17:14:05 +03:00
Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
2016-01-05 13:14:03 +03:00
`-reboot` `boolean` (default=`1`)::
Allow reboot. If set to '0' the VM exit on reboot.
`-revert` `string` ::
Revert a pending change.
2016-05-11 11:42:47 +03:00
`-sata[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,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=<enospc|ignore|report|stop>]` ::
2016-01-05 13:14:03 +03:00
Use volume as SATA hard disk or CD-ROM (n is 0 to 5).
2016-05-11 11:42:47 +03:00
`-scsi[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,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>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enospc|ignore|report|stop>]` ::
2016-01-05 13:14:03 +03:00
Use volume as SCSI hard disk or CD-ROM (n is 0 to 13).
`-scsihw` `(lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single)` (default=`lsi`)::
2016-05-19 17:14:05 +03:00
SCSI controller model
2016-01-05 13:14:03 +03:00
`-serial[n]` `(/dev/.+|socket)` ::
2016-05-19 17:14:05 +03:00
Create a serial device inside the VM (n is 0 to 3)
2016-01-05 13:14:03 +03:00
`-shares` `integer (0 - 50000)` (default=`1000`)::
2016-05-19 17:14:05 +03: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 13:14:03 +03:00
`-skiplock` `boolean` ::
Ignore locks - only root is allowed to use this option.
2016-05-11 11:42:47 +03:00
`-smbios1` `[family=<string>] [,manufacturer=<string>] [,product=<string>] [,serial=<string>] [,sku=<string>] [,uuid=<UUID>] [,version=<string>]` ::
2016-01-05 13:14:03 +03:00
Specify SMBIOS type 1 fields.
`-smp` `integer (1 - N)` (default=`1`)::
The number of CPUs. Please use option -sockets instead.
`-sockets` `integer (1 - N)` (default=`1`)::
The number of CPU sockets.
`-startdate` `(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)` (default=`now`)::
2016-05-19 17:14:05 +03: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 13:14:03 +03:00
`-startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
2016-05-19 17:14:05 +03: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 13:14:03 +03:00
`-tablet` `boolean` (default=`1`)::
2016-05-19 17:14:05 +03:00
Enable/disable the USB tablet device.
2016-01-05 13:14:03 +03:00
`-tdf` `boolean` (default=`0`)::
Enable/disable time drift fix.
`-template` `boolean` (default=`0`)::
Enable/disable Template.
`-unused[n]` `string` ::
2016-05-19 17:14:05 +03:00
Reference to unused volumes. This is used internally, and should not be modified manually.
2016-01-05 13:14:03 +03:00
2016-05-11 11:42:47 +03:00
`-usb[n]` `[host=]<HOSTUSBDEVICE|spice> [,usb3=<1|0>]` ::
2016-01-05 13:14:03 +03:00
2016-05-19 17:14:05 +03:00
Configure an USB device (n is 0 to 4).
2016-01-05 13:14:03 +03:00
`-vcpus` `integer (1 - N)` (default=`0`)::
Number of hotplugged vcpus.
`-vga` `(cirrus | qxl | qxl2 | qxl3 | qxl4 | serial0 | serial1 | serial2 | serial3 | std | vmware)` ::
2016-05-19 17:14:05 +03:00
Select the VGA type.
2016-01-05 13:14:03 +03:00
2016-05-11 11:42:47 +03:00
`-virtio[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,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=<enospc|ignore|report|stop>]` ::
2016-01-05 13:14:03 +03:00
Use volume as VIRTIO hard disk (n is 0 to 15).
2016-05-11 11:42:47 +03:00
`-watchdog` `[[model=]<i6300esb|ib700>] [,action=<reset|shutdown|poweroff|pause|debug|none>]` ::
2016-01-05 13:14:03 +03:00
2016-05-19 17:14:05 +03:00
Create a virtual hardware watchdog device.
2016-01-05 13:14:03 +03:00
*qm showcmd* `<vmid>`
Show command line which is used to start the VM (debug info).
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
*qm shutdown* `<vmid>` `[OPTIONS]`
2016-04-07 09:20:32 +03: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 13:14:03 +03:00
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`-forceStop` `boolean` (default=`0`)::
Make sure the VM stops.
`-keepActive` `boolean` (default=`0`)::
Do not decativate storage volumes.
`-skiplock` `boolean` ::
Ignore locks - only root is allowed to use this option.
`-timeout` `integer (0 - N)` ::
Wait maximal timeout seconds.
*qm snapshot* `<vmid> <snapname>` `[OPTIONS]`
Snapshot a VM.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`<snapname>` `string` ::
The name of the snapshot.
`-description` `string` ::
A textual description or comment.
`-vmstate` `boolean` ::
Save the vmstate
*qm start* `<vmid>` `[OPTIONS]`
Start virtual machine.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`-machine` `(pc|pc(-i440fx)?-\d+\.\d+(\.pxe)?|q35|pc-q35-\d+\.\d+(\.pxe)?)` ::
Specific the Qemu machine type.
`-migratedfrom` `string` ::
The cluster node name.
`-skiplock` `boolean` ::
Ignore locks - only root is allowed to use this option.
`-stateuri` `string` ::
Some command save/restore state from this location.
*qm status* `<vmid>` `[OPTIONS]`
Show VM status.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`-verbose` `boolean` ::
Verbose output format
*qm stop* `<vmid>` `[OPTIONS]`
2016-04-07 09:20:32 +03: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 13:14:03 +03:00
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`-keepActive` `boolean` (default=`0`)::
Do not decativate storage volumes.
`-migratedfrom` `string` ::
The cluster node name.
`-skiplock` `boolean` ::
Ignore locks - only root is allowed to use this option.
`-timeout` `integer (0 - N)` ::
Wait maximal timeout seconds.
*qm suspend* `<vmid>` `[OPTIONS]`
Suspend virtual machine.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`-skiplock` `boolean` ::
Ignore locks - only root is allowed to use this option.
*qm template* `<vmid>` `[OPTIONS]`
Create a Template.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
2016-09-29 13:18:57 +03: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 13:14:03 +03: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')
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`-iface` `(serial0 | serial1 | serial2 | serial3)` ::
2016-05-19 17:14:05 +03:00
Select the serial device. By default we simply use the first suitable device.
2016-01-05 13:14:03 +03:00
*qm unlink* `<vmid> -idlist <string>` `[OPTIONS]`
Unlink/delete disk images.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`-force` `boolean` ::
2016-05-19 17:14:05 +03: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 13:14:03 +03:00
`-idlist` `string` ::
A list of disk IDs you want to delete.
*qm unlock* `<vmid>`
Unlock the VM.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
*qm vncproxy* `<vmid>`
Proxy VM VNC traffic to stdin/stdout
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
*qm wait* `<vmid>` `[OPTIONS]`
Wait until the VM is stopped.
`<vmid>` `integer (1 - N)` ::
The (unique) ID of the VM.
`-timeout` `integer (1 - N)` ::
Timeout in seconds. Default is to wait forever.