]> git.proxmox.com Git - pve-docs.git/blame - qm.1-synopsis.adoc
vzdump: drop overly scary & outdated warning about fleecing
[pve-docs.git] / qm.1-synopsis.adoc
CommitLineData
1f554f76
DM
1*qm* `<COMMAND> [ARGS] [OPTIONS]`
2
4d47f125 3*qm agent*
32d876b5 4
4d47f125 5An alias for 'qm guest cmd'.
32d876b5 6
e2d681b3
TL
7*qm cleanup* `<vmid> <clean-shutdown> <guest-requested>`
8
9Cleans up resources like tap devices, vgpus, etc. Called after a vm shuts
10down, crashes, etc.
11
8dd66e12 12`<vmid>`: `<integer> (100 - 999999999)` ::
e2d681b3
TL
13
14The (unique) ID of the VM.
15
16`<clean-shutdown>`: `<boolean>` ::
17
18Indicates if qemu shutdown cleanly.
19
20`<guest-requested>`: `<boolean>` ::
21
22Indicates if the shutdown was requested by the guest or via qmp.
23
1f554f76
DM
24*qm clone* `<vmid> <newid>` `[OPTIONS]`
25
26Create a copy of virtual machine/template.
27
8dd66e12 28`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
29
30The (unique) ID of the VM.
31
8dd66e12 32`<newid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
33
34VMID for the clone.
35
95895385
TL
36`--bwlimit` `<integer> (0 - N)` ('default =' `clone limit from datacenter or storage config`)::
37
38Override I/O bandwidth limit (in KiB/s).
39
2489d6df 40`--description` `<string>` ::
1f554f76
DM
41
42Description for the new VM.
43
2489d6df 44`--format` `<qcow2 | raw | vmdk>` ::
1f554f76 45
27a7acb2 46Target format for file storage. Only valid for full clone.
1f554f76 47
27a7acb2 48`--full` `<boolean>` ::
1f554f76 49
27a7acb2 50Create a full copy of all disks. This is always done when you clone a normal VM. For VM templates, we try to create a linked clone by default.
1f554f76 51
2489d6df 52`--name` `<string>` ::
1f554f76
DM
53
54Set a name for the new VM.
55
2489d6df 56`--pool` `<string>` ::
1f554f76
DM
57
58Add the new VM to the specified pool.
59
2489d6df 60`--snapname` `<string>` ::
1f554f76
DM
61
62The name of the snapshot.
63
907e4bc3 64`--storage` `<storage ID>` ::
1f554f76
DM
65
66Target storage for full clone.
1f554f76 67
2489d6df 68`--target` `<string>` ::
1f554f76
DM
69
70Target node. Only allowed if the original VM is on shared storage.
71
1e3f8156
TL
72*qm cloudinit dump* `<vmid> <type>`
73
74Get automatically generated cloudinit config.
75
8dd66e12 76`<vmid>`: `<integer> (100 - 999999999)` ::
1e3f8156
TL
77
78The (unique) ID of the VM.
79
80`<type>`: `<meta | network | user>` ::
81
82Config type.
83
4e7f60c2
TL
84*qm cloudinit pending* `<vmid>`
85
86Get the cloudinit configuration with both current and pending values.
87
8dd66e12 88`<vmid>`: `<integer> (100 - 999999999)` ::
4e7f60c2
TL
89
90The (unique) ID of the VM.
91
92*qm cloudinit update* `<vmid>`
93
94Regenerate and change cloudinit config drive.
95
8dd66e12 96`<vmid>`: `<integer> (100 - 999999999)` ::
4e7f60c2
TL
97
98The (unique) ID of the VM.
99
1f554f76
DM
100*qm config* `<vmid>` `[OPTIONS]`
101
e9cd3bd4
TL
102Get the virtual machine configuration with pending configuration changes
103applied. Set the 'current' parameter to get the current configuration
104instead.
1f554f76 105
8dd66e12 106`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
107
108The (unique) ID of the VM.
109
2489d6df 110`--current` `<boolean>` ('default =' `0`)::
1f554f76
DM
111
112Get current values (instead of pending values).
113
5f26e15b
TL
114`--snapshot` `<string>` ::
115
116Fetch config values from given snapshot.
117
1f554f76
DM
118*qm create* `<vmid>` `[OPTIONS]`
119
120Create or restore a virtual machine.
121
8dd66e12 122`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
123
124The (unique) ID of the VM.
125
2489d6df 126`--acpi` `<boolean>` ('default =' `1`)::
1f554f76
DM
127
128Enable/disable ACPI.
129
4e7f60c2
TL
130`--affinity` `<string>` ::
131
81a3384d 132List of host cores used to execute guest processes, for example: 0,5,8-11
4e7f60c2 133
9d2e98ed 134`--agent` `[enabled=]<1|0> [,freeze-fs-on-backup=<1|0>] [,fstrim_cloned_disks=<1|0>] [,type=<virtio|isa>]` ::
1f554f76 135
9d2e98ed 136Enable/disable communication with the QEMU Guest Agent and its properties.
1f554f76 137
e2d681b3
TL
138`--arch` `<aarch64 | x86_64>` ::
139
140Virtual processor architecture. Defaults to the host.
141
2489d6df 142`--archive` `<string>` ::
1f554f76 143
c5aa7e14 144The backup archive. Either the file system path to a .tar or .vma file (use '-' to pipe data from stdin) or a proxmox storage backup volume identifier.
1f554f76 145
2489d6df 146`--args` `<string>` ::
1f554f76 147
c2993fe5 148Arbitrary arguments passed to kvm.
1f554f76 149
d2656385 150`--audio0` `device=<ich9-intel-hda|intel-hda|AC97> [,driver=<spice|none>]` ::
1c532546
TL
151
152Configure a audio device, useful in combination with QXL/Spice.
153
2489d6df 154`--autostart` `<boolean>` ('default =' `0`)::
1f554f76
DM
155
156Automatic restart after crash (currently ignored).
157
2489d6df 158`--balloon` `<integer> (0 - N)` ::
1f554f76 159
9d2e98ed 160Amount of target RAM for the VM in MiB. Using zero disables the ballon driver.
1f554f76 161
2489d6df 162`--bios` `<ovmf | seabios>` ('default =' `seabios`)::
1f554f76
DM
163
164Select BIOS implementation.
165
4772952b 166`--boot` `[[legacy=]<[acdn]{1,4}>] [,order=<device[;device...]>]` ::
1f554f76 167
5370fa8c 168Specify guest boot order. Use the 'order=' sub-property as usage with no key or 'legacy=' is deprecated.
1f554f76 169
2489d6df 170`--bootdisk` `(ide|sata|scsi|virtio)\d+` ::
1f554f76 171
4772952b 172Enable booting from specified disk. Deprecated: Use 'boot: order=foo;bar' instead.
1f554f76 173
95895385 174`--bwlimit` `<integer> (0 - N)` ('default =' `restore limit from datacenter or storage config`)::
27a7acb2 175
95895385 176Override I/O bandwidth limit (in KiB/s).
27a7acb2 177
2489d6df 178`--cdrom` `<volume>` ::
1f554f76
DM
179
180This is an alias for option -ide2
181
5370fa8c 182`--cicustom` `[meta=<volume>] [,network=<volume>] [,user=<volume>] [,vendor=<volume>]` ::
95895385
TL
183
184cloud-init: Specify custom files to replace the automatically generated ones at start.
185
27a7acb2
DM
186`--cipassword` `<password>` ::
187
188cloud-init: Password to assign the user. Using this is generally not recommended. Use ssh keys instead. Also note that older cloud-init versions do not support hashed passwords.
189
d2656385 190`--citype` `<configdrive2 | nocloud | opennebula>` ::
27a7acb2
DM
191
192Specifies the cloud-init configuration format. The default depends on the configured operating system type (`ostype`. We use the `nocloud` format for Linux, and `configdrive2` for windows.
193
c8eee6ff 194`--ciupgrade` `<boolean>` ('default =' `1`)::
159464a9
TL
195
196cloud-init: do an automatic package upgrade after the first boot.
197
27a7acb2
DM
198`--ciuser` `<string>` ::
199
200cloud-init: User name to change ssh keys and password for instead of the image's configured default user.
201
2489d6df 202`--cores` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
203
204The number of cores per socket.
205
04d22a9f 206`--cpu` `[[cputype=]<string>] [,flags=<+FLAG[;-FLAG...]>] [,hidden=<1|0>] [,hv-vendor-id=<vendor-id>] [,phys-bits=<8-64|host>] [,reported-model=<enum>]` ::
1f554f76
DM
207
208Emulated CPU type.
209
2489d6df 210`--cpulimit` `<number> (0 - 128)` ('default =' `0`)::
1f554f76 211
9b3e4991 212Limit of CPU usage.
1f554f76 213
7af2edf9 214`--cpuunits` `<integer> (1 - 262144)` ('default =' `cgroup v1: 1024, cgroup v2: 100`)::
1f554f76 215
5370fa8c 216CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2.
1f554f76 217
2489d6df 218`--description` `<string>` ::
1f554f76 219
8f4d9c87 220Description for the VM. Shown in the web-interface VM's summary. This is saved as comment inside the configuration file.
1f554f76 221
7af2edf9 222`--efidisk0` `[file=]<volume> [,efitype=<2m|4m>] [,format=<enum>] [,import-from=<source volume>] [,pre-enrolled-keys=<1|0>] [,size=<DiskSize>]` ::
2c0dde61 223
9d2e98ed 224Configure a disk for storing EFI vars. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and that the default EFI vars are copied to the volume instead. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.
2c0dde61 225
2489d6df 226`--force` `<boolean>` ::
1f554f76
DM
227
228Allow to overwrite existing VM.
229+
230NOTE: Requires option(s): `archive`
231
2489d6df 232`--freeze` `<boolean>` ::
1f554f76
DM
233
234Freeze CPU at startup (use 'c' monitor command to start execution).
235
5f26e15b
TL
236`--hookscript` `<string>` ::
237
238Script that will be executed during various steps in the vms lifetime.
239
499c9b7f 240`--hostpci[n]` `[[host=]<HOSTPCIID[;HOSTPCIID2...]>] [,device-id=<hex id>] [,legacy-igd=<1|0>] [,mapping=<mapping-id>] [,mdev=<string>] [,pcie=<1|0>] [,rombar=<1|0>] [,romfile=<string>] [,sub-device-id=<hex id>] [,sub-vendor-id=<hex id>] [,vendor-id=<hex id>] [,x-vga=<1|0>]` ::
1f554f76 241
c2993fe5 242Map host PCI devices into guest.
1f554f76 243
2489d6df 244`--hotplug` `<string>` ('default =' `network,disk,usb`)::
1f554f76 245
4e7f60c2 246Selectively enable hotplug features. This is a comma separated list of hotplug features: 'network', 'disk', 'cpu', 'memory', 'usb' and 'cloudinit'. Use '0' to disable hotplug completely. Using '1' as value is an alias for the default `network,disk,usb`. USB hotplugging is possible for guests with machine version >= 7.1 and ostype l26 or windows > 7.
1f554f76 247
2489d6df 248`--hugepages` `<1024 | 2 | any>` ::
2c0dde61
DM
249
250Enable/disable hugepages memory.
251
7af2edf9 252`--ide[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]` ::
1f554f76 253
7af2edf9 254Use volume as IDE hard disk or CD-ROM (n is 0 to 3). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.
1f554f76 255
27a7acb2
DM
256`--ipconfig[n]` `[gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>]` ::
257
258cloud-init: Specify IP addresses and gateways for the corresponding interface.
259+
260IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified.
261+
4772952b
TL
262The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit
263gateway should be provided.
d2656385
TL
264For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires
265cloud-init 19.4 or newer.
27a7acb2 266+
4772952b
TL
267If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using
268dhcp on IPv4.
27a7acb2 269
95895385
TL
270`--ivshmem` `size=<integer> [,name=<string>]` ::
271
272Inter-VM shared memory. Useful for direct communication between VMs, or to the host.
273
4772952b
TL
274`--keephugepages` `<boolean>` ('default =' `0`)::
275
276Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts.
277
35a75dd3 278`--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>` ::
1f554f76 279
7af2edf9 280Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS.
1f554f76 281
2489d6df 282`--kvm` `<boolean>` ('default =' `1`)::
1f554f76
DM
283
284Enable/disable KVM hardware virtualization.
285
d2656385
TL
286`--live-restore` `<boolean>` ::
287
c6d5bae8 288Start the VM immediately while importing or restoring in the background.
d2656385 289
2489d6df 290`--localtime` `<boolean>` ::
1f554f76 291
5370fa8c 292Set the real time clock (RTC) to local time. This is enabled by default if the `ostype` indicates a Microsoft Windows OS.
1f554f76 293
95895385 294`--lock` `<backup | clone | create | migrate | rollback | snapshot | snapshot-delete | suspended | suspending>` ::
1f554f76
DM
295
296Lock/unlock the VM.
297
907e4bc3 298`--machine` `[[type=]<machine type>] [,viommu=<intel|virtio>]` ::
1f554f76 299
907e4bc3 300Specify the QEMU machine.
1f554f76 301
bd92b745 302`--memory` `[current=]<integer>` ::
1f554f76 303
bd92b745 304Memory properties.
1f554f76 305
2489d6df 306`--migrate_downtime` `<number> (0 - N)` ('default =' `0.1`)::
1f554f76
DM
307
308Set maximum tolerated downtime (in seconds) for migrations.
309
2489d6df 310`--migrate_speed` `<integer> (0 - N)` ('default =' `0`)::
1f554f76
DM
311
312Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
313
2489d6df 314`--name` `<string>` ::
1f554f76
DM
315
316Set a name for the VM. Only used on the configuration web interface.
317
27a7acb2
DM
318`--nameserver` `<string>` ::
319
de786b48 320cloud-init: Sets DNS server IP address for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
27a7acb2 321
ac70d7d1 322`--net[n]` `[model=]<enum> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,mtu=<integer>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]` ::
1f554f76
DM
323
324Specify network devices.
1f554f76 325
2489d6df 326`--numa` `<boolean>` ('default =' `0`)::
1f554f76 327
9b3e4991 328Enable/disable NUMA.
1f554f76 329
2489d6df 330`--numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
1f554f76 331
c2993fe5 332NUMA topology.
1f554f76 333
2489d6df 334`--onboot` `<boolean>` ('default =' `0`)::
1f554f76
DM
335
336Specifies whether a VM will be started during system bootup.
337
5370fa8c 338`--ostype` `<l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win11 | win7 | win8 | wvista | wxp>` ::
1f554f76 339
c2993fe5 340Specify guest operating system.
1f554f76 341
2489d6df 342`--parallel[n]` `/dev/parport\d+|/dev/usb/lp\d+` ::
1f554f76
DM
343
344Map host parallel devices (n is 0 to 2).
1f554f76 345
2489d6df 346`--pool` `<string>` ::
1f554f76
DM
347
348Add the VM to the specified pool.
349
2489d6df 350`--protection` `<boolean>` ('default =' `0`)::
1f554f76 351
c2993fe5 352Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
1f554f76 353
2489d6df 354`--reboot` `<boolean>` ('default =' `1`)::
1f554f76
DM
355
356Allow reboot. If set to '0' the VM exit on reboot.
357
c5aa7e14
TL
358`--rng0` `[source=]</dev/urandom|/dev/random|/dev/hwrng> [,max_bytes=<integer>] [,period=<integer>]` ::
359
360Configure a VirtIO-based Random Number Generator.
361
7af2edf9 362`--sata[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]` ::
1f554f76 363
7af2edf9 364Use volume as SATA hard disk or CD-ROM (n is 0 to 5). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.
1f554f76 365
c6d5bae8 366`--scsi[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,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>] [,product=<product>] [,queues=<integer>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,scsiblock=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,vendor=<vendor>] [,werror=<enum>] [,wwn=<wwn>]` ::
1f554f76 367
7af2edf9 368Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.
1f554f76 369
2489d6df 370`--scsihw` `<lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single>` ('default =' `lsi`)::
1f554f76 371
c2993fe5 372SCSI controller model
1f554f76 373
27a7acb2
DM
374`--searchdomain` `<string>` ::
375
de786b48 376cloud-init: Sets DNS search domains for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
27a7acb2 377
2489d6df 378`--serial[n]` `(/dev/.+|socket)` ::
1f554f76 379
c2993fe5 380Create a serial device inside the VM (n is 0 to 3)
1f554f76 381
2489d6df 382`--shares` `<integer> (0 - 50000)` ('default =' `1000`)::
1f554f76 383
5da3d723 384Amount 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. Auto-ballooning is done by pvestatd.
1f554f76 385
1e3f8156 386`--smbios1` `[base64=<1|0>] [,family=<Base64 encoded string>] [,manufacturer=<Base64 encoded string>] [,product=<Base64 encoded string>] [,serial=<Base64 encoded string>] [,sku=<Base64 encoded string>] [,uuid=<UUID>] [,version=<Base64 encoded string>]` ::
1f554f76
DM
387
388Specify SMBIOS type 1 fields.
389
2489d6df 390`--smp` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
391
392The number of CPUs. Please use option -sockets instead.
393
2489d6df 394`--sockets` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
395
396The number of CPU sockets.
397
1c532546
TL
398`--spice_enhancements` `[foldersharing=<1|0>] [,videostreaming=<off|all|filter>]` ::
399
400Configure additional enhancements for SPICE.
401
27a7acb2
DM
402`--sshkeys` `<filepath>` ::
403
404cloud-init: Setup public SSH keys (one key per line, OpenSSH format).
405
5da3d723
TL
406`--start` `<boolean>` ('default =' `0`)::
407
408Start VM after it was created successfully.
409
2489d6df 410`--startdate` `(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)` ('default =' `now`)::
1f554f76 411
4772952b 412Set the initial date of the real time clock. Valid format for date are:'now' or '2006-06-17T16:01:21' or '2006-06-17'.
1f554f76 413
2489d6df 414`--startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
1f554f76 415
c2993fe5 416Startup 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.
1f554f76 417
907e4bc3 418`--storage` `<storage ID>` ::
1f554f76
DM
419
420Default storage.
421
2489d6df 422`--tablet` `<boolean>` ('default =' `1`)::
1f554f76 423
c2993fe5 424Enable/disable the USB tablet device.
1f554f76 425
5c1699e5
TL
426`--tags` `<string>` ::
427
428Tags of the VM. This is only meta information.
429
2489d6df 430`--tdf` `<boolean>` ('default =' `0`)::
1f554f76
DM
431
432Enable/disable time drift fix.
433
2489d6df 434`--template` `<boolean>` ('default =' `0`)::
1f554f76
DM
435
436Enable/disable Template.
437
7af2edf9 438`--tpmstate0` `[file=]<volume> [,import-from=<source volume>] [,size=<DiskSize>] [,version=<v1.2|v2.0>]` ::
5370fa8c 439
7af2edf9 440Configure a Disk for storing TPM state. The format is fixed to 'raw'. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and 4 MiB will be used instead. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.
5370fa8c 441
2489d6df 442`--unique` `<boolean>` ::
1f554f76
DM
443
444Assign a unique random ethernet address.
445+
446NOTE: Requires option(s): `archive`
447
c5aa7e14 448`--unused[n]` `[file=]<volume>` ::
1f554f76 449
c2993fe5 450Reference to unused volumes. This is used internally, and should not be modified manually.
1f554f76 451
499c9b7f 452`--usb[n]` `[[host=]<HOSTUSBDEVICE|spice>] [,mapping=<mapping-id>] [,usb3=<1|0>]` ::
1f554f76 453
4e7f60c2 454Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).
1f554f76 455
2489d6df 456`--vcpus` `<integer> (1 - N)` ('default =' `0`)::
1f554f76
DM
457
458Number of hotplugged vcpus.
459
fa22697b 460`--vga` `[[type=]<enum>] [,clipboard=<vnc>] [,memory=<integer>]` ::
1f554f76 461
e2d681b3 462Configure the VGA hardware.
1f554f76 463
7af2edf9 464`--virtio[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,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>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
1f554f76 465
7af2edf9 466Use volume as VIRTIO hard disk (n is 0 to 15). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.
1f554f76 467
4d47f125
TL
468`--vmgenid` `<UUID>` ('default =' `1 (autogenerated)`)::
469
470Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly.
471
907e4bc3 472`--vmstatestorage` `<storage ID>` ::
2489d6df
WB
473
474Default storage for VM state volumes/files.
475
476`--watchdog` `[[model=]<i6300esb|ib700>] [,action=<enum>]` ::
1f554f76 477
c2993fe5 478Create a virtual hardware watchdog device.
1f554f76 479
1f554f76
DM
480*qm delsnapshot* `<vmid> <snapname>` `[OPTIONS]`
481
482Delete a VM snapshot.
483
8dd66e12 484`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
485
486The (unique) ID of the VM.
487
013dc89f 488`<snapname>`: `<string>` ::
1f554f76
DM
489
490The name of the snapshot.
491
2489d6df 492`--force` `<boolean>` ::
1f554f76
DM
493
494For removal from config file, even if removing disk snapshots fails.
495
1f554f76
DM
496*qm destroy* `<vmid>` `[OPTIONS]`
497
d2656385
TL
498Destroy the VM and all used/owned volumes. Removes any VM specific
499permissions and firewall rules
1f554f76 500
8dd66e12 501`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
502
503The (unique) ID of the VM.
504
8f4d9c87 505`--destroy-unreferenced-disks` `<boolean>` ('default =' `0`)::
d2656385
TL
506
507If set, destroy additionally all disks not referenced in the config but with a matching VMID from all enabled storages.
508
1c532546
TL
509`--purge` `<boolean>` ::
510
d2656385 511Remove VMID from configurations, like backup & replication jobs and HA.
1c532546 512
2489d6df 513`--skiplock` `<boolean>` ::
1f554f76
DM
514
515Ignore locks - only root is allowed to use this option.
516
4e7f60c2
TL
517*qm disk import* `<vmid> <source> <storage>` `[OPTIONS]`
518
519Import an external disk image as an unused disk in a VM. The
520 image format has to be supported by qemu-img(1).
521
8dd66e12 522`<vmid>`: `<integer> (100 - 999999999)` ::
4e7f60c2
TL
523
524The (unique) ID of the VM.
525
526`<source>`: `<string>` ::
527
528Path to the disk image to import
529
907e4bc3 530`<storage>`: `<storage ID>` ::
4e7f60c2
TL
531
532Target storage ID
533
534`--format` `<qcow2 | raw | vmdk>` ::
535
536Target format
537
538*qm disk move* `<vmid> <disk> [<storage>]` `[OPTIONS]`
539
540Move volume to different storage or to a different VM.
541
8dd66e12 542`<vmid>`: `<integer> (100 - 999999999)` ::
4e7f60c2
TL
543
544The (unique) ID of the VM.
545
546`<disk>`: `<efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi14 | scsi15 | scsi16 | scsi17 | scsi18 | scsi19 | scsi2 | scsi20 | scsi21 | scsi22 | scsi23 | scsi24 | scsi25 | scsi26 | scsi27 | scsi28 | scsi29 | scsi3 | scsi30 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | tpmstate0 | unused0 | unused1 | unused10 | unused100 | unused101 | unused102 | unused103 | unused104 | unused105 | unused106 | unused107 | unused108 | unused109 | unused11 | unused110 | unused111 | unused112 | unused113 | unused114 | unused115 | unused116 | unused117 | unused118 | unused119 | unused12 | unused120 | unused121 | unused122 | unused123 | unused124 | unused125 | unused126 | unused127 | unused128 | unused129 | unused13 | unused130 | unused131 | unused132 | unused133 | unused134 | unused135 | unused136 | unused137 | unused138 | unused139 | unused14 | unused140 | unused141 | unused142 | unused143 | unused144 | unused145 | unused146 | unused147 | unused148 | unused149 | unused15 | unused150 | unused151 | unused152 | unused153 | unused154 | unused155 | unused156 | unused157 | unused158 | unused159 | unused16 | unused160 | unused161 | unused162 | unused163 | unused164 | unused165 | unused166 | unused167 | unused168 | unused169 | unused17 | unused170 | unused171 | unused172 | unused173 | unused174 | unused175 | unused176 | unused177 | unused178 | unused179 | unused18 | unused180 | unused181 | unused182 | unused183 | unused184 | unused185 | unused186 | unused187 | unused188 | unused189 | unused19 | unused190 | unused191 | unused192 | unused193 | unused194 | unused195 | unused196 | unused197 | unused198 | unused199 | unused2 | unused20 | unused200 | unused201 | unused202 | unused203 | unused204 | unused205 | unused206 | unused207 | unused208 | unused209 | unused21 | unused210 | unused211 | unused212 | unused213 | unused214 | unused215 | unused216 | unused217 | unused218 | unused219 | unused22 | unused220 | unused221 | unused222 | unused223 | unused224 | unused225 | unused226 | unused227 | unused228 | unused229 | unused23 | unused230 | unused231 | unused232 | unused233 | unused234 | unused235 | unused236 | unused237 | unused238 | unused239 | unused24 | unused240 | unused241 | unused242 | unused243 | unused244 | unused245 | unused246 | unused247 | unused248 | unused249 | unused25 | unused250 | unused251 | unused252 | unused253 | unused254 | unused255 | unused26 | unused27 | unused28 | unused29 | unused3 | unused30 | unused31 | unused32 | unused33 | unused34 | unused35 | unused36 | unused37 | unused38 | unused39 | unused4 | unused40 | unused41 | unused42 | unused43 | unused44 | unused45 | unused46 | unused47 | unused48 | unused49 | unused5 | unused50 | unused51 | unused52 | unused53 | unused54 | unused55 | unused56 | unused57 | unused58 | unused59 | unused6 | unused60 | unused61 | unused62 | unused63 | unused64 | unused65 | unused66 | unused67 | unused68 | unused69 | unused7 | unused70 | unused71 | unused72 | unused73 | unused74 | unused75 | unused76 | unused77 | unused78 | unused79 | unused8 | unused80 | unused81 | unused82 | unused83 | unused84 | unused85 | unused86 | unused87 | unused88 | unused89 | unused9 | unused90 | unused91 | unused92 | unused93 | unused94 | unused95 | unused96 | unused97 | unused98 | unused99 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>` ::
547
548The disk you want to move.
549
907e4bc3 550`<storage>`: `<storage ID>` ::
4e7f60c2
TL
551
552Target storage.
553
554`--bwlimit` `<integer> (0 - N)` ('default =' `move limit from datacenter or storage config`)::
555
556Override I/O bandwidth limit (in KiB/s).
557
558`--delete` `<boolean>` ('default =' `0`)::
559
560Delete the original disk after successful copy. By default the original disk is kept as unused disk.
561
562`--digest` `<string>` ::
563
564Prevent changes if current configuration file has different SHA1"
565 ." digest. This can be used to prevent concurrent modifications.
566
567`--format` `<qcow2 | raw | vmdk>` ::
568
569Target Format.
570
571`--target-digest` `<string>` ::
572
573Prevent changes if the current config file of the target VM has a"
574 ." different SHA1 digest. This can be used to detect concurrent modifications.
575
576`--target-disk` `<efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi14 | scsi15 | scsi16 | scsi17 | scsi18 | scsi19 | scsi2 | scsi20 | scsi21 | scsi22 | scsi23 | scsi24 | scsi25 | scsi26 | scsi27 | scsi28 | scsi29 | scsi3 | scsi30 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | tpmstate0 | unused0 | unused1 | unused10 | unused100 | unused101 | unused102 | unused103 | unused104 | unused105 | unused106 | unused107 | unused108 | unused109 | unused11 | unused110 | unused111 | unused112 | unused113 | unused114 | unused115 | unused116 | unused117 | unused118 | unused119 | unused12 | unused120 | unused121 | unused122 | unused123 | unused124 | unused125 | unused126 | unused127 | unused128 | unused129 | unused13 | unused130 | unused131 | unused132 | unused133 | unused134 | unused135 | unused136 | unused137 | unused138 | unused139 | unused14 | unused140 | unused141 | unused142 | unused143 | unused144 | unused145 | unused146 | unused147 | unused148 | unused149 | unused15 | unused150 | unused151 | unused152 | unused153 | unused154 | unused155 | unused156 | unused157 | unused158 | unused159 | unused16 | unused160 | unused161 | unused162 | unused163 | unused164 | unused165 | unused166 | unused167 | unused168 | unused169 | unused17 | unused170 | unused171 | unused172 | unused173 | unused174 | unused175 | unused176 | unused177 | unused178 | unused179 | unused18 | unused180 | unused181 | unused182 | unused183 | unused184 | unused185 | unused186 | unused187 | unused188 | unused189 | unused19 | unused190 | unused191 | unused192 | unused193 | unused194 | unused195 | unused196 | unused197 | unused198 | unused199 | unused2 | unused20 | unused200 | unused201 | unused202 | unused203 | unused204 | unused205 | unused206 | unused207 | unused208 | unused209 | unused21 | unused210 | unused211 | unused212 | unused213 | unused214 | unused215 | unused216 | unused217 | unused218 | unused219 | unused22 | unused220 | unused221 | unused222 | unused223 | unused224 | unused225 | unused226 | unused227 | unused228 | unused229 | unused23 | unused230 | unused231 | unused232 | unused233 | unused234 | unused235 | unused236 | unused237 | unused238 | unused239 | unused24 | unused240 | unused241 | unused242 | unused243 | unused244 | unused245 | unused246 | unused247 | unused248 | unused249 | unused25 | unused250 | unused251 | unused252 | unused253 | unused254 | unused255 | unused26 | unused27 | unused28 | unused29 | unused3 | unused30 | unused31 | unused32 | unused33 | unused34 | unused35 | unused36 | unused37 | unused38 | unused39 | unused4 | unused40 | unused41 | unused42 | unused43 | unused44 | unused45 | unused46 | unused47 | unused48 | unused49 | unused5 | unused50 | unused51 | unused52 | unused53 | unused54 | unused55 | unused56 | unused57 | unused58 | unused59 | unused6 | unused60 | unused61 | unused62 | unused63 | unused64 | unused65 | unused66 | unused67 | unused68 | unused69 | unused7 | unused70 | unused71 | unused72 | unused73 | unused74 | unused75 | unused76 | unused77 | unused78 | unused79 | unused8 | unused80 | unused81 | unused82 | unused83 | unused84 | unused85 | unused86 | unused87 | unused88 | unused89 | unused9 | unused90 | unused91 | unused92 | unused93 | unused94 | unused95 | unused96 | unused97 | unused98 | unused99 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>` ::
577
578The config key the disk will be moved to on the target VM (for example, ide0 or scsi1). Default is the source disk key.
579
8dd66e12 580`--target-vmid` `<integer> (100 - 999999999)` ::
4e7f60c2
TL
581
582The (unique) ID of the VM.
583
584*qm disk rescan* `[OPTIONS]`
585
586Rescan all storages and update disk sizes and unused disk images.
587
588`--dryrun` `<boolean>` ('default =' `0`)::
589
590Do not actually write changes out to VM config(s).
591
8dd66e12 592`--vmid` `<integer> (100 - 999999999)` ::
4e7f60c2
TL
593
594The (unique) ID of the VM.
595
596*qm disk resize* `<vmid> <disk> <size>` `[OPTIONS]`
597
598Extend volume size.
599
8dd66e12 600`<vmid>`: `<integer> (100 - 999999999)` ::
4e7f60c2
TL
601
602The (unique) ID of the VM.
603
604`<disk>`: `<efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi14 | scsi15 | scsi16 | scsi17 | scsi18 | scsi19 | scsi2 | scsi20 | scsi21 | scsi22 | scsi23 | scsi24 | scsi25 | scsi26 | scsi27 | scsi28 | scsi29 | scsi3 | scsi30 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | tpmstate0 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>` ::
605
606The disk you want to resize.
607
608`<size>`: `\+?\d+(\.\d+)?[KMGT]?` ::
609
610The 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.
611
612`--digest` `<string>` ::
613
614Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
615
616`--skiplock` `<boolean>` ::
617
618Ignore locks - only root is allowed to use this option.
619
620*qm disk unlink* `<vmid> --idlist <string>` `[OPTIONS]`
621
622Unlink/delete disk images.
623
8dd66e12 624`<vmid>`: `<integer> (100 - 999999999)` ::
4e7f60c2
TL
625
626The (unique) ID of the VM.
627
628`--force` `<boolean>` ::
629
630Force 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.
631
632`--idlist` `<string>` ::
633
634A list of disk IDs you want to delete.
635
4d47f125
TL
636*qm guest cmd* `<vmid> <command>`
637
9d2e98ed 638Execute QEMU Guest Agent commands.
4d47f125 639
8dd66e12 640`<vmid>`: `<integer> (100 - 999999999)` ::
4d47f125
TL
641
642The (unique) ID of the VM.
643
644`<command>`: `<fsfreeze-freeze | fsfreeze-status | fsfreeze-thaw | fstrim | get-fsinfo | get-host-name | get-memory-block-info | get-memory-blocks | get-osinfo | get-time | get-timezone | get-users | get-vcpus | info | network-get-interfaces | ping | shutdown | suspend-disk | suspend-hybrid | suspend-ram>` ::
645
646The QGA command.
647
648*qm guest exec* `<vmid> [<extra-args>]` `[OPTIONS]`
649
650Executes the given command via the guest agent
651
8dd66e12 652`<vmid>`: `<integer> (100 - 999999999)` ::
4d47f125
TL
653
654The (unique) ID of the VM.
655
656`<extra-args>`: `<array>` ::
657
658Extra arguments as array
659
c5aa7e14
TL
660`--pass-stdin` `<boolean>` ('default =' `0`)::
661
662When set, read STDIN until EOF and forward to guest agent via 'input-data' (usually treated as STDIN to process launched by guest agent). Allows maximal 1 MiB.
663
4d47f125
TL
664`--synchronous` `<boolean>` ('default =' `1`)::
665
666If set to off, returns the pid immediately instead of waiting for the commmand to finish or the timeout.
667
668`--timeout` `<integer> (0 - N)` ('default =' `30`)::
669
670The maximum time to wait synchronously for the command to finish. If reached, the pid gets returned. Set to 0 to deactivate
671
672*qm guest exec-status* `<vmid> <pid>`
673
674Gets the status of the given pid started by the guest-agent
675
8dd66e12 676`<vmid>`: `<integer> (100 - 999999999)` ::
4d47f125
TL
677
678The (unique) ID of the VM.
679
680`<pid>`: `<integer>` ::
681
682The PID to query
683
684*qm guest passwd* `<vmid> <username>` `[OPTIONS]`
685
686Sets the password for the given user to the given password
687
8dd66e12 688`<vmid>`: `<integer> (100 - 999999999)` ::
4d47f125
TL
689
690The (unique) ID of the VM.
691
692`<username>`: `<string>` ::
693
694The user to set the password for.
695
696`--crypted` `<boolean>` ('default =' `0`)::
697
698set to 1 if the password has already been passed through crypt()
699
35a75dd3 700*qm help* `[OPTIONS]`
1f554f76
DM
701
702Get help about specified command.
703
35a75dd3 704`--extra-args` `<array>` ::
1f554f76 705
35a75dd3 706Shows help for a specific command
1f554f76 707
2489d6df 708`--verbose` `<boolean>` ::
1f554f76
DM
709
710Verbose output format.
711
c6d5bae8
TL
712*qm import* `<vmid> <source> --storage <string>` `[OPTIONS]`
713
714Import a foreign virtual guest from a supported import source, such as an
715ESXi storage.
716
717`<vmid>`: `<integer> (100 - 999999999)` ::
718
719The (unique) ID of the VM.
720
721`<source>`: `<string>` ::
722
723The import source volume id.
724
725`--acpi` `<boolean>` ('default =' `1`)::
726
727Enable/disable ACPI.
728
729`--affinity` `<string>` ::
730
731List of host cores used to execute guest processes, for example: 0,5,8-11
732
733`--agent` `[enabled=]<1|0> [,freeze-fs-on-backup=<1|0>] [,fstrim_cloned_disks=<1|0>] [,type=<virtio|isa>]` ::
734
735Enable/disable communication with the QEMU Guest Agent and its properties.
736
737`--arch` `<aarch64 | x86_64>` ::
738
739Virtual processor architecture. Defaults to the host.
740
741`--args` `<string>` ::
742
743Arbitrary arguments passed to kvm.
744
745`--audio0` `device=<ich9-intel-hda|intel-hda|AC97> [,driver=<spice|none>]` ::
746
747Configure a audio device, useful in combination with QXL/Spice.
748
749`--autostart` `<boolean>` ('default =' `0`)::
750
751Automatic restart after crash (currently ignored).
752
753`--balloon` `<integer> (0 - N)` ::
754
755Amount of target RAM for the VM in MiB. Using zero disables the ballon driver.
756
757`--bios` `<ovmf | seabios>` ('default =' `seabios`)::
758
759Select BIOS implementation.
760
761`--boot` `[[legacy=]<[acdn]{1,4}>] [,order=<device[;device...]>]` ::
762
763Specify guest boot order. Use the 'order=' sub-property as usage with no key or 'legacy=' is deprecated.
764
765`--bootdisk` `(ide|sata|scsi|virtio)\d+` ::
766
767Enable booting from specified disk. Deprecated: Use 'boot: order=foo;bar' instead.
768
769`--cdrom` `<volume>` ::
770
771This is an alias for option -ide2
772
773`--cicustom` `[meta=<volume>] [,network=<volume>] [,user=<volume>] [,vendor=<volume>]` ::
774
775cloud-init: Specify custom files to replace the automatically generated ones at start.
776
777`--cipassword` `<string>` ::
778
779cloud-init: Password to assign the user. Using this is generally not recommended. Use ssh keys instead. Also note that older cloud-init versions do not support hashed passwords.
780
781`--citype` `<configdrive2 | nocloud | opennebula>` ::
782
783Specifies the cloud-init configuration format. The default depends on the configured operating system type (`ostype`. We use the `nocloud` format for Linux, and `configdrive2` for windows.
784
785`--ciupgrade` `<boolean>` ('default =' `1`)::
786
787cloud-init: do an automatic package upgrade after the first boot.
788
789`--ciuser` `<string>` ::
790
791cloud-init: User name to change ssh keys and password for instead of the image's configured default user.
792
793`--cores` `<integer> (1 - N)` ('default =' `1`)::
794
795The number of cores per socket.
796
797`--cpu` `[[cputype=]<string>] [,flags=<+FLAG[;-FLAG...]>] [,hidden=<1|0>] [,hv-vendor-id=<vendor-id>] [,phys-bits=<8-64|host>] [,reported-model=<enum>]` ::
798
799Emulated CPU type.
800
801`--cpulimit` `<number> (0 - 128)` ('default =' `0`)::
802
803Limit of CPU usage.
804
805`--cpuunits` `<integer> (1 - 262144)` ('default =' `cgroup v1: 1024, cgroup v2: 100`)::
806
807CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2.
808
809`--delete` `<string>` ::
810
811A list of settings you want to delete.
812
813`--description` `<string>` ::
814
815Description for the VM. Shown in the web-interface VM's summary. This is saved as comment inside the configuration file.
816
817`--dryrun` `<boolean>` ('default =' `0`)::
818
819Show the create command and exit without doing anything.
820
821`--efidisk0` `[file=]<volume> [,efitype=<2m|4m>] [,format=<enum>] [,pre-enrolled-keys=<1|0>] [,size=<DiskSize>]` ::
822
823Configure a disk for storing EFI vars.
824
825`--format` `<qcow2 | raw | vmdk>` ::
826
827Target format
828
829`--freeze` `<boolean>` ::
830
831Freeze CPU at startup (use 'c' monitor command to start execution).
832
833`--hookscript` `<string>` ::
834
835Script that will be executed during various steps in the vms lifetime.
836
837`--hostpci[n]` `[[host=]<HOSTPCIID[;HOSTPCIID2...]>] [,device-id=<hex id>] [,legacy-igd=<1|0>] [,mapping=<mapping-id>] [,mdev=<string>] [,pcie=<1|0>] [,rombar=<1|0>] [,romfile=<string>] [,sub-device-id=<hex id>] [,sub-vendor-id=<hex id>] [,vendor-id=<hex id>] [,x-vga=<1|0>]` ::
838
839Map host PCI devices into guest.
840
841`--hotplug` `<string>` ('default =' `network,disk,usb`)::
842
843Selectively enable hotplug features. This is a comma separated list of hotplug features: 'network', 'disk', 'cpu', 'memory', 'usb' and 'cloudinit'. Use '0' to disable hotplug completely. Using '1' as value is an alias for the default `network,disk,usb`. USB hotplugging is possible for guests with machine version >= 7.1 and ostype l26 or windows > 7.
844
845`--hugepages` `<1024 | 2 | any>` ::
846
847Enable/disable hugepages memory.
848
849`--ide[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_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_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]` ::
850
851Use volume as IDE hard disk or CD-ROM (n is 0 to 3).
852
853`--ipconfig[n]` `[gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>]` ::
854
855cloud-init: Specify IP addresses and gateways for the corresponding interface.
856+
857IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified.
858+
859The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit
860gateway should be provided.
861For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires
862cloud-init 19.4 or newer.
863+
864If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using
865dhcp on IPv4.
866
867`--ivshmem` `size=<integer> [,name=<string>]` ::
868
869Inter-VM shared memory. Useful for direct communication between VMs, or to the host.
870
871`--keephugepages` `<boolean>` ('default =' `0`)::
872
873Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts.
874
875`--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>` ::
876
877Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS.
878
879`--kvm` `<boolean>` ('default =' `1`)::
880
881Enable/disable KVM hardware virtualization.
882
883`--live-import` `<boolean>` ('default =' `0`)::
884
885Immediately start the VM and copy the data in the background.
886
887`--localtime` `<boolean>` ::
888
889Set the real time clock (RTC) to local time. This is enabled by default if the `ostype` indicates a Microsoft Windows OS.
890
891`--lock` `<backup | clone | create | migrate | rollback | snapshot | snapshot-delete | suspended | suspending>` ::
892
893Lock/unlock the VM.
894
907e4bc3 895`--machine` `[[type=]<machine type>] [,viommu=<intel|virtio>]` ::
c6d5bae8 896
907e4bc3 897Specify the QEMU machine.
c6d5bae8
TL
898
899`--memory` `[current=]<integer>` ::
900
901Memory properties.
902
903`--migrate_downtime` `<number> (0 - N)` ('default =' `0.1`)::
904
905Set maximum tolerated downtime (in seconds) for migrations.
906
907`--migrate_speed` `<integer> (0 - N)` ('default =' `0`)::
908
909Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
910
911`--name` `<string>` ::
912
913Set a name for the VM. Only used on the configuration web interface.
914
915`--nameserver` `<string>` ::
916
917cloud-init: Sets DNS server IP address for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
918
919`--net[n]` `[model=]<enum> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,mtu=<integer>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]` ::
920
921Specify network devices.
922
923`--numa` `<boolean>` ('default =' `0`)::
924
925Enable/disable NUMA.
926
927`--numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
928
929NUMA topology.
930
931`--onboot` `<boolean>` ('default =' `0`)::
932
933Specifies whether a VM will be started during system bootup.
934
935`--ostype` `<l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win11 | win7 | win8 | wvista | wxp>` ::
936
937Specify guest operating system.
938
939`--parallel[n]` `/dev/parport\d+|/dev/usb/lp\d+` ::
940
941Map host parallel devices (n is 0 to 2).
942
943`--protection` `<boolean>` ('default =' `0`)::
944
945Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
946
947`--reboot` `<boolean>` ('default =' `1`)::
948
949Allow reboot. If set to '0' the VM exit on reboot.
950
951`--rng0` `[source=]</dev/urandom|/dev/random|/dev/hwrng> [,max_bytes=<integer>] [,period=<integer>]` ::
952
953Configure a VirtIO-based Random Number Generator.
954
955`--sata[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_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_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]` ::
956
957Use volume as SATA hard disk or CD-ROM (n is 0 to 5).
958
959`--scsi[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_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_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,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>] [,product=<product>] [,queues=<integer>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,scsiblock=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,vendor=<vendor>] [,werror=<enum>] [,wwn=<wwn>]` ::
960
961Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).
962
963`--scsihw` `<lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single>` ('default =' `lsi`)::
964
965SCSI controller model
966
967`--searchdomain` `<string>` ::
968
969cloud-init: Sets DNS search domains for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
970
971`--serial[n]` `(/dev/.+|socket)` ::
972
973Create a serial device inside the VM (n is 0 to 3)
974
975`--shares` `<integer> (0 - 50000)` ('default =' `1000`)::
976
977Amount 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. Auto-ballooning is done by pvestatd.
978
979`--smbios1` `[base64=<1|0>] [,family=<Base64 encoded string>] [,manufacturer=<Base64 encoded string>] [,product=<Base64 encoded string>] [,serial=<Base64 encoded string>] [,sku=<Base64 encoded string>] [,uuid=<UUID>] [,version=<Base64 encoded string>]` ::
980
981Specify SMBIOS type 1 fields.
982
983`--smp` `<integer> (1 - N)` ('default =' `1`)::
984
985The number of CPUs. Please use option -sockets instead.
986
987`--sockets` `<integer> (1 - N)` ('default =' `1`)::
988
989The number of CPU sockets.
990
991`--spice_enhancements` `[foldersharing=<1|0>] [,videostreaming=<off|all|filter>]` ::
992
993Configure additional enhancements for SPICE.
994
995`--sshkeys` `<string>` ::
996
997cloud-init: Setup public SSH keys (one key per line, OpenSSH format).
998
999`--startdate` `(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)` ('default =' `now`)::
1000
1001Set the initial date of the real time clock. Valid format for date are:'now' or '2006-06-17T16:01:21' or '2006-06-17'.
1002
1003`--startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
1004
1005Startup 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.
1006
907e4bc3 1007`--storage` `<storage ID>` ::
c6d5bae8
TL
1008
1009Default storage.
1010
1011`--tablet` `<boolean>` ('default =' `1`)::
1012
1013Enable/disable the USB tablet device.
1014
1015`--tags` `<string>` ::
1016
1017Tags of the VM. This is only meta information.
1018
1019`--tdf` `<boolean>` ('default =' `0`)::
1020
1021Enable/disable time drift fix.
1022
1023`--template` `<boolean>` ('default =' `0`)::
1024
1025Enable/disable Template.
1026
1027`--tpmstate0` `[file=]<volume> [,size=<DiskSize>] [,version=<v1.2|v2.0>]` ::
1028
1029Configure a Disk for storing TPM state. The format is fixed to 'raw'.
1030
1031`--unused[n]` `[file=]<volume>` ::
1032
1033Reference to unused volumes. This is used internally, and should not be modified manually.
1034
1035`--usb[n]` `[[host=]<HOSTUSBDEVICE|spice>] [,mapping=<mapping-id>] [,usb3=<1|0>]` ::
1036
1037Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).
1038
1039`--vcpus` `<integer> (1 - N)` ('default =' `0`)::
1040
1041Number of hotplugged vcpus.
1042
1043`--vga` `[[type=]<enum>] [,clipboard=<vnc>] [,memory=<integer>]` ::
1044
1045Configure the VGA hardware.
1046
1047`--virtio[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_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_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,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>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
1048
1049Use volume as VIRTIO hard disk (n is 0 to 15).
1050
1051`--vmgenid` `<UUID>` ('default =' `1 (autogenerated)`)::
1052
1053Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly.
1054
907e4bc3 1055`--vmstatestorage` `<storage ID>` ::
c6d5bae8
TL
1056
1057Default storage for VM state volumes/files.
1058
1059`--watchdog` `[[model=]<i6300esb|ib700>] [,action=<enum>]` ::
1060
1061Create a virtual hardware watchdog device.
1062
4e7f60c2 1063*qm importdisk*
5d9c884c 1064
4e7f60c2 1065An alias for 'qm disk import'.
2489d6df 1066
2489d6df
WB
1067*qm importovf* `<vmid> <manifest> <storage>` `[OPTIONS]`
1068
1069Create a new VM using parameters read from an OVF manifest
1070
8dd66e12 1071`<vmid>`: `<integer> (100 - 999999999)` ::
2489d6df
WB
1072
1073The (unique) ID of the VM.
1074
1075`<manifest>`: `<string>` ::
1076
1077path to the ovf file
1078
907e4bc3 1079`<storage>`: `<storage ID>` ::
2489d6df
WB
1080
1081Target storage ID
1082
1083`--dryrun` `<boolean>` ::
1084
1085Print a parsed representation of the extracted OVF parameters, but do not create a VM
1086
1087`--format` `<qcow2 | raw | vmdk>` ::
5d9c884c
DM
1088
1089Target format
1090
9b3e4991 1091*qm list* `[OPTIONS]`
1f554f76
DM
1092
1093Virtual machine index (per node).
1094
2489d6df 1095`--full` `<boolean>` ::
9b3e4991
DM
1096
1097Determine the full status of active VMs.
1098
de0983cb
DM
1099*qm listsnapshot* `<vmid>`
1100
1101List all snapshots.
1102
8dd66e12 1103`<vmid>`: `<integer> (100 - 999999999)` ::
de0983cb
DM
1104
1105The (unique) ID of the VM.
1106
1f554f76
DM
1107*qm migrate* `<vmid> <target>` `[OPTIONS]`
1108
1109Migrate virtual machine. Creates a new migration task.
1110
8dd66e12 1111`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1112
1113The (unique) ID of the VM.
1114
013dc89f 1115`<target>`: `<string>` ::
1f554f76
DM
1116
1117Target node.
1118
95895385
TL
1119`--bwlimit` `<integer> (0 - N)` ('default =' `migrate limit from datacenter or storage config`)::
1120
1121Override I/O bandwidth limit (in KiB/s).
1122
2489d6df 1123`--force` `<boolean>` ::
1f554f76 1124
c2993fe5 1125Allow to migrate VMs which use local devices. Only root may use this option.
1f554f76 1126
2489d6df 1127`--migration_network` `<string>` ::
de0983cb
DM
1128
1129CIDR of the (sub) network that is used for migration.
1130
2489d6df 1131`--migration_type` `<insecure | secure>` ::
de0983cb
DM
1132
1133Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.
1134
2489d6df 1135`--online` `<boolean>` ::
1f554f76 1136
1c532546 1137Use online/live migration if VM is running. Ignored if VM is stopped.
1f554f76 1138
2489d6df 1139`--targetstorage` `<string>` ::
52e44c50 1140
c5aa7e14 1141Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value '1' will map each source storage to itself.
52e44c50 1142
2489d6df 1143`--with-local-disks` `<boolean>` ::
52e44c50
FG
1144
1145Enable live storage migration for local disk
1146
1f554f76
DM
1147*qm monitor* `<vmid>`
1148
9d2e98ed 1149Enter QEMU Monitor interface.
1f554f76 1150
8dd66e12 1151`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1152
1153The (unique) ID of the VM.
1154
4e7f60c2 1155*qm move-disk*
5370fa8c 1156
4e7f60c2 1157An alias for 'qm disk move'.
5370fa8c
TL
1158
1159*qm move_disk*
1160
4e7f60c2 1161An alias for 'qm disk move'.
5370fa8c 1162
1f554f76
DM
1163*qm mtunnel*
1164
1165Used by qmigrate - do not use manually.
1166
52e44c50
FG
1167*qm nbdstop* `<vmid>`
1168
1169Stop embedded nbd server.
1170
8dd66e12 1171`<vmid>`: `<integer> (100 - 999999999)` ::
52e44c50
FG
1172
1173The (unique) ID of the VM.
1174
1f554f76
DM
1175*qm pending* `<vmid>`
1176
e9cd3bd4 1177Get the virtual machine configuration with both current and pending values.
1f554f76 1178
8dd66e12 1179`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1180
1181The (unique) ID of the VM.
1182
1c532546
TL
1183*qm reboot* `<vmid>` `[OPTIONS]`
1184
1185Reboot the VM by shutting it down, and starting it again. Applies pending
1186changes.
1187
8dd66e12 1188`<vmid>`: `<integer> (100 - 999999999)` ::
1c532546
TL
1189
1190The (unique) ID of the VM.
1191
1192`--timeout` `<integer> (0 - N)` ::
1193
1194Wait maximal timeout seconds for the shutdown.
1195
81a3384d
TL
1196*qm remote-migrate* `<vmid> [<target-vmid>] <target-endpoint> --target-bridge <string> --target-storage <string>` `[OPTIONS]`
1197
1198Migrate virtual machine to a remote cluster. Creates a new migration task.
1199EXPERIMENTAL feature!
1200
8dd66e12 1201`<vmid>`: `<integer> (100 - 999999999)` ::
81a3384d
TL
1202
1203The (unique) ID of the VM.
1204
8dd66e12 1205`<target-vmid>`: `<integer> (100 - 999999999)` ::
81a3384d
TL
1206
1207The (unique) ID of the VM.
1208
907e4bc3 1209`<target-endpoint>`: `apitoken=<PVEAPIToken=user@realm!token=SECRET> ,host=<ADDRESS> [,fingerprint=<FINGERPRINT>] [,port=<PORT>]` ::
81a3384d
TL
1210
1211Remote target endpoint
1212
1213`--bwlimit` `<integer> (0 - N)` ('default =' `migrate limit from datacenter or storage config`)::
1214
1215Override I/O bandwidth limit (in KiB/s).
1216
1217`--delete` `<boolean>` ('default =' `0`)::
1218
1219Delete the original VM and related data after successful migration. By default the original VM is kept on the source cluster in a stopped state.
1220
1221`--online` `<boolean>` ::
1222
1223Use online/live migration if VM is running. Ignored if VM is stopped.
1224
1225`--target-bridge` `<string>` ::
1226
1227Mapping from source to target bridges. Providing only a single bridge ID maps all source bridges to that bridge. Providing the special value '1' will map each source bridge to itself.
1228
1229`--target-storage` `<string>` ::
1230
1231Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value '1' will map each source storage to itself.
1232
4e7f60c2 1233*qm rescan*
1f554f76 1234
4e7f60c2 1235An alias for 'qm disk rescan'.
1f554f76 1236
1f554f76
DM
1237*qm reset* `<vmid>` `[OPTIONS]`
1238
1239Reset virtual machine.
1240
8dd66e12 1241`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1242
1243The (unique) ID of the VM.
1244
2489d6df 1245`--skiplock` `<boolean>` ::
1f554f76
DM
1246
1247Ignore locks - only root is allowed to use this option.
1248
4e7f60c2 1249*qm resize*
1f554f76 1250
4e7f60c2 1251An alias for 'qm disk resize'.
1f554f76 1252
1f554f76
DM
1253*qm resume* `<vmid>` `[OPTIONS]`
1254
1255Resume virtual machine.
1256
8dd66e12 1257`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1258
1259The (unique) ID of the VM.
1260
2489d6df 1261`--nocheck` `<boolean>` ::
1f554f76
DM
1262
1263no description available
1264
2489d6df 1265`--skiplock` `<boolean>` ::
1f554f76
DM
1266
1267Ignore locks - only root is allowed to use this option.
1268
4e7f60c2 1269*qm rollback* `<vmid> <snapname>` `[OPTIONS]`
1f554f76
DM
1270
1271Rollback VM state to specified snapshot.
1272
8dd66e12 1273`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1274
1275The (unique) ID of the VM.
1276
013dc89f 1277`<snapname>`: `<string>` ::
1f554f76
DM
1278
1279The name of the snapshot.
1280
4e7f60c2
TL
1281`--start` `<boolean>` ('default =' `0`)::
1282
9d2e98ed 1283Whether the VM should get started after rolling back successfully. (Note: VMs will be automatically started if the snapshot includes RAM.)
4e7f60c2 1284
1f554f76
DM
1285*qm sendkey* `<vmid> <key>` `[OPTIONS]`
1286
1287Send key event to virtual machine.
1288
8dd66e12 1289`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1290
1291The (unique) ID of the VM.
1292
013dc89f 1293`<key>`: `<string>` ::
1f554f76
DM
1294
1295The key (qemu monitor encoding).
1296
2489d6df 1297`--skiplock` `<boolean>` ::
1f554f76
DM
1298
1299Ignore locks - only root is allowed to use this option.
1300
1f554f76
DM
1301*qm set* `<vmid>` `[OPTIONS]`
1302
1303Set virtual machine options (synchrounous API) - You should consider using
1304the POST method instead for any actions involving hotplug or storage
1305allocation.
1306
8dd66e12 1307`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1308
1309The (unique) ID of the VM.
1310
2489d6df 1311`--acpi` `<boolean>` ('default =' `1`)::
1f554f76
DM
1312
1313Enable/disable ACPI.
1314
4e7f60c2
TL
1315`--affinity` `<string>` ::
1316
81a3384d 1317List of host cores used to execute guest processes, for example: 0,5,8-11
4e7f60c2 1318
9d2e98ed 1319`--agent` `[enabled=]<1|0> [,freeze-fs-on-backup=<1|0>] [,fstrim_cloned_disks=<1|0>] [,type=<virtio|isa>]` ::
1f554f76 1320
9d2e98ed 1321Enable/disable communication with the QEMU Guest Agent and its properties.
1f554f76 1322
e2d681b3
TL
1323`--arch` `<aarch64 | x86_64>` ::
1324
1325Virtual processor architecture. Defaults to the host.
1326
2489d6df 1327`--args` `<string>` ::
1f554f76 1328
c2993fe5 1329Arbitrary arguments passed to kvm.
1f554f76 1330
d2656385 1331`--audio0` `device=<ich9-intel-hda|intel-hda|AC97> [,driver=<spice|none>]` ::
1c532546
TL
1332
1333Configure a audio device, useful in combination with QXL/Spice.
1334
2489d6df 1335`--autostart` `<boolean>` ('default =' `0`)::
1f554f76
DM
1336
1337Automatic restart after crash (currently ignored).
1338
2489d6df 1339`--balloon` `<integer> (0 - N)` ::
1f554f76 1340
9d2e98ed 1341Amount of target RAM for the VM in MiB. Using zero disables the ballon driver.
1f554f76 1342
2489d6df 1343`--bios` `<ovmf | seabios>` ('default =' `seabios`)::
1f554f76
DM
1344
1345Select BIOS implementation.
1346
4772952b 1347`--boot` `[[legacy=]<[acdn]{1,4}>] [,order=<device[;device...]>]` ::
1f554f76 1348
5370fa8c 1349Specify guest boot order. Use the 'order=' sub-property as usage with no key or 'legacy=' is deprecated.
1f554f76 1350
2489d6df 1351`--bootdisk` `(ide|sata|scsi|virtio)\d+` ::
1f554f76 1352
4772952b 1353Enable booting from specified disk. Deprecated: Use 'boot: order=foo;bar' instead.
1f554f76 1354
2489d6df 1355`--cdrom` `<volume>` ::
1f554f76
DM
1356
1357This is an alias for option -ide2
1358
5370fa8c 1359`--cicustom` `[meta=<volume>] [,network=<volume>] [,user=<volume>] [,vendor=<volume>]` ::
95895385
TL
1360
1361cloud-init: Specify custom files to replace the automatically generated ones at start.
1362
27a7acb2
DM
1363`--cipassword` `<password>` ::
1364
1365cloud-init: Password to assign the user. Using this is generally not recommended. Use ssh keys instead. Also note that older cloud-init versions do not support hashed passwords.
1366
d2656385 1367`--citype` `<configdrive2 | nocloud | opennebula>` ::
27a7acb2
DM
1368
1369Specifies the cloud-init configuration format. The default depends on the configured operating system type (`ostype`. We use the `nocloud` format for Linux, and `configdrive2` for windows.
1370
c8eee6ff 1371`--ciupgrade` `<boolean>` ('default =' `1`)::
159464a9
TL
1372
1373cloud-init: do an automatic package upgrade after the first boot.
1374
27a7acb2
DM
1375`--ciuser` `<string>` ::
1376
1377cloud-init: User name to change ssh keys and password for instead of the image's configured default user.
1378
2489d6df 1379`--cores` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
1380
1381The number of cores per socket.
1382
04d22a9f 1383`--cpu` `[[cputype=]<string>] [,flags=<+FLAG[;-FLAG...]>] [,hidden=<1|0>] [,hv-vendor-id=<vendor-id>] [,phys-bits=<8-64|host>] [,reported-model=<enum>]` ::
1f554f76
DM
1384
1385Emulated CPU type.
1386
2489d6df 1387`--cpulimit` `<number> (0 - 128)` ('default =' `0`)::
1f554f76 1388
9b3e4991 1389Limit of CPU usage.
1f554f76 1390
7af2edf9 1391`--cpuunits` `<integer> (1 - 262144)` ('default =' `cgroup v1: 1024, cgroup v2: 100`)::
1f554f76 1392
5370fa8c 1393CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2.
1f554f76 1394
2489d6df 1395`--delete` `<string>` ::
1f554f76
DM
1396
1397A list of settings you want to delete.
1398
2489d6df 1399`--description` `<string>` ::
1f554f76 1400
8f4d9c87 1401Description for the VM. Shown in the web-interface VM's summary. This is saved as comment inside the configuration file.
1f554f76 1402
2489d6df 1403`--digest` `<string>` ::
1f554f76 1404
c2993fe5 1405Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
1f554f76 1406
7af2edf9 1407`--efidisk0` `[file=]<volume> [,efitype=<2m|4m>] [,format=<enum>] [,import-from=<source volume>] [,pre-enrolled-keys=<1|0>] [,size=<DiskSize>]` ::
2c0dde61 1408
9d2e98ed 1409Configure a disk for storing EFI vars. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and that the default EFI vars are copied to the volume instead. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.
2c0dde61 1410
2489d6df 1411`--force` `<boolean>` ::
1f554f76 1412
c2993fe5 1413Force 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.
1f554f76
DM
1414+
1415NOTE: Requires option(s): `delete`
1416
2489d6df 1417`--freeze` `<boolean>` ::
1f554f76
DM
1418
1419Freeze CPU at startup (use 'c' monitor command to start execution).
1420
5f26e15b
TL
1421`--hookscript` `<string>` ::
1422
1423Script that will be executed during various steps in the vms lifetime.
1424
499c9b7f 1425`--hostpci[n]` `[[host=]<HOSTPCIID[;HOSTPCIID2...]>] [,device-id=<hex id>] [,legacy-igd=<1|0>] [,mapping=<mapping-id>] [,mdev=<string>] [,pcie=<1|0>] [,rombar=<1|0>] [,romfile=<string>] [,sub-device-id=<hex id>] [,sub-vendor-id=<hex id>] [,vendor-id=<hex id>] [,x-vga=<1|0>]` ::
1f554f76 1426
c2993fe5 1427Map host PCI devices into guest.
1f554f76 1428
2489d6df 1429`--hotplug` `<string>` ('default =' `network,disk,usb`)::
1f554f76 1430
4e7f60c2 1431Selectively enable hotplug features. This is a comma separated list of hotplug features: 'network', 'disk', 'cpu', 'memory', 'usb' and 'cloudinit'. Use '0' to disable hotplug completely. Using '1' as value is an alias for the default `network,disk,usb`. USB hotplugging is possible for guests with machine version >= 7.1 and ostype l26 or windows > 7.
1f554f76 1432
2489d6df 1433`--hugepages` `<1024 | 2 | any>` ::
2c0dde61
DM
1434
1435Enable/disable hugepages memory.
1436
7af2edf9 1437`--ide[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]` ::
1f554f76 1438
7af2edf9 1439Use volume as IDE hard disk or CD-ROM (n is 0 to 3). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.
1f554f76 1440
27a7acb2
DM
1441`--ipconfig[n]` `[gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>]` ::
1442
1443cloud-init: Specify IP addresses and gateways for the corresponding interface.
1444+
1445IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified.
1446+
4772952b
TL
1447The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit
1448gateway should be provided.
d2656385
TL
1449For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires
1450cloud-init 19.4 or newer.
27a7acb2 1451+
4772952b
TL
1452If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using
1453dhcp on IPv4.
27a7acb2 1454
95895385
TL
1455`--ivshmem` `size=<integer> [,name=<string>]` ::
1456
1457Inter-VM shared memory. Useful for direct communication between VMs, or to the host.
1458
4772952b
TL
1459`--keephugepages` `<boolean>` ('default =' `0`)::
1460
1461Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts.
1462
35a75dd3 1463`--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>` ::
1f554f76 1464
7af2edf9 1465Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS.
1f554f76 1466
2489d6df 1467`--kvm` `<boolean>` ('default =' `1`)::
1f554f76
DM
1468
1469Enable/disable KVM hardware virtualization.
1470
2489d6df 1471`--localtime` `<boolean>` ::
1f554f76 1472
5370fa8c 1473Set the real time clock (RTC) to local time. This is enabled by default if the `ostype` indicates a Microsoft Windows OS.
1f554f76 1474
95895385 1475`--lock` `<backup | clone | create | migrate | rollback | snapshot | snapshot-delete | suspended | suspending>` ::
1f554f76
DM
1476
1477Lock/unlock the VM.
1478
907e4bc3 1479`--machine` `[[type=]<machine type>] [,viommu=<intel|virtio>]` ::
1f554f76 1480
907e4bc3 1481Specify the QEMU machine.
1f554f76 1482
bd92b745 1483`--memory` `[current=]<integer>` ::
1f554f76 1484
bd92b745 1485Memory properties.
1f554f76 1486
2489d6df 1487`--migrate_downtime` `<number> (0 - N)` ('default =' `0.1`)::
1f554f76
DM
1488
1489Set maximum tolerated downtime (in seconds) for migrations.
1490
2489d6df 1491`--migrate_speed` `<integer> (0 - N)` ('default =' `0`)::
1f554f76
DM
1492
1493Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
1494
2489d6df 1495`--name` `<string>` ::
1f554f76
DM
1496
1497Set a name for the VM. Only used on the configuration web interface.
1498
27a7acb2
DM
1499`--nameserver` `<string>` ::
1500
de786b48 1501cloud-init: Sets DNS server IP address for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
27a7acb2 1502
ac70d7d1 1503`--net[n]` `[model=]<enum> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,mtu=<integer>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]` ::
1f554f76
DM
1504
1505Specify network devices.
1f554f76 1506
2489d6df 1507`--numa` `<boolean>` ('default =' `0`)::
1f554f76 1508
9b3e4991 1509Enable/disable NUMA.
1f554f76 1510
2489d6df 1511`--numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
1f554f76 1512
c2993fe5 1513NUMA topology.
1f554f76 1514
2489d6df 1515`--onboot` `<boolean>` ('default =' `0`)::
1f554f76
DM
1516
1517Specifies whether a VM will be started during system bootup.
1518
5370fa8c 1519`--ostype` `<l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win11 | win7 | win8 | wvista | wxp>` ::
1f554f76 1520
c2993fe5 1521Specify guest operating system.
1f554f76 1522
2489d6df 1523`--parallel[n]` `/dev/parport\d+|/dev/usb/lp\d+` ::
1f554f76
DM
1524
1525Map host parallel devices (n is 0 to 2).
1f554f76 1526
2489d6df 1527`--protection` `<boolean>` ('default =' `0`)::
1f554f76 1528
c2993fe5 1529Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
1f554f76 1530
2489d6df 1531`--reboot` `<boolean>` ('default =' `1`)::
1f554f76
DM
1532
1533Allow reboot. If set to '0' the VM exit on reboot.
1534
2489d6df 1535`--revert` `<string>` ::
1f554f76
DM
1536
1537Revert a pending change.
1538
c5aa7e14
TL
1539`--rng0` `[source=]</dev/urandom|/dev/random|/dev/hwrng> [,max_bytes=<integer>] [,period=<integer>]` ::
1540
1541Configure a VirtIO-based Random Number Generator.
1542
7af2edf9 1543`--sata[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]` ::
1f554f76 1544
7af2edf9 1545Use volume as SATA hard disk or CD-ROM (n is 0 to 5). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.
1f554f76 1546
c6d5bae8 1547`--scsi[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,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>] [,product=<product>] [,queues=<integer>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,scsiblock=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,vendor=<vendor>] [,werror=<enum>] [,wwn=<wwn>]` ::
1f554f76 1548
7af2edf9 1549Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.
1f554f76 1550
2489d6df 1551`--scsihw` `<lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single>` ('default =' `lsi`)::
1f554f76 1552
c2993fe5 1553SCSI controller model
1f554f76 1554
27a7acb2
DM
1555`--searchdomain` `<string>` ::
1556
de786b48 1557cloud-init: Sets DNS search domains for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
27a7acb2 1558
2489d6df 1559`--serial[n]` `(/dev/.+|socket)` ::
1f554f76 1560
c2993fe5 1561Create a serial device inside the VM (n is 0 to 3)
1f554f76 1562
2489d6df 1563`--shares` `<integer> (0 - 50000)` ('default =' `1000`)::
1f554f76 1564
5da3d723 1565Amount 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. Auto-ballooning is done by pvestatd.
1f554f76 1566
2489d6df 1567`--skiplock` `<boolean>` ::
1f554f76
DM
1568
1569Ignore locks - only root is allowed to use this option.
1570
1e3f8156 1571`--smbios1` `[base64=<1|0>] [,family=<Base64 encoded string>] [,manufacturer=<Base64 encoded string>] [,product=<Base64 encoded string>] [,serial=<Base64 encoded string>] [,sku=<Base64 encoded string>] [,uuid=<UUID>] [,version=<Base64 encoded string>]` ::
1f554f76
DM
1572
1573Specify SMBIOS type 1 fields.
1574
2489d6df 1575`--smp` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
1576
1577The number of CPUs. Please use option -sockets instead.
1578
2489d6df 1579`--sockets` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
1580
1581The number of CPU sockets.
1582
1c532546
TL
1583`--spice_enhancements` `[foldersharing=<1|0>] [,videostreaming=<off|all|filter>]` ::
1584
1585Configure additional enhancements for SPICE.
1586
27a7acb2
DM
1587`--sshkeys` `<filepath>` ::
1588
1589cloud-init: Setup public SSH keys (one key per line, OpenSSH format).
1590
2489d6df 1591`--startdate` `(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)` ('default =' `now`)::
1f554f76 1592
4772952b 1593Set the initial date of the real time clock. Valid format for date are:'now' or '2006-06-17T16:01:21' or '2006-06-17'.
1f554f76 1594
2489d6df 1595`--startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
1f554f76 1596
c2993fe5 1597Startup 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.
1f554f76 1598
2489d6df 1599`--tablet` `<boolean>` ('default =' `1`)::
1f554f76 1600
c2993fe5 1601Enable/disable the USB tablet device.
1f554f76 1602
5c1699e5
TL
1603`--tags` `<string>` ::
1604
1605Tags of the VM. This is only meta information.
1606
2489d6df 1607`--tdf` `<boolean>` ('default =' `0`)::
1f554f76
DM
1608
1609Enable/disable time drift fix.
1610
2489d6df 1611`--template` `<boolean>` ('default =' `0`)::
1f554f76
DM
1612
1613Enable/disable Template.
1614
7af2edf9 1615`--tpmstate0` `[file=]<volume> [,import-from=<source volume>] [,size=<DiskSize>] [,version=<v1.2|v2.0>]` ::
5370fa8c 1616
7af2edf9 1617Configure a Disk for storing TPM state. The format is fixed to 'raw'. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and 4 MiB will be used instead. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.
5370fa8c 1618
c5aa7e14 1619`--unused[n]` `[file=]<volume>` ::
1f554f76 1620
c2993fe5 1621Reference to unused volumes. This is used internally, and should not be modified manually.
1f554f76 1622
499c9b7f 1623`--usb[n]` `[[host=]<HOSTUSBDEVICE|spice>] [,mapping=<mapping-id>] [,usb3=<1|0>]` ::
1f554f76 1624
4e7f60c2 1625Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).
1f554f76 1626
2489d6df 1627`--vcpus` `<integer> (1 - N)` ('default =' `0`)::
1f554f76
DM
1628
1629Number of hotplugged vcpus.
1630
fa22697b 1631`--vga` `[[type=]<enum>] [,clipboard=<vnc>] [,memory=<integer>]` ::
1f554f76 1632
e2d681b3 1633Configure the VGA hardware.
1f554f76 1634
7af2edf9 1635`--virtio[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,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>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
1f554f76 1636
7af2edf9 1637Use volume as VIRTIO hard disk (n is 0 to 15). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.
1f554f76 1638
4d47f125
TL
1639`--vmgenid` `<UUID>` ('default =' `1 (autogenerated)`)::
1640
1641Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly.
1642
907e4bc3 1643`--vmstatestorage` `<storage ID>` ::
2489d6df
WB
1644
1645Default storage for VM state volumes/files.
1646
1647`--watchdog` `[[model=]<i6300esb|ib700>] [,action=<enum>]` ::
1f554f76 1648
c2993fe5 1649Create a virtual hardware watchdog device.
1f554f76 1650
35a75dd3 1651*qm showcmd* `<vmid>` `[OPTIONS]`
1f554f76
DM
1652
1653Show command line which is used to start the VM (debug info).
1654
8dd66e12 1655`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1656
1657The (unique) ID of the VM.
1658
35a75dd3 1659`--pretty` `<boolean>` ('default =' `0`)::
1f554f76 1660
35a75dd3 1661Puts each option on a new line to enhance human readability
1f554f76 1662
5f26e15b
TL
1663`--snapshot` `<string>` ::
1664
1665Fetch config values from given snapshot.
1666
1f554f76
DM
1667*qm shutdown* `<vmid>` `[OPTIONS]`
1668
9b3e4991 1669Shutdown virtual machine. This is similar to pressing the power button on a
907e4bc3 1670physical machine. This will send an ACPI event for the guest OS, which
9b3e4991 1671should then proceed to a clean shutdown.
1f554f76 1672
8dd66e12 1673`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1674
1675The (unique) ID of the VM.
1676
2489d6df 1677`--forceStop` `<boolean>` ('default =' `0`)::
1f554f76
DM
1678
1679Make sure the VM stops.
1680
2489d6df 1681`--keepActive` `<boolean>` ('default =' `0`)::
1f554f76 1682
de0983cb 1683Do not deactivate storage volumes.
1f554f76 1684
2489d6df 1685`--skiplock` `<boolean>` ::
1f554f76
DM
1686
1687Ignore locks - only root is allowed to use this option.
1688
2489d6df 1689`--timeout` `<integer> (0 - N)` ::
1f554f76
DM
1690
1691Wait maximal timeout seconds.
1692
1f554f76
DM
1693*qm snapshot* `<vmid> <snapname>` `[OPTIONS]`
1694
1695Snapshot a VM.
1696
8dd66e12 1697`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1698
1699The (unique) ID of the VM.
1700
013dc89f 1701`<snapname>`: `<string>` ::
1f554f76
DM
1702
1703The name of the snapshot.
1704
2489d6df 1705`--description` `<string>` ::
1f554f76
DM
1706
1707A textual description or comment.
1708
2489d6df 1709`--vmstate` `<boolean>` ::
1f554f76
DM
1710
1711Save the vmstate
1712
1f554f76
DM
1713*qm start* `<vmid>` `[OPTIONS]`
1714
1715Start virtual machine.
1716
8dd66e12 1717`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1718
1719The (unique) ID of the VM.
1720
c5aa7e14
TL
1721`--force-cpu` `<string>` ::
1722
1723Override QEMU's -cpu argument with the given string.
1724
907e4bc3 1725`--machine` `[[type=]<machine type>] [,viommu=<intel|virtio>]` ::
1f554f76 1726
907e4bc3 1727Specify the QEMU machine.
1f554f76 1728
2489d6df 1729`--migratedfrom` `<string>` ::
1f554f76
DM
1730
1731The cluster node name.
1732
2489d6df 1733`--migration_network` `<string>` ::
de0983cb
DM
1734
1735CIDR of the (sub) network that is used for migration.
1736
2489d6df 1737`--migration_type` `<insecure | secure>` ::
de0983cb
DM
1738
1739Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.
1740
2489d6df 1741`--skiplock` `<boolean>` ::
1f554f76
DM
1742
1743Ignore locks - only root is allowed to use this option.
1744
2489d6df 1745`--stateuri` `<string>` ::
1f554f76
DM
1746
1747Some command save/restore state from this location.
1748
2489d6df 1749`--targetstorage` `<string>` ::
52e44c50 1750
c5aa7e14 1751Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value '1' will map each source storage to itself.
52e44c50 1752
e9cd3bd4
TL
1753`--timeout` `<integer> (0 - N)` ('default =' `max(30, vm memory in GiB)`)::
1754
1755Wait maximal timeout seconds.
1756
1f554f76
DM
1757*qm status* `<vmid>` `[OPTIONS]`
1758
1759Show VM status.
1760
8dd66e12 1761`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1762
1763The (unique) ID of the VM.
1764
2489d6df 1765`--verbose` `<boolean>` ::
1f554f76
DM
1766
1767Verbose output format
1768
1f554f76
DM
1769*qm stop* `<vmid>` `[OPTIONS]`
1770
907e4bc3
TL
1771Stop virtual machine. The qemu process will exit immediately. This is akin
1772to pulling the power plug of a running computer and may damage the VM data.
1f554f76 1773
8dd66e12 1774`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1775
1776The (unique) ID of the VM.
1777
2489d6df 1778`--keepActive` `<boolean>` ('default =' `0`)::
1f554f76 1779
de0983cb 1780Do not deactivate storage volumes.
1f554f76 1781
2489d6df 1782`--migratedfrom` `<string>` ::
1f554f76
DM
1783
1784The cluster node name.
1785
907e4bc3
TL
1786`--overrule-shutdown` `<boolean>` ('default =' `0`)::
1787
1788Try to abort active 'qmshutdown' tasks before stopping.
1789
2489d6df 1790`--skiplock` `<boolean>` ::
1f554f76
DM
1791
1792Ignore locks - only root is allowed to use this option.
1793
2489d6df 1794`--timeout` `<integer> (0 - N)` ::
1f554f76
DM
1795
1796Wait maximal timeout seconds.
1797
1f554f76
DM
1798*qm suspend* `<vmid>` `[OPTIONS]`
1799
1800Suspend virtual machine.
1801
8dd66e12 1802`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1803
1804The (unique) ID of the VM.
1805
2489d6df 1806`--skiplock` `<boolean>` ::
1f554f76
DM
1807
1808Ignore locks - only root is allowed to use this option.
1809
907e4bc3 1810`--statestorage` `<storage ID>` ::
95895385
TL
1811
1812The storage for the VM state
1813+
1814NOTE: Requires option(s): `todisk`
1815
1816`--todisk` `<boolean>` ('default =' `0`)::
1817
1818If set, suspends the VM to disk. Will be resumed on next VM start.
1819
1f554f76
DM
1820*qm template* `<vmid>` `[OPTIONS]`
1821
1822Create a Template.
1823
8dd66e12 1824`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1825
1826The (unique) ID of the VM.
1827
5370fa8c 1828`--disk` `<efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi14 | scsi15 | scsi16 | scsi17 | scsi18 | scsi19 | scsi2 | scsi20 | scsi21 | scsi22 | scsi23 | scsi24 | scsi25 | scsi26 | scsi27 | scsi28 | scsi29 | scsi3 | scsi30 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | tpmstate0 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>` ::
1f554f76
DM
1829
1830If you want to convert only 1 disk to base image.
1831
1f554f76
DM
1832*qm terminal* `<vmid>` `[OPTIONS]`
1833
1834Open a terminal using a serial device (The VM need to have a serial device
1835configured, for example 'serial0: socket')
1836
8dd66e12 1837`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1838
1839The (unique) ID of the VM.
1840
35a75dd3 1841`--escape` `<string>` ('default =' `^O`)::
1f554f76 1842
35a75dd3 1843Escape character.
1f554f76 1844
35a75dd3 1845`--iface` `<serial0 | serial1 | serial2 | serial3>` ::
1f554f76 1846
35a75dd3 1847Select the serial device. By default we simply use the first suitable device.
1f554f76 1848
4e7f60c2 1849*qm unlink*
1f554f76 1850
4e7f60c2 1851An alias for 'qm disk unlink'.
1f554f76 1852
1f554f76
DM
1853*qm unlock* `<vmid>`
1854
1855Unlock the VM.
1856
8dd66e12 1857`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1858
1859The (unique) ID of the VM.
1860
1f554f76
DM
1861*qm vncproxy* `<vmid>`
1862
1863Proxy VM VNC traffic to stdin/stdout
1864
8dd66e12 1865`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1866
1867The (unique) ID of the VM.
1868
1f554f76
DM
1869*qm wait* `<vmid>` `[OPTIONS]`
1870
1871Wait until the VM is stopped.
1872
8dd66e12 1873`<vmid>`: `<integer> (100 - 999999999)` ::
1f554f76
DM
1874
1875The (unique) ID of the VM.
1876
2489d6df 1877`--timeout` `<integer> (1 - N)` ::
1f554f76
DM
1878
1879Timeout in seconds. Default is to wait forever.
1880
1881