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