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