]> git.proxmox.com Git - pve-docs.git/blame - qm.1-synopsis.adoc
fix #3967: add ZFS dRAID documentation
[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
12`<vmid>`: `<integer> (1 - N)` ::
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
013dc89f 28`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
29
30The (unique) ID of the VM.
31
013dc89f 32`<newid>`: `<integer> (1 - N)` ::
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
2489d6df 64`--storage` `<string>` ::
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
76`<vmid>`: `<integer> (1 - N)` ::
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
88`<vmid>`: `<integer> (1 - N)` ::
89
90The (unique) ID of the VM.
91
92*qm cloudinit update* `<vmid>`
93
94Regenerate and change cloudinit config drive.
95
96`<vmid>`: `<integer> (1 - N)` ::
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
013dc89f 106`<vmid>`: `<integer> (1 - N)` ::
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
013dc89f 122`<vmid>`: `<integer> (1 - N)` ::
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
132List of host cores used to execute guest processes.
133
5c1699e5 134`--agent` `[enabled=]<1|0> [,fstrim_cloned_disks=<1|0>] [,type=<virtio|isa>]` ::
1f554f76 135
5370fa8c 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
c2993fe5 160Amount of target RAM for the VM in MB. 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
194`--ciuser` `<string>` ::
195
196cloud-init: User name to change ssh keys and password for instead of the image's configured default user.
197
2489d6df 198`--cores` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
199
200The number of cores per socket.
201
04d22a9f 202`--cpu` `[[cputype=]<string>] [,flags=<+FLAG[;-FLAG...]>] [,hidden=<1|0>] [,hv-vendor-id=<vendor-id>] [,phys-bits=<8-64|host>] [,reported-model=<enum>]` ::
1f554f76
DM
203
204Emulated CPU type.
205
2489d6df 206`--cpulimit` `<number> (0 - 128)` ('default =' `0`)::
1f554f76 207
9b3e4991 208Limit of CPU usage.
1f554f76 209
7af2edf9 210`--cpuunits` `<integer> (1 - 262144)` ('default =' `cgroup v1: 1024, cgroup v2: 100`)::
1f554f76 211
5370fa8c 212CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2.
1f554f76 213
2489d6df 214`--description` `<string>` ::
1f554f76 215
8f4d9c87 216Description for the VM. Shown in the web-interface VM's summary. This is saved as comment inside the configuration file.
1f554f76 217
7af2edf9 218`--efidisk0` `[file=]<volume> [,efitype=<2m|4m>] [,format=<enum>] [,import-from=<source volume>] [,pre-enrolled-keys=<1|0>] [,size=<DiskSize>]` ::
2c0dde61 219
7af2edf9 220Configure 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 221
2489d6df 222`--force` `<boolean>` ::
1f554f76
DM
223
224Allow to overwrite existing VM.
225+
226NOTE: Requires option(s): `archive`
227
2489d6df 228`--freeze` `<boolean>` ::
1f554f76
DM
229
230Freeze CPU at startup (use 'c' monitor command to start execution).
231
5f26e15b
TL
232`--hookscript` `<string>` ::
233
234Script that will be executed during various steps in the vms lifetime.
235
7af2edf9 236`--hostpci[n]` `[host=]<HOSTPCIID[;HOSTPCIID2...]> [,device-id=<hex id>] [,legacy-igd=<1|0>] [,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 237
c2993fe5 238Map host PCI devices into guest.
1f554f76 239
2489d6df 240`--hotplug` `<string>` ('default =' `network,disk,usb`)::
1f554f76 241
4e7f60c2 242Selectively 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 243
2489d6df 244`--hugepages` `<1024 | 2 | any>` ::
2c0dde61
DM
245
246Enable/disable hugepages memory.
247
7af2edf9 248`--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 249
7af2edf9 250Use 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 251
27a7acb2
DM
252`--ipconfig[n]` `[gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>]` ::
253
254cloud-init: Specify IP addresses and gateways for the corresponding interface.
255+
256IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified.
257+
4772952b
TL
258The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit
259gateway should be provided.
d2656385
TL
260For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires
261cloud-init 19.4 or newer.
27a7acb2 262+
4772952b
TL
263If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using
264dhcp on IPv4.
27a7acb2 265
95895385
TL
266`--ivshmem` `size=<integer> [,name=<string>]` ::
267
268Inter-VM shared memory. Useful for direct communication between VMs, or to the host.
269
4772952b
TL
270`--keephugepages` `<boolean>` ('default =' `0`)::
271
272Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts.
273
35a75dd3 274`--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 275
7af2edf9 276Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS.
1f554f76 277
2489d6df 278`--kvm` `<boolean>` ('default =' `1`)::
1f554f76
DM
279
280Enable/disable KVM hardware virtualization.
281
d2656385
TL
282`--live-restore` `<boolean>` ::
283
284Start the VM immediately from the backup and restore in background. PBS only.
285+
286NOTE: Requires option(s): `archive`
287
2489d6df 288`--localtime` `<boolean>` ::
1f554f76 289
5370fa8c 290Set the real time clock (RTC) to local time. This is enabled by default if the `ostype` indicates a Microsoft Windows OS.
1f554f76 291
95895385 292`--lock` `<backup | clone | create | migrate | rollback | snapshot | snapshot-delete | suspended | suspending>` ::
1f554f76
DM
293
294Lock/unlock the VM.
295
5c1699e5 296`--machine` `(pc|pc(-i440fx)?-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|q35|pc-q35-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|virt(?:-\d+(\.\d+)+)?(\+pve\d+)?)` ::
1f554f76 297
4d47f125 298Specifies the Qemu machine type.
1f554f76 299
2489d6df 300`--memory` `<integer> (16 - N)` ('default =' `512`)::
1f554f76 301
c2993fe5 302Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device.
1f554f76 303
2489d6df 304`--migrate_downtime` `<number> (0 - N)` ('default =' `0.1`)::
1f554f76
DM
305
306Set maximum tolerated downtime (in seconds) for migrations.
307
2489d6df 308`--migrate_speed` `<integer> (0 - N)` ('default =' `0`)::
1f554f76
DM
309
310Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
311
2489d6df 312`--name` `<string>` ::
1f554f76
DM
313
314Set a name for the VM. Only used on the configuration web interface.
315
27a7acb2
DM
316`--nameserver` `<string>` ::
317
de786b48 318cloud-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 319
ac70d7d1 320`--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
321
322Specify network devices.
1f554f76 323
2489d6df 324`--numa` `<boolean>` ('default =' `0`)::
1f554f76 325
9b3e4991 326Enable/disable NUMA.
1f554f76 327
2489d6df 328`--numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
1f554f76 329
c2993fe5 330NUMA topology.
1f554f76 331
2489d6df 332`--onboot` `<boolean>` ('default =' `0`)::
1f554f76
DM
333
334Specifies whether a VM will be started during system bootup.
335
5370fa8c 336`--ostype` `<l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win11 | win7 | win8 | wvista | wxp>` ::
1f554f76 337
c2993fe5 338Specify guest operating system.
1f554f76 339
2489d6df 340`--parallel[n]` `/dev/parport\d+|/dev/usb/lp\d+` ::
1f554f76
DM
341
342Map host parallel devices (n is 0 to 2).
1f554f76 343
2489d6df 344`--pool` `<string>` ::
1f554f76
DM
345
346Add the VM to the specified pool.
347
2489d6df 348`--protection` `<boolean>` ('default =' `0`)::
1f554f76 349
c2993fe5 350Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
1f554f76 351
2489d6df 352`--reboot` `<boolean>` ('default =' `1`)::
1f554f76
DM
353
354Allow reboot. If set to '0' the VM exit on reboot.
355
c5aa7e14
TL
356`--rng0` `[source=]</dev/urandom|/dev/random|/dev/hwrng> [,max_bytes=<integer>] [,period=<integer>]` ::
357
358Configure a VirtIO-based Random Number Generator.
359
7af2edf9 360`--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 361
7af2edf9 362Use 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 363
7af2edf9 364`--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>] [,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>] [,werror=<enum>] [,wwn=<wwn>]` ::
1f554f76 365
7af2edf9 366Use 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 367
2489d6df 368`--scsihw` `<lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single>` ('default =' `lsi`)::
1f554f76 369
c2993fe5 370SCSI controller model
1f554f76 371
27a7acb2
DM
372`--searchdomain` `<string>` ::
373
de786b48 374cloud-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 375
2489d6df 376`--serial[n]` `(/dev/.+|socket)` ::
1f554f76 377
c2993fe5 378Create a serial device inside the VM (n is 0 to 3)
1f554f76 379
2489d6df 380`--shares` `<integer> (0 - 50000)` ('default =' `1000`)::
1f554f76 381
5da3d723 382Amount 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 383
1e3f8156 384`--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
385
386Specify SMBIOS type 1 fields.
387
2489d6df 388`--smp` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
389
390The number of CPUs. Please use option -sockets instead.
391
2489d6df 392`--sockets` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
393
394The number of CPU sockets.
395
1c532546
TL
396`--spice_enhancements` `[foldersharing=<1|0>] [,videostreaming=<off|all|filter>]` ::
397
398Configure additional enhancements for SPICE.
399
27a7acb2
DM
400`--sshkeys` `<filepath>` ::
401
402cloud-init: Setup public SSH keys (one key per line, OpenSSH format).
403
5da3d723
TL
404`--start` `<boolean>` ('default =' `0`)::
405
406Start VM after it was created successfully.
407
2489d6df 408`--startdate` `(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)` ('default =' `now`)::
1f554f76 409
4772952b 410Set 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 411
2489d6df 412`--startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
1f554f76 413
c2993fe5 414Startup 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 415
2489d6df 416`--storage` `<string>` ::
1f554f76
DM
417
418Default storage.
419
2489d6df 420`--tablet` `<boolean>` ('default =' `1`)::
1f554f76 421
c2993fe5 422Enable/disable the USB tablet device.
1f554f76 423
5c1699e5
TL
424`--tags` `<string>` ::
425
426Tags of the VM. This is only meta information.
427
2489d6df 428`--tdf` `<boolean>` ('default =' `0`)::
1f554f76
DM
429
430Enable/disable time drift fix.
431
2489d6df 432`--template` `<boolean>` ('default =' `0`)::
1f554f76
DM
433
434Enable/disable Template.
435
7af2edf9 436`--tpmstate0` `[file=]<volume> [,import-from=<source volume>] [,size=<DiskSize>] [,version=<v1.2|v2.0>]` ::
5370fa8c 437
7af2edf9 438Configure 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 439
2489d6df 440`--unique` `<boolean>` ::
1f554f76
DM
441
442Assign a unique random ethernet address.
443+
444NOTE: Requires option(s): `archive`
445
c5aa7e14 446`--unused[n]` `[file=]<volume>` ::
1f554f76 447
c2993fe5 448Reference to unused volumes. This is used internally, and should not be modified manually.
1f554f76 449
2489d6df 450`--usb[n]` `[host=]<HOSTUSBDEVICE|spice> [,usb3=<1|0>]` ::
1f554f76 451
4e7f60c2 452Configure 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 453
2489d6df 454`--vcpus` `<integer> (1 - N)` ('default =' `0`)::
1f554f76
DM
455
456Number of hotplugged vcpus.
457
e2d681b3 458`--vga` `[[type=]<enum>] [,memory=<integer>]` ::
1f554f76 459
e2d681b3 460Configure the VGA hardware.
1f554f76 461
7af2edf9 462`--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 463
7af2edf9 464Use 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 465
4d47f125
TL
466`--vmgenid` `<UUID>` ('default =' `1 (autogenerated)`)::
467
468Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly.
469
2489d6df
WB
470`--vmstatestorage` `<string>` ::
471
472Default storage for VM state volumes/files.
473
474`--watchdog` `[[model=]<i6300esb|ib700>] [,action=<enum>]` ::
1f554f76 475
c2993fe5 476Create a virtual hardware watchdog device.
1f554f76 477
1f554f76
DM
478*qm delsnapshot* `<vmid> <snapname>` `[OPTIONS]`
479
480Delete a VM snapshot.
481
013dc89f 482`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
483
484The (unique) ID of the VM.
485
013dc89f 486`<snapname>`: `<string>` ::
1f554f76
DM
487
488The name of the snapshot.
489
2489d6df 490`--force` `<boolean>` ::
1f554f76
DM
491
492For removal from config file, even if removing disk snapshots fails.
493
1f554f76
DM
494*qm destroy* `<vmid>` `[OPTIONS]`
495
d2656385
TL
496Destroy the VM and all used/owned volumes. Removes any VM specific
497permissions and firewall rules
1f554f76 498
013dc89f 499`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
500
501The (unique) ID of the VM.
502
8f4d9c87 503`--destroy-unreferenced-disks` `<boolean>` ('default =' `0`)::
d2656385
TL
504
505If set, destroy additionally all disks not referenced in the config but with a matching VMID from all enabled storages.
506
1c532546
TL
507`--purge` `<boolean>` ::
508
d2656385 509Remove VMID from configurations, like backup & replication jobs and HA.
1c532546 510
2489d6df 511`--skiplock` `<boolean>` ::
1f554f76
DM
512
513Ignore locks - only root is allowed to use this option.
514
4e7f60c2
TL
515*qm disk import* `<vmid> <source> <storage>` `[OPTIONS]`
516
517Import an external disk image as an unused disk in a VM. The
518 image format has to be supported by qemu-img(1).
519
520`<vmid>`: `<integer> (1 - N)` ::
521
522The (unique) ID of the VM.
523
524`<source>`: `<string>` ::
525
526Path to the disk image to import
527
528`<storage>`: `<string>` ::
529
530Target storage ID
531
532`--format` `<qcow2 | raw | vmdk>` ::
533
534Target format
535
536*qm disk move* `<vmid> <disk> [<storage>]` `[OPTIONS]`
537
538Move volume to different storage or to a different VM.
539
540`<vmid>`: `<integer> (1 - N)` ::
541
542The (unique) ID of the VM.
543
544`<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>` ::
545
546The disk you want to move.
547
548`<storage>`: `<string>` ::
549
550Target storage.
551
552`--bwlimit` `<integer> (0 - N)` ('default =' `move limit from datacenter or storage config`)::
553
554Override I/O bandwidth limit (in KiB/s).
555
556`--delete` `<boolean>` ('default =' `0`)::
557
558Delete the original disk after successful copy. By default the original disk is kept as unused disk.
559
560`--digest` `<string>` ::
561
562Prevent changes if current configuration file has different SHA1"
563 ." digest. This can be used to prevent concurrent modifications.
564
565`--format` `<qcow2 | raw | vmdk>` ::
566
567Target Format.
568
569`--target-digest` `<string>` ::
570
571Prevent changes if the current config file of the target VM has a"
572 ." different SHA1 digest. This can be used to detect concurrent modifications.
573
574`--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>` ::
575
576The config key the disk will be moved to on the target VM (for example, ide0 or scsi1). Default is the source disk key.
577
578`--target-vmid` `<integer> (1 - N)` ::
579
580The (unique) ID of the VM.
581
582*qm disk rescan* `[OPTIONS]`
583
584Rescan all storages and update disk sizes and unused disk images.
585
586`--dryrun` `<boolean>` ('default =' `0`)::
587
588Do not actually write changes out to VM config(s).
589
590`--vmid` `<integer> (1 - N)` ::
591
592The (unique) ID of the VM.
593
594*qm disk resize* `<vmid> <disk> <size>` `[OPTIONS]`
595
596Extend volume size.
597
598`<vmid>`: `<integer> (1 - N)` ::
599
600The (unique) ID of the VM.
601
602`<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>` ::
603
604The disk you want to resize.
605
606`<size>`: `\+?\d+(\.\d+)?[KMGT]?` ::
607
608The 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.
609
610`--digest` `<string>` ::
611
612Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
613
614`--skiplock` `<boolean>` ::
615
616Ignore locks - only root is allowed to use this option.
617
618*qm disk unlink* `<vmid> --idlist <string>` `[OPTIONS]`
619
620Unlink/delete disk images.
621
622`<vmid>`: `<integer> (1 - N)` ::
623
624The (unique) ID of the VM.
625
626`--force` `<boolean>` ::
627
628Force 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.
629
630`--idlist` `<string>` ::
631
632A list of disk IDs you want to delete.
633
4d47f125
TL
634*qm guest cmd* `<vmid> <command>`
635
636Execute Qemu Guest Agent commands.
637
638`<vmid>`: `<integer> (1 - N)` ::
639
640The (unique) ID of the VM.
641
642`<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>` ::
643
644The QGA command.
645
646*qm guest exec* `<vmid> [<extra-args>]` `[OPTIONS]`
647
648Executes the given command via the guest agent
649
650`<vmid>`: `<integer> (1 - N)` ::
651
652The (unique) ID of the VM.
653
654`<extra-args>`: `<array>` ::
655
656Extra arguments as array
657
c5aa7e14
TL
658`--pass-stdin` `<boolean>` ('default =' `0`)::
659
660When 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.
661
4d47f125
TL
662`--synchronous` `<boolean>` ('default =' `1`)::
663
664If set to off, returns the pid immediately instead of waiting for the commmand to finish or the timeout.
665
666`--timeout` `<integer> (0 - N)` ('default =' `30`)::
667
668The maximum time to wait synchronously for the command to finish. If reached, the pid gets returned. Set to 0 to deactivate
669
670*qm guest exec-status* `<vmid> <pid>`
671
672Gets the status of the given pid started by the guest-agent
673
674`<vmid>`: `<integer> (1 - N)` ::
675
676The (unique) ID of the VM.
677
678`<pid>`: `<integer>` ::
679
680The PID to query
681
682*qm guest passwd* `<vmid> <username>` `[OPTIONS]`
683
684Sets the password for the given user to the given password
685
686`<vmid>`: `<integer> (1 - N)` ::
687
688The (unique) ID of the VM.
689
690`<username>`: `<string>` ::
691
692The user to set the password for.
693
694`--crypted` `<boolean>` ('default =' `0`)::
695
696set to 1 if the password has already been passed through crypt()
697
35a75dd3 698*qm help* `[OPTIONS]`
1f554f76
DM
699
700Get help about specified command.
701
35a75dd3 702`--extra-args` `<array>` ::
1f554f76 703
35a75dd3 704Shows help for a specific command
1f554f76 705
2489d6df 706`--verbose` `<boolean>` ::
1f554f76
DM
707
708Verbose output format.
709
4e7f60c2 710*qm importdisk*
5d9c884c 711
4e7f60c2 712An alias for 'qm disk import'.
2489d6df 713
2489d6df
WB
714*qm importovf* `<vmid> <manifest> <storage>` `[OPTIONS]`
715
716Create a new VM using parameters read from an OVF manifest
717
718`<vmid>`: `<integer> (1 - N)` ::
719
720The (unique) ID of the VM.
721
722`<manifest>`: `<string>` ::
723
724path to the ovf file
725
726`<storage>`: `<string>` ::
727
728Target storage ID
729
730`--dryrun` `<boolean>` ::
731
732Print a parsed representation of the extracted OVF parameters, but do not create a VM
733
734`--format` `<qcow2 | raw | vmdk>` ::
5d9c884c
DM
735
736Target format
737
9b3e4991 738*qm list* `[OPTIONS]`
1f554f76
DM
739
740Virtual machine index (per node).
741
2489d6df 742`--full` `<boolean>` ::
9b3e4991
DM
743
744Determine the full status of active VMs.
745
de0983cb
DM
746*qm listsnapshot* `<vmid>`
747
748List all snapshots.
749
013dc89f 750`<vmid>`: `<integer> (1 - N)` ::
de0983cb
DM
751
752The (unique) ID of the VM.
753
1f554f76
DM
754*qm migrate* `<vmid> <target>` `[OPTIONS]`
755
756Migrate virtual machine. Creates a new migration task.
757
013dc89f 758`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
759
760The (unique) ID of the VM.
761
013dc89f 762`<target>`: `<string>` ::
1f554f76
DM
763
764Target node.
765
95895385
TL
766`--bwlimit` `<integer> (0 - N)` ('default =' `migrate limit from datacenter or storage config`)::
767
768Override I/O bandwidth limit (in KiB/s).
769
2489d6df 770`--force` `<boolean>` ::
1f554f76 771
c2993fe5 772Allow to migrate VMs which use local devices. Only root may use this option.
1f554f76 773
2489d6df 774`--migration_network` `<string>` ::
de0983cb
DM
775
776CIDR of the (sub) network that is used for migration.
777
2489d6df 778`--migration_type` `<insecure | secure>` ::
de0983cb
DM
779
780Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.
781
2489d6df 782`--online` `<boolean>` ::
1f554f76 783
1c532546 784Use online/live migration if VM is running. Ignored if VM is stopped.
1f554f76 785
2489d6df 786`--targetstorage` `<string>` ::
52e44c50 787
c5aa7e14 788Mapping 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 789
2489d6df 790`--with-local-disks` `<boolean>` ::
52e44c50
FG
791
792Enable live storage migration for local disk
793
1f554f76
DM
794*qm monitor* `<vmid>`
795
796Enter Qemu Monitor interface.
797
013dc89f 798`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
799
800The (unique) ID of the VM.
801
4e7f60c2 802*qm move-disk*
5370fa8c 803
4e7f60c2 804An alias for 'qm disk move'.
5370fa8c
TL
805
806*qm move_disk*
807
4e7f60c2 808An alias for 'qm disk move'.
5370fa8c 809
1f554f76
DM
810*qm mtunnel*
811
812Used by qmigrate - do not use manually.
813
52e44c50
FG
814*qm nbdstop* `<vmid>`
815
816Stop embedded nbd server.
817
818`<vmid>`: `<integer> (1 - N)` ::
819
820The (unique) ID of the VM.
821
1f554f76
DM
822*qm pending* `<vmid>`
823
e9cd3bd4 824Get the virtual machine configuration with both current and pending values.
1f554f76 825
013dc89f 826`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
827
828The (unique) ID of the VM.
829
1c532546
TL
830*qm reboot* `<vmid>` `[OPTIONS]`
831
832Reboot the VM by shutting it down, and starting it again. Applies pending
833changes.
834
835`<vmid>`: `<integer> (1 - N)` ::
836
837The (unique) ID of the VM.
838
839`--timeout` `<integer> (0 - N)` ::
840
841Wait maximal timeout seconds for the shutdown.
842
4e7f60c2 843*qm rescan*
1f554f76 844
4e7f60c2 845An alias for 'qm disk rescan'.
1f554f76 846
1f554f76
DM
847*qm reset* `<vmid>` `[OPTIONS]`
848
849Reset virtual machine.
850
013dc89f 851`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
852
853The (unique) ID of the VM.
854
2489d6df 855`--skiplock` `<boolean>` ::
1f554f76
DM
856
857Ignore locks - only root is allowed to use this option.
858
4e7f60c2 859*qm resize*
1f554f76 860
4e7f60c2 861An alias for 'qm disk resize'.
1f554f76 862
1f554f76
DM
863*qm resume* `<vmid>` `[OPTIONS]`
864
865Resume virtual machine.
866
013dc89f 867`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
868
869The (unique) ID of the VM.
870
2489d6df 871`--nocheck` `<boolean>` ::
1f554f76
DM
872
873no description available
874
2489d6df 875`--skiplock` `<boolean>` ::
1f554f76
DM
876
877Ignore locks - only root is allowed to use this option.
878
4e7f60c2 879*qm rollback* `<vmid> <snapname>` `[OPTIONS]`
1f554f76
DM
880
881Rollback VM state to specified snapshot.
882
013dc89f 883`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
884
885The (unique) ID of the VM.
886
013dc89f 887`<snapname>`: `<string>` ::
1f554f76
DM
888
889The name of the snapshot.
890
4e7f60c2
TL
891`--start` `<boolean>` ('default =' `0`)::
892
893Whether the VM should get started after rolling back successfully
894
1f554f76
DM
895*qm sendkey* `<vmid> <key>` `[OPTIONS]`
896
897Send key event to virtual machine.
898
013dc89f 899`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
900
901The (unique) ID of the VM.
902
013dc89f 903`<key>`: `<string>` ::
1f554f76
DM
904
905The key (qemu monitor encoding).
906
2489d6df 907`--skiplock` `<boolean>` ::
1f554f76
DM
908
909Ignore locks - only root is allowed to use this option.
910
1f554f76
DM
911*qm set* `<vmid>` `[OPTIONS]`
912
913Set virtual machine options (synchrounous API) - You should consider using
914the POST method instead for any actions involving hotplug or storage
915allocation.
916
013dc89f 917`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
918
919The (unique) ID of the VM.
920
2489d6df 921`--acpi` `<boolean>` ('default =' `1`)::
1f554f76
DM
922
923Enable/disable ACPI.
924
4e7f60c2
TL
925`--affinity` `<string>` ::
926
927List of host cores used to execute guest processes.
928
5c1699e5 929`--agent` `[enabled=]<1|0> [,fstrim_cloned_disks=<1|0>] [,type=<virtio|isa>]` ::
1f554f76 930
5370fa8c 931Enable/disable communication with the Qemu Guest Agent and its properties.
1f554f76 932
e2d681b3
TL
933`--arch` `<aarch64 | x86_64>` ::
934
935Virtual processor architecture. Defaults to the host.
936
2489d6df 937`--args` `<string>` ::
1f554f76 938
c2993fe5 939Arbitrary arguments passed to kvm.
1f554f76 940
d2656385 941`--audio0` `device=<ich9-intel-hda|intel-hda|AC97> [,driver=<spice|none>]` ::
1c532546
TL
942
943Configure a audio device, useful in combination with QXL/Spice.
944
2489d6df 945`--autostart` `<boolean>` ('default =' `0`)::
1f554f76
DM
946
947Automatic restart after crash (currently ignored).
948
2489d6df 949`--balloon` `<integer> (0 - N)` ::
1f554f76 950
c2993fe5 951Amount of target RAM for the VM in MB. Using zero disables the ballon driver.
1f554f76 952
2489d6df 953`--bios` `<ovmf | seabios>` ('default =' `seabios`)::
1f554f76
DM
954
955Select BIOS implementation.
956
4772952b 957`--boot` `[[legacy=]<[acdn]{1,4}>] [,order=<device[;device...]>]` ::
1f554f76 958
5370fa8c 959Specify guest boot order. Use the 'order=' sub-property as usage with no key or 'legacy=' is deprecated.
1f554f76 960
2489d6df 961`--bootdisk` `(ide|sata|scsi|virtio)\d+` ::
1f554f76 962
4772952b 963Enable booting from specified disk. Deprecated: Use 'boot: order=foo;bar' instead.
1f554f76 964
2489d6df 965`--cdrom` `<volume>` ::
1f554f76
DM
966
967This is an alias for option -ide2
968
5370fa8c 969`--cicustom` `[meta=<volume>] [,network=<volume>] [,user=<volume>] [,vendor=<volume>]` ::
95895385
TL
970
971cloud-init: Specify custom files to replace the automatically generated ones at start.
972
27a7acb2
DM
973`--cipassword` `<password>` ::
974
975cloud-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.
976
d2656385 977`--citype` `<configdrive2 | nocloud | opennebula>` ::
27a7acb2
DM
978
979Specifies 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.
980
981`--ciuser` `<string>` ::
982
983cloud-init: User name to change ssh keys and password for instead of the image's configured default user.
984
2489d6df 985`--cores` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
986
987The number of cores per socket.
988
04d22a9f 989`--cpu` `[[cputype=]<string>] [,flags=<+FLAG[;-FLAG...]>] [,hidden=<1|0>] [,hv-vendor-id=<vendor-id>] [,phys-bits=<8-64|host>] [,reported-model=<enum>]` ::
1f554f76
DM
990
991Emulated CPU type.
992
2489d6df 993`--cpulimit` `<number> (0 - 128)` ('default =' `0`)::
1f554f76 994
9b3e4991 995Limit of CPU usage.
1f554f76 996
7af2edf9 997`--cpuunits` `<integer> (1 - 262144)` ('default =' `cgroup v1: 1024, cgroup v2: 100`)::
1f554f76 998
5370fa8c 999CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2.
1f554f76 1000
2489d6df 1001`--delete` `<string>` ::
1f554f76
DM
1002
1003A list of settings you want to delete.
1004
2489d6df 1005`--description` `<string>` ::
1f554f76 1006
8f4d9c87 1007Description for the VM. Shown in the web-interface VM's summary. This is saved as comment inside the configuration file.
1f554f76 1008
2489d6df 1009`--digest` `<string>` ::
1f554f76 1010
c2993fe5 1011Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
1f554f76 1012
7af2edf9 1013`--efidisk0` `[file=]<volume> [,efitype=<2m|4m>] [,format=<enum>] [,import-from=<source volume>] [,pre-enrolled-keys=<1|0>] [,size=<DiskSize>]` ::
2c0dde61 1014
7af2edf9 1015Configure 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 1016
2489d6df 1017`--force` `<boolean>` ::
1f554f76 1018
c2993fe5 1019Force 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
1020+
1021NOTE: Requires option(s): `delete`
1022
2489d6df 1023`--freeze` `<boolean>` ::
1f554f76
DM
1024
1025Freeze CPU at startup (use 'c' monitor command to start execution).
1026
5f26e15b
TL
1027`--hookscript` `<string>` ::
1028
1029Script that will be executed during various steps in the vms lifetime.
1030
7af2edf9 1031`--hostpci[n]` `[host=]<HOSTPCIID[;HOSTPCIID2...]> [,device-id=<hex id>] [,legacy-igd=<1|0>] [,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 1032
c2993fe5 1033Map host PCI devices into guest.
1f554f76 1034
2489d6df 1035`--hotplug` `<string>` ('default =' `network,disk,usb`)::
1f554f76 1036
4e7f60c2 1037Selectively 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 1038
2489d6df 1039`--hugepages` `<1024 | 2 | any>` ::
2c0dde61
DM
1040
1041Enable/disable hugepages memory.
1042
7af2edf9 1043`--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 1044
7af2edf9 1045Use 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 1046
27a7acb2
DM
1047`--ipconfig[n]` `[gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>]` ::
1048
1049cloud-init: Specify IP addresses and gateways for the corresponding interface.
1050+
1051IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified.
1052+
4772952b
TL
1053The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit
1054gateway should be provided.
d2656385
TL
1055For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires
1056cloud-init 19.4 or newer.
27a7acb2 1057+
4772952b
TL
1058If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using
1059dhcp on IPv4.
27a7acb2 1060
95895385
TL
1061`--ivshmem` `size=<integer> [,name=<string>]` ::
1062
1063Inter-VM shared memory. Useful for direct communication between VMs, or to the host.
1064
4772952b
TL
1065`--keephugepages` `<boolean>` ('default =' `0`)::
1066
1067Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts.
1068
35a75dd3 1069`--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 1070
7af2edf9 1071Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS.
1f554f76 1072
2489d6df 1073`--kvm` `<boolean>` ('default =' `1`)::
1f554f76
DM
1074
1075Enable/disable KVM hardware virtualization.
1076
2489d6df 1077`--localtime` `<boolean>` ::
1f554f76 1078
5370fa8c 1079Set the real time clock (RTC) to local time. This is enabled by default if the `ostype` indicates a Microsoft Windows OS.
1f554f76 1080
95895385 1081`--lock` `<backup | clone | create | migrate | rollback | snapshot | snapshot-delete | suspended | suspending>` ::
1f554f76
DM
1082
1083Lock/unlock the VM.
1084
5c1699e5 1085`--machine` `(pc|pc(-i440fx)?-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|q35|pc-q35-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|virt(?:-\d+(\.\d+)+)?(\+pve\d+)?)` ::
1f554f76 1086
4d47f125 1087Specifies the Qemu machine type.
1f554f76 1088
2489d6df 1089`--memory` `<integer> (16 - N)` ('default =' `512`)::
1f554f76 1090
c2993fe5 1091Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device.
1f554f76 1092
2489d6df 1093`--migrate_downtime` `<number> (0 - N)` ('default =' `0.1`)::
1f554f76
DM
1094
1095Set maximum tolerated downtime (in seconds) for migrations.
1096
2489d6df 1097`--migrate_speed` `<integer> (0 - N)` ('default =' `0`)::
1f554f76
DM
1098
1099Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
1100
2489d6df 1101`--name` `<string>` ::
1f554f76
DM
1102
1103Set a name for the VM. Only used on the configuration web interface.
1104
27a7acb2
DM
1105`--nameserver` `<string>` ::
1106
de786b48 1107cloud-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 1108
ac70d7d1 1109`--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
1110
1111Specify network devices.
1f554f76 1112
2489d6df 1113`--numa` `<boolean>` ('default =' `0`)::
1f554f76 1114
9b3e4991 1115Enable/disable NUMA.
1f554f76 1116
2489d6df 1117`--numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
1f554f76 1118
c2993fe5 1119NUMA topology.
1f554f76 1120
2489d6df 1121`--onboot` `<boolean>` ('default =' `0`)::
1f554f76
DM
1122
1123Specifies whether a VM will be started during system bootup.
1124
5370fa8c 1125`--ostype` `<l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win11 | win7 | win8 | wvista | wxp>` ::
1f554f76 1126
c2993fe5 1127Specify guest operating system.
1f554f76 1128
2489d6df 1129`--parallel[n]` `/dev/parport\d+|/dev/usb/lp\d+` ::
1f554f76
DM
1130
1131Map host parallel devices (n is 0 to 2).
1f554f76 1132
2489d6df 1133`--protection` `<boolean>` ('default =' `0`)::
1f554f76 1134
c2993fe5 1135Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
1f554f76 1136
2489d6df 1137`--reboot` `<boolean>` ('default =' `1`)::
1f554f76
DM
1138
1139Allow reboot. If set to '0' the VM exit on reboot.
1140
2489d6df 1141`--revert` `<string>` ::
1f554f76
DM
1142
1143Revert a pending change.
1144
c5aa7e14
TL
1145`--rng0` `[source=]</dev/urandom|/dev/random|/dev/hwrng> [,max_bytes=<integer>] [,period=<integer>]` ::
1146
1147Configure a VirtIO-based Random Number Generator.
1148
7af2edf9 1149`--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 1150
7af2edf9 1151Use 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 1152
7af2edf9 1153`--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>] [,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>] [,werror=<enum>] [,wwn=<wwn>]` ::
1f554f76 1154
7af2edf9 1155Use 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 1156
2489d6df 1157`--scsihw` `<lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single>` ('default =' `lsi`)::
1f554f76 1158
c2993fe5 1159SCSI controller model
1f554f76 1160
27a7acb2
DM
1161`--searchdomain` `<string>` ::
1162
de786b48 1163cloud-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 1164
2489d6df 1165`--serial[n]` `(/dev/.+|socket)` ::
1f554f76 1166
c2993fe5 1167Create a serial device inside the VM (n is 0 to 3)
1f554f76 1168
2489d6df 1169`--shares` `<integer> (0 - 50000)` ('default =' `1000`)::
1f554f76 1170
5da3d723 1171Amount 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 1172
2489d6df 1173`--skiplock` `<boolean>` ::
1f554f76
DM
1174
1175Ignore locks - only root is allowed to use this option.
1176
1e3f8156 1177`--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
1178
1179Specify SMBIOS type 1 fields.
1180
2489d6df 1181`--smp` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
1182
1183The number of CPUs. Please use option -sockets instead.
1184
2489d6df 1185`--sockets` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
1186
1187The number of CPU sockets.
1188
1c532546
TL
1189`--spice_enhancements` `[foldersharing=<1|0>] [,videostreaming=<off|all|filter>]` ::
1190
1191Configure additional enhancements for SPICE.
1192
27a7acb2
DM
1193`--sshkeys` `<filepath>` ::
1194
1195cloud-init: Setup public SSH keys (one key per line, OpenSSH format).
1196
2489d6df 1197`--startdate` `(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)` ('default =' `now`)::
1f554f76 1198
4772952b 1199Set 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 1200
2489d6df 1201`--startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
1f554f76 1202
c2993fe5 1203Startup 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 1204
2489d6df 1205`--tablet` `<boolean>` ('default =' `1`)::
1f554f76 1206
c2993fe5 1207Enable/disable the USB tablet device.
1f554f76 1208
5c1699e5
TL
1209`--tags` `<string>` ::
1210
1211Tags of the VM. This is only meta information.
1212
2489d6df 1213`--tdf` `<boolean>` ('default =' `0`)::
1f554f76
DM
1214
1215Enable/disable time drift fix.
1216
2489d6df 1217`--template` `<boolean>` ('default =' `0`)::
1f554f76
DM
1218
1219Enable/disable Template.
1220
7af2edf9 1221`--tpmstate0` `[file=]<volume> [,import-from=<source volume>] [,size=<DiskSize>] [,version=<v1.2|v2.0>]` ::
5370fa8c 1222
7af2edf9 1223Configure 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 1224
c5aa7e14 1225`--unused[n]` `[file=]<volume>` ::
1f554f76 1226
c2993fe5 1227Reference to unused volumes. This is used internally, and should not be modified manually.
1f554f76 1228
2489d6df 1229`--usb[n]` `[host=]<HOSTUSBDEVICE|spice> [,usb3=<1|0>]` ::
1f554f76 1230
4e7f60c2 1231Configure 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 1232
2489d6df 1233`--vcpus` `<integer> (1 - N)` ('default =' `0`)::
1f554f76
DM
1234
1235Number of hotplugged vcpus.
1236
e2d681b3 1237`--vga` `[[type=]<enum>] [,memory=<integer>]` ::
1f554f76 1238
e2d681b3 1239Configure the VGA hardware.
1f554f76 1240
7af2edf9 1241`--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 1242
7af2edf9 1243Use 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 1244
4d47f125
TL
1245`--vmgenid` `<UUID>` ('default =' `1 (autogenerated)`)::
1246
1247Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly.
1248
2489d6df
WB
1249`--vmstatestorage` `<string>` ::
1250
1251Default storage for VM state volumes/files.
1252
1253`--watchdog` `[[model=]<i6300esb|ib700>] [,action=<enum>]` ::
1f554f76 1254
c2993fe5 1255Create a virtual hardware watchdog device.
1f554f76 1256
35a75dd3 1257*qm showcmd* `<vmid>` `[OPTIONS]`
1f554f76
DM
1258
1259Show command line which is used to start the VM (debug info).
1260
013dc89f 1261`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1262
1263The (unique) ID of the VM.
1264
35a75dd3 1265`--pretty` `<boolean>` ('default =' `0`)::
1f554f76 1266
35a75dd3 1267Puts each option on a new line to enhance human readability
1f554f76 1268
5f26e15b
TL
1269`--snapshot` `<string>` ::
1270
1271Fetch config values from given snapshot.
1272
1f554f76
DM
1273*qm shutdown* `<vmid>` `[OPTIONS]`
1274
9b3e4991
DM
1275Shutdown virtual machine. This is similar to pressing the power button on a
1276physical machine.This will send an ACPI event for the guest OS, which
1277should then proceed to a clean shutdown.
1f554f76 1278
013dc89f 1279`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1280
1281The (unique) ID of the VM.
1282
2489d6df 1283`--forceStop` `<boolean>` ('default =' `0`)::
1f554f76
DM
1284
1285Make sure the VM stops.
1286
2489d6df 1287`--keepActive` `<boolean>` ('default =' `0`)::
1f554f76 1288
de0983cb 1289Do not deactivate storage volumes.
1f554f76 1290
2489d6df 1291`--skiplock` `<boolean>` ::
1f554f76
DM
1292
1293Ignore locks - only root is allowed to use this option.
1294
2489d6df 1295`--timeout` `<integer> (0 - N)` ::
1f554f76
DM
1296
1297Wait maximal timeout seconds.
1298
1f554f76
DM
1299*qm snapshot* `<vmid> <snapname>` `[OPTIONS]`
1300
1301Snapshot a VM.
1302
013dc89f 1303`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1304
1305The (unique) ID of the VM.
1306
013dc89f 1307`<snapname>`: `<string>` ::
1f554f76
DM
1308
1309The name of the snapshot.
1310
2489d6df 1311`--description` `<string>` ::
1f554f76
DM
1312
1313A textual description or comment.
1314
2489d6df 1315`--vmstate` `<boolean>` ::
1f554f76
DM
1316
1317Save the vmstate
1318
1f554f76
DM
1319*qm start* `<vmid>` `[OPTIONS]`
1320
1321Start virtual machine.
1322
013dc89f 1323`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1324
1325The (unique) ID of the VM.
1326
c5aa7e14
TL
1327`--force-cpu` `<string>` ::
1328
1329Override QEMU's -cpu argument with the given string.
1330
5c1699e5 1331`--machine` `(pc|pc(-i440fx)?-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|q35|pc-q35-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|virt(?:-\d+(\.\d+)+)?(\+pve\d+)?)` ::
1f554f76 1332
4d47f125 1333Specifies the Qemu machine type.
1f554f76 1334
2489d6df 1335`--migratedfrom` `<string>` ::
1f554f76
DM
1336
1337The cluster node name.
1338
2489d6df 1339`--migration_network` `<string>` ::
de0983cb
DM
1340
1341CIDR of the (sub) network that is used for migration.
1342
2489d6df 1343`--migration_type` `<insecure | secure>` ::
de0983cb
DM
1344
1345Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.
1346
2489d6df 1347`--skiplock` `<boolean>` ::
1f554f76
DM
1348
1349Ignore locks - only root is allowed to use this option.
1350
2489d6df 1351`--stateuri` `<string>` ::
1f554f76
DM
1352
1353Some command save/restore state from this location.
1354
2489d6df 1355`--targetstorage` `<string>` ::
52e44c50 1356
c5aa7e14 1357Mapping 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 1358
e9cd3bd4
TL
1359`--timeout` `<integer> (0 - N)` ('default =' `max(30, vm memory in GiB)`)::
1360
1361Wait maximal timeout seconds.
1362
1f554f76
DM
1363*qm status* `<vmid>` `[OPTIONS]`
1364
1365Show VM status.
1366
013dc89f 1367`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1368
1369The (unique) ID of the VM.
1370
2489d6df 1371`--verbose` `<boolean>` ::
1f554f76
DM
1372
1373Verbose output format
1374
1f554f76
DM
1375*qm stop* `<vmid>` `[OPTIONS]`
1376
9b3e4991
DM
1377Stop virtual machine. The qemu process will exit immediately. Thisis akin
1378to pulling the power plug of a running computer and may damage the VM data
1f554f76 1379
013dc89f 1380`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1381
1382The (unique) ID of the VM.
1383
2489d6df 1384`--keepActive` `<boolean>` ('default =' `0`)::
1f554f76 1385
de0983cb 1386Do not deactivate storage volumes.
1f554f76 1387
2489d6df 1388`--migratedfrom` `<string>` ::
1f554f76
DM
1389
1390The cluster node name.
1391
2489d6df 1392`--skiplock` `<boolean>` ::
1f554f76
DM
1393
1394Ignore locks - only root is allowed to use this option.
1395
2489d6df 1396`--timeout` `<integer> (0 - N)` ::
1f554f76
DM
1397
1398Wait maximal timeout seconds.
1399
1f554f76
DM
1400*qm suspend* `<vmid>` `[OPTIONS]`
1401
1402Suspend virtual machine.
1403
013dc89f 1404`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1405
1406The (unique) ID of the VM.
1407
2489d6df 1408`--skiplock` `<boolean>` ::
1f554f76
DM
1409
1410Ignore locks - only root is allowed to use this option.
1411
95895385
TL
1412`--statestorage` `<string>` ::
1413
1414The storage for the VM state
1415+
1416NOTE: Requires option(s): `todisk`
1417
1418`--todisk` `<boolean>` ('default =' `0`)::
1419
1420If set, suspends the VM to disk. Will be resumed on next VM start.
1421
1f554f76
DM
1422*qm template* `<vmid>` `[OPTIONS]`
1423
1424Create a Template.
1425
013dc89f 1426`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1427
1428The (unique) ID of the VM.
1429
5370fa8c 1430`--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
1431
1432If you want to convert only 1 disk to base image.
1433
1f554f76
DM
1434*qm terminal* `<vmid>` `[OPTIONS]`
1435
1436Open a terminal using a serial device (The VM need to have a serial device
1437configured, for example 'serial0: socket')
1438
013dc89f 1439`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1440
1441The (unique) ID of the VM.
1442
35a75dd3 1443`--escape` `<string>` ('default =' `^O`)::
1f554f76 1444
35a75dd3 1445Escape character.
1f554f76 1446
35a75dd3 1447`--iface` `<serial0 | serial1 | serial2 | serial3>` ::
1f554f76 1448
35a75dd3 1449Select the serial device. By default we simply use the first suitable device.
1f554f76 1450
4e7f60c2 1451*qm unlink*
1f554f76 1452
4e7f60c2 1453An alias for 'qm disk unlink'.
1f554f76 1454
1f554f76
DM
1455*qm unlock* `<vmid>`
1456
1457Unlock the VM.
1458
013dc89f 1459`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1460
1461The (unique) ID of the VM.
1462
1f554f76
DM
1463*qm vncproxy* `<vmid>`
1464
1465Proxy VM VNC traffic to stdin/stdout
1466
013dc89f 1467`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1468
1469The (unique) ID of the VM.
1470
1f554f76
DM
1471*qm wait* `<vmid>` `[OPTIONS]`
1472
1473Wait until the VM is stopped.
1474
013dc89f 1475`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1476
1477The (unique) ID of the VM.
1478
2489d6df 1479`--timeout` `<integer> (1 - N)` ::
1f554f76
DM
1480
1481Timeout in seconds. Default is to wait forever.
1482
1483