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