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