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