]> git.proxmox.com Git - pve-docs.git/blame - qm.conf.5-opts.adoc
Explain why shut down VMs appear as running when backed up
[pve-docs.git] / qm.conf.5-opts.adoc
CommitLineData
013dc89f 1`acpi`: `<boolean>` ('default =' `1`)::
6ec3cd20
DM
2
3Enable/disable ACPI.
4
013dc89f 5`agent`: `<boolean>` ('default =' `0`)::
6ec3cd20
DM
6
7Enable/disable Qemu GuestAgent.
8
013dc89f 9`args`: `<string>` ::
6ec3cd20 10
04ce4dfa 11Arbitrary arguments passed to kvm, for example:
6ec3cd20
DM
12+
13args: -no-reboot -no-hpet
04ce4dfa
DM
14+
15NOTE: this option is for experts only.
6ec3cd20 16
013dc89f 17`autostart`: `<boolean>` ('default =' `0`)::
6ec3cd20
DM
18
19Automatic restart after crash (currently ignored).
20
013dc89f 21`balloon`: `<integer> (0 - N)` ::
6ec3cd20 22
c2993fe5 23Amount of target RAM for the VM in MB. Using zero disables the ballon driver.
6ec3cd20 24
013dc89f 25`bios`: `<ovmf | seabios>` ('default =' `seabios`)::
6ec3cd20
DM
26
27Select BIOS implementation.
28
013dc89f 29`boot`: `[acdn]{1,4}` ('default =' `cdn`)::
6ec3cd20
DM
30
31Boot on floppy (a), hard disk (c), CD-ROM (d), or network (n).
32
33`bootdisk`: `(ide|sata|scsi|virtio)\d+` ::
34
35Enable booting from specified disk.
36
013dc89f 37`cdrom`: `<volume>` ::
6ec3cd20
DM
38
39This is an alias for option -ide2
40
013dc89f 41`cores`: `<integer> (1 - N)` ('default =' `1`)::
6ec3cd20
DM
42
43The number of cores per socket.
44
013dc89f 45`cpu`: `[cputype=]<enum> [,hidden=<1|0>]` ::
6ec3cd20
DM
46
47Emulated CPU type.
48
5d9c884c 49`cputype`=`<486 | Broadwell | Broadwell-noTSX | Conroe | Haswell | Haswell-noTSX | IvyBridge | Nehalem | Opteron_G1 | Opteron_G2 | Opteron_G3 | Opteron_G4 | Opteron_G5 | Penryn | SandyBridge | Skylake-Client | Westmere | athlon | core2duo | coreduo | host | kvm32 | kvm64 | pentium | pentium2 | pentium3 | phenom | qemu32 | qemu64>` ('default =' `kvm64`);;
c2993fe5
DM
50
51Emulated CPU type.
52
013dc89f 53`hidden`=`<boolean>` ('default =' `0`);;
c2993fe5
DM
54
55Do not identify as a KVM virtual machine.
56
013dc89f 57`cpulimit`: `<number> (0 - 128)` ('default =' `0`)::
6ec3cd20
DM
58
59Limit of CPU usage.
60+
c2993fe5 61NOTE: If the computer has 2 CPUs, it has total of '2' CPU time. Value '0' indicates no CPU limit.
6ec3cd20 62
2489d6df 63`cpuunits`: `<integer> (2 - 262144)` ('default =' `1024`)::
6ec3cd20 64
c2993fe5 65CPU weight for a VM. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this VM gets. Number is relative to weights of all the other running VMs.
6ec3cd20 66
013dc89f 67`description`: `<string>` ::
6ec3cd20 68
c2993fe5 69Description for the VM. Only used on the configuration web interface. This is saved as comment inside the configuration file.
6ec3cd20 70
013dc89f 71`efidisk0`: `[file=]<volume> [,format=<enum>] [,size=<DiskSize>]` ::
2c0dde61
DM
72
73Configure a Disk for storing EFI vars
74
75`file`=`<volume>` ;;
76
77The drive's backing volume.
78
013dc89f 79`format`=`<cloop | cow | qcow | qcow2 | qed | raw | vmdk>` ;;
2c0dde61
DM
80
81The drive's backing file's data format.
82
83`size`=`<DiskSize>` ;;
84
85Disk size. This is purely informational and has no effect.
86
013dc89f 87`freeze`: `<boolean>` ::
6ec3cd20
DM
88
89Freeze CPU at startup (use 'c' monitor command to start execution).
90
52e44c50 91`hostpci[n]`: `[host=]<HOSTPCIID[;HOSTPCIID2...]> [,pcie=<1|0>] [,rombar=<1|0>] [,romfile=<string>] [,x-vga=<1|0>]` ::
6ec3cd20 92
c2993fe5 93Map host PCI devices into guest.
57b78691
DM
94+
95NOTE: This option allows direct access to host hardware. So it is no longer
96possible to migrate such machines - use with special care.
97+
98CAUTION: Experimental! User reported problems with this option.
c2993fe5
DM
99
100`host`=`<HOSTPCIID[;HOSTPCIID2...]>` ;;
101
102Host PCI device pass through. The PCI ID of a host's PCI device or a list
103of PCI virtual functions of the host. HOSTPCIID syntax is:
6ec3cd20
DM
104+
105'bus:dev.func' (hexadecimal numbers)
106+
c2993fe5 107You can us the 'lspci' command to list existing PCI devices.
c2993fe5 108
013dc89f 109`pcie`=`<boolean>` ('default =' `0`);;
c2993fe5
DM
110
111Choose the PCI-express bus (needs the 'q35' machine model).
112
013dc89f 113`rombar`=`<boolean>` ('default =' `1`);;
c2993fe5
DM
114
115Specify whether or not the device's ROM will be visible in the guest's memory map.
116
52e44c50
FG
117`romfile`=`<string>` ;;
118
119Custom pci device rom filename (must be located in /usr/share/kvm/).
120
013dc89f 121`x-vga`=`<boolean>` ('default =' `0`);;
c2993fe5
DM
122
123Enable vfio-vga device support.
6ec3cd20 124
013dc89f 125`hotplug`: `<string>` ('default =' `network,disk,usb`)::
6ec3cd20 126
c2993fe5 127Selectively 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'.
6ec3cd20 128
013dc89f 129`hugepages`: `<1024 | 2 | any>` ::
2c0dde61
DM
130
131Enable/disable hugepages memory.
132
5d9c884c 133`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>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
6ec3cd20
DM
134
135Use volume as IDE hard disk or CD-ROM (n is 0 to 3).
136
013dc89f 137`aio`=`<native | threads>` ;;
c2993fe5
DM
138
139AIO type to use.
140
013dc89f 141`backup`=`<boolean>` ;;
c2993fe5
DM
142
143Whether the drive should be included when making backups.
144
145`bps`=`<bps>` ;;
146
de0983cb
DM
147Maximum r/w speed in bytes per second.
148
149`bps_max_length`=`<seconds>` ;;
150
151Maximum length of I/O bursts in seconds.
c2993fe5
DM
152
153`bps_rd`=`<bps>` ;;
154
de0983cb
DM
155Maximum read speed in bytes per second.
156
5d9c884c 157`bps_rd_max_length`=`<seconds>` ;;
de0983cb
DM
158
159Maximum length of read I/O bursts in seconds.
c2993fe5
DM
160
161`bps_wr`=`<bps>` ;;
162
de0983cb
DM
163Maximum write speed in bytes per second.
164
5d9c884c 165`bps_wr_max_length`=`<seconds>` ;;
de0983cb
DM
166
167Maximum length of write I/O bursts in seconds.
c2993fe5 168
013dc89f 169`cache`=`<directsync | none | unsafe | writeback | writethrough>` ;;
c2993fe5
DM
170
171The drive's cache mode
172
013dc89f 173`cyls`=`<integer>` ;;
c2993fe5
DM
174
175Force the drive's physical geometry to have a specific cylinder count.
176
013dc89f 177`detect_zeroes`=`<boolean>` ;;
c2993fe5
DM
178
179Controls whether to detect and try to optimize writes of zeroes.
180
013dc89f 181`discard`=`<ignore | on>` ;;
c2993fe5
DM
182
183Controls whether to pass discard/trim requests to the underlying storage.
184
185`file`=`<volume>` ;;
186
187The drive's backing volume.
188
013dc89f 189`format`=`<cloop | cow | qcow | qcow2 | qed | raw | vmdk>` ;;
c2993fe5
DM
190
191The drive's backing file's data format.
192
013dc89f 193`heads`=`<integer>` ;;
c2993fe5
DM
194
195Force the drive's physical geometry to have a specific head count.
196
197`iops`=`<iops>` ;;
198
de0983cb 199Maximum r/w I/O in operations per second.
c2993fe5
DM
200
201`iops_max`=`<iops>` ;;
202
de0983cb
DM
203Maximum unthrottled r/w I/O pool in operations per second.
204
205`iops_max_length`=`<seconds>` ;;
206
207Maximum length of I/O bursts in seconds.
c2993fe5
DM
208
209`iops_rd`=`<iops>` ;;
210
de0983cb
DM
211Maximum read I/O in operations per second.
212
c2993fe5
DM
213`iops_rd_max`=`<iops>` ;;
214
de0983cb 215Maximum unthrottled read I/O pool in operations per second.
c2993fe5 216
5d9c884c 217`iops_rd_max_length`=`<seconds>` ;;
c2993fe5 218
5d9c884c 219Maximum length of read I/O bursts in seconds.
de0983cb 220
5d9c884c 221`iops_wr`=`<iops>` ;;
de0983cb 222
5d9c884c 223Maximum write I/O in operations per second.
c2993fe5
DM
224
225`iops_wr_max`=`<iops>` ;;
226
de0983cb 227Maximum unthrottled write I/O pool in operations per second.
c2993fe5 228
5d9c884c
DM
229`iops_wr_max_length`=`<seconds>` ;;
230
231Maximum length of write I/O bursts in seconds.
232
c2993fe5
DM
233`mbps`=`<mbps>` ;;
234
de0983cb 235Maximum r/w speed in megabytes per second.
c2993fe5
DM
236
237`mbps_max`=`<mbps>` ;;
238
de0983cb 239Maximum unthrottled r/w pool in megabytes per second.
c2993fe5
DM
240
241`mbps_rd`=`<mbps>` ;;
242
de0983cb 243Maximum read speed in megabytes per second.
c2993fe5
DM
244
245`mbps_rd_max`=`<mbps>` ;;
246
de0983cb 247Maximum unthrottled read pool in megabytes per second.
c2993fe5
DM
248
249`mbps_wr`=`<mbps>` ;;
250
de0983cb 251Maximum write speed in megabytes per second.
c2993fe5
DM
252
253`mbps_wr_max`=`<mbps>` ;;
254
de0983cb 255Maximum unthrottled write pool in megabytes per second.
c2993fe5 256
013dc89f 257`media`=`<cdrom | disk>` ('default =' `disk`);;
c2993fe5
DM
258
259The drive's media type.
260
261`model`=`<model>` ;;
262
263The drive's reported model name, url-encoded, up to 40 bytes long.
264
5d9c884c
DM
265`replicate`=`<boolean>` ('default =' `1`);;
266
267Whether the drive should considered for replication jobs.
268
013dc89f 269`rerror`=`<ignore | report | stop>` ;;
c2993fe5
DM
270
271Read error action.
272
013dc89f 273`secs`=`<integer>` ;;
c2993fe5
DM
274
275Force the drive's physical geometry to have a specific sector count.
276
277`serial`=`<serial>` ;;
278
279The drive's reported serial number, url-encoded, up to 20 bytes long.
280
281`size`=`<DiskSize>` ;;
282
283Disk size. This is purely informational and has no effect.
284
013dc89f 285`snapshot`=`<boolean>` ;;
c2993fe5
DM
286
287Whether the drive should be included when making snapshots.
288
013dc89f 289`trans`=`<auto | lba | none>` ;;
c2993fe5
DM
290
291Force disk geometry bios translation mode.
292
013dc89f 293`werror`=`<enospc | ignore | report | stop>` ;;
c2993fe5
DM
294
295Write error action.
296
013dc89f 297`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>` ('default =' `en-us`)::
6ec3cd20 298
c2993fe5 299Keybord layout for vnc server. Default is read from the '/etc/pve/datacenter.conf' configuration file.
6ec3cd20 300
013dc89f 301`kvm`: `<boolean>` ('default =' `1`)::
6ec3cd20
DM
302
303Enable/disable KVM hardware virtualization.
304
013dc89f 305`localtime`: `<boolean>` ::
6ec3cd20 306
c2993fe5 307Set the real time clock to local time. This is enabled by default if ostype indicates a Microsoft OS.
6ec3cd20 308
013dc89f 309`lock`: `<backup | migrate | rollback | snapshot>` ::
6ec3cd20
DM
310
311Lock/unlock the VM.
312
313`machine`: `(pc|pc(-i440fx)?-\d+\.\d+(\.pxe)?|q35|pc-q35-\d+\.\d+(\.pxe)?)` ::
314
315Specific the Qemu machine type.
316
013dc89f 317`memory`: `<integer> (16 - N)` ('default =' `512`)::
6ec3cd20 318
c2993fe5 319Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device.
6ec3cd20 320
013dc89f 321`migrate_downtime`: `<number> (0 - N)` ('default =' `0.1`)::
6ec3cd20
DM
322
323Set maximum tolerated downtime (in seconds) for migrations.
324
013dc89f 325`migrate_speed`: `<integer> (0 - N)` ('default =' `0`)::
6ec3cd20
DM
326
327Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
328
013dc89f 329`name`: `<string>` ::
6ec3cd20
DM
330
331Set a name for the VM. Only used on the configuration web interface.
332
013dc89f 333`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>]` ::
6ec3cd20
DM
334
335Specify network devices.
c2993fe5
DM
336
337`bridge`=`<bridge>` ;;
338
339Bridge to attach the network device to. The Proxmox VE standard bridge
340is called 'vmbr0'.
6ec3cd20 341+
c2993fe5
DM
342If you do not specify a bridge, we create a kvm user (NATed) network
343device, which provides DHCP and DNS services. The following addresses
344are used:
6ec3cd20 345+
c2993fe5
DM
346 10.0.2.2 Gateway
347 10.0.2.3 DNS Server
348 10.0.2.4 SMB Server
6ec3cd20
DM
349+
350The DHCP server assign addresses to the guest starting from 10.0.2.15.
351
013dc89f 352`firewall`=`<boolean>` ;;
c2993fe5
DM
353
354Whether this interface should be protected by the firewall.
355
013dc89f 356`link_down`=`<boolean>` ;;
c2993fe5
DM
357
358Whether this interface should be disconnected (like pulling the plug).
359
360`macaddr`=`<XX:XX:XX:XX:XX:XX>` ;;
361
362MAC address. That address must be unique withing your network. This is automatically generated if not specified.
363
013dc89f 364`model`=`<e1000 | e1000-82540em | e1000-82544gc | e1000-82545em | i82551 | i82557b | i82559er | ne2k_isa | ne2k_pci | pcnet | rtl8139 | virtio | vmxnet3>` ;;
c2993fe5
DM
365
366Network Card Model. The 'virtio' model provides the best performance with very low CPU overhead. If your guest does not support this driver, it is usually best to use 'e1000'.
367
013dc89f 368`queues`=`<integer> (0 - 16)` ;;
c2993fe5
DM
369
370Number of packet queues to be used on the device.
371
013dc89f 372`rate`=`<number> (0 - N)` ;;
c2993fe5
DM
373
374Rate limit in mbps (megabytes per second) as floating point number.
375
013dc89f 376`tag`=`<integer> (1 - 4094)` ;;
c2993fe5
DM
377
378VLAN tag to apply to packets on this interface.
379
380`trunks`=`<vlanid[;vlanid...]>` ;;
381
382VLAN trunks to pass through this interface.
383
013dc89f 384`numa`: `<boolean>` ('default =' `0`)::
6ec3cd20
DM
385
386Enable/disable NUMA.
387
f004f5b9 388`numa[n]`: `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
6ec3cd20 389
c2993fe5
DM
390NUMA topology.
391
392`cpus`=`<id[-id];...>` ;;
393
394CPUs accessing this NUMA node.
395
396`hostnodes`=`<id[-id];...>` ;;
397
398Host NUMA nodes to use.
399
013dc89f 400`memory`=`<number>` ;;
c2993fe5
DM
401
402Amount of memory this NUMA node provides.
403
013dc89f 404`policy`=`<bind | interleave | preferred>` ;;
c2993fe5
DM
405
406NUMA allocation policy.
6ec3cd20 407
013dc89f 408`onboot`: `<boolean>` ('default =' `0`)::
6ec3cd20
DM
409
410Specifies whether a VM will be started during system bootup.
411
32d876b5 412`ostype`: `<l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win7 | win8 | wvista | wxp>` ::
6ec3cd20 413
c2993fe5
DM
414Specify guest operating system. This is used to enable special
415optimization/features for specific operating systems:
6ec3cd20 416+
c2993fe5
DM
417[horizontal]
418other;; unspecified OS
419wxp;; Microsoft Windows XP
420w2k;; Microsoft Windows 2000
421w2k3;; Microsoft Windows 2003
422w2k8;; Microsoft Windows 2008
423wvista;; Microsoft Windows Vista
424win7;; Microsoft Windows 7
425win8;; Microsoft Windows 8/2012
426l24;; Linux 2.4 Kernel
427l26;; Linux 2.6/3.X Kernel
428solaris;; Solaris/OpenSolaris/OpenIndiania kernel
6ec3cd20
DM
429
430`parallel[n]`: `/dev/parport\d+|/dev/usb/lp\d+` ::
431
432Map host parallel devices (n is 0 to 2).
433+
c2993fe5 434NOTE: This option allows direct access to host hardware. So it is no longer possible to migrate such machines - use with special care.
6ec3cd20 435+
c2993fe5 436CAUTION: Experimental! User reported problems with this option.
6ec3cd20 437
013dc89f 438`protection`: `<boolean>` ('default =' `0`)::
6ec3cd20 439
c2993fe5 440Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
6ec3cd20 441
013dc89f 442`reboot`: `<boolean>` ('default =' `1`)::
6ec3cd20
DM
443
444Allow reboot. If set to '0' the VM exit on reboot.
445
5d9c884c 446`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>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
6ec3cd20
DM
447
448Use volume as SATA hard disk or CD-ROM (n is 0 to 5).
449
013dc89f 450`aio`=`<native | threads>` ;;
c2993fe5
DM
451
452AIO type to use.
453
013dc89f 454`backup`=`<boolean>` ;;
c2993fe5
DM
455
456Whether the drive should be included when making backups.
457
458`bps`=`<bps>` ;;
459
de0983cb
DM
460Maximum r/w speed in bytes per second.
461
462`bps_max_length`=`<seconds>` ;;
463
464Maximum length of I/O bursts in seconds.
c2993fe5
DM
465
466`bps_rd`=`<bps>` ;;
467
de0983cb
DM
468Maximum read speed in bytes per second.
469
5d9c884c 470`bps_rd_max_length`=`<seconds>` ;;
de0983cb
DM
471
472Maximum length of read I/O bursts in seconds.
c2993fe5
DM
473
474`bps_wr`=`<bps>` ;;
475
de0983cb
DM
476Maximum write speed in bytes per second.
477
5d9c884c 478`bps_wr_max_length`=`<seconds>` ;;
de0983cb
DM
479
480Maximum length of write I/O bursts in seconds.
c2993fe5 481
013dc89f 482`cache`=`<directsync | none | unsafe | writeback | writethrough>` ;;
c2993fe5
DM
483
484The drive's cache mode
485
013dc89f 486`cyls`=`<integer>` ;;
c2993fe5
DM
487
488Force the drive's physical geometry to have a specific cylinder count.
489
013dc89f 490`detect_zeroes`=`<boolean>` ;;
c2993fe5
DM
491
492Controls whether to detect and try to optimize writes of zeroes.
493
013dc89f 494`discard`=`<ignore | on>` ;;
c2993fe5
DM
495
496Controls whether to pass discard/trim requests to the underlying storage.
497
498`file`=`<volume>` ;;
499
500The drive's backing volume.
501
013dc89f 502`format`=`<cloop | cow | qcow | qcow2 | qed | raw | vmdk>` ;;
c2993fe5
DM
503
504The drive's backing file's data format.
505
013dc89f 506`heads`=`<integer>` ;;
c2993fe5
DM
507
508Force the drive's physical geometry to have a specific head count.
509
510`iops`=`<iops>` ;;
511
de0983cb 512Maximum r/w I/O in operations per second.
c2993fe5
DM
513
514`iops_max`=`<iops>` ;;
515
de0983cb
DM
516Maximum unthrottled r/w I/O pool in operations per second.
517
518`iops_max_length`=`<seconds>` ;;
519
520Maximum length of I/O bursts in seconds.
c2993fe5
DM
521
522`iops_rd`=`<iops>` ;;
523
de0983cb
DM
524Maximum read I/O in operations per second.
525
c2993fe5
DM
526`iops_rd_max`=`<iops>` ;;
527
de0983cb 528Maximum unthrottled read I/O pool in operations per second.
c2993fe5 529
5d9c884c 530`iops_rd_max_length`=`<seconds>` ;;
c2993fe5 531
5d9c884c 532Maximum length of read I/O bursts in seconds.
de0983cb 533
5d9c884c 534`iops_wr`=`<iops>` ;;
de0983cb 535
5d9c884c 536Maximum write I/O in operations per second.
c2993fe5
DM
537
538`iops_wr_max`=`<iops>` ;;
539
de0983cb 540Maximum unthrottled write I/O pool in operations per second.
c2993fe5 541
5d9c884c
DM
542`iops_wr_max_length`=`<seconds>` ;;
543
544Maximum length of write I/O bursts in seconds.
545
c2993fe5
DM
546`mbps`=`<mbps>` ;;
547
de0983cb 548Maximum r/w speed in megabytes per second.
c2993fe5
DM
549
550`mbps_max`=`<mbps>` ;;
551
de0983cb 552Maximum unthrottled r/w pool in megabytes per second.
c2993fe5
DM
553
554`mbps_rd`=`<mbps>` ;;
555
de0983cb 556Maximum read speed in megabytes per second.
c2993fe5
DM
557
558`mbps_rd_max`=`<mbps>` ;;
559
de0983cb 560Maximum unthrottled read pool in megabytes per second.
c2993fe5
DM
561
562`mbps_wr`=`<mbps>` ;;
563
de0983cb 564Maximum write speed in megabytes per second.
c2993fe5
DM
565
566`mbps_wr_max`=`<mbps>` ;;
567
de0983cb 568Maximum unthrottled write pool in megabytes per second.
c2993fe5 569
013dc89f 570`media`=`<cdrom | disk>` ('default =' `disk`);;
c2993fe5
DM
571
572The drive's media type.
573
5d9c884c
DM
574`replicate`=`<boolean>` ('default =' `1`);;
575
576Whether the drive should considered for replication jobs.
577
013dc89f 578`rerror`=`<ignore | report | stop>` ;;
c2993fe5
DM
579
580Read error action.
581
013dc89f 582`secs`=`<integer>` ;;
c2993fe5
DM
583
584Force the drive's physical geometry to have a specific sector count.
585
586`serial`=`<serial>` ;;
587
588The drive's reported serial number, url-encoded, up to 20 bytes long.
589
590`size`=`<DiskSize>` ;;
591
592Disk size. This is purely informational and has no effect.
593
013dc89f 594`snapshot`=`<boolean>` ;;
c2993fe5
DM
595
596Whether the drive should be included when making snapshots.
597
013dc89f 598`trans`=`<auto | lba | none>` ;;
c2993fe5
DM
599
600Force disk geometry bios translation mode.
601
013dc89f 602`werror`=`<enospc | ignore | report | stop>` ;;
c2993fe5
DM
603
604Write error action.
605
5d9c884c 606`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>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
6ec3cd20
DM
607
608Use volume as SCSI hard disk or CD-ROM (n is 0 to 13).
609
013dc89f 610`aio`=`<native | threads>` ;;
c2993fe5
DM
611
612AIO type to use.
613
013dc89f 614`backup`=`<boolean>` ;;
c2993fe5
DM
615
616Whether the drive should be included when making backups.
617
618`bps`=`<bps>` ;;
619
de0983cb
DM
620Maximum r/w speed in bytes per second.
621
622`bps_max_length`=`<seconds>` ;;
623
624Maximum length of I/O bursts in seconds.
c2993fe5
DM
625
626`bps_rd`=`<bps>` ;;
627
de0983cb
DM
628Maximum read speed in bytes per second.
629
5d9c884c 630`bps_rd_max_length`=`<seconds>` ;;
de0983cb
DM
631
632Maximum length of read I/O bursts in seconds.
c2993fe5
DM
633
634`bps_wr`=`<bps>` ;;
635
de0983cb
DM
636Maximum write speed in bytes per second.
637
5d9c884c 638`bps_wr_max_length`=`<seconds>` ;;
de0983cb
DM
639
640Maximum length of write I/O bursts in seconds.
c2993fe5 641
013dc89f 642`cache`=`<directsync | none | unsafe | writeback | writethrough>` ;;
c2993fe5
DM
643
644The drive's cache mode
645
013dc89f 646`cyls`=`<integer>` ;;
c2993fe5
DM
647
648Force the drive's physical geometry to have a specific cylinder count.
649
013dc89f 650`detect_zeroes`=`<boolean>` ;;
c2993fe5
DM
651
652Controls whether to detect and try to optimize writes of zeroes.
653
013dc89f 654`discard`=`<ignore | on>` ;;
c2993fe5
DM
655
656Controls whether to pass discard/trim requests to the underlying storage.
657
658`file`=`<volume>` ;;
659
660The drive's backing volume.
661
013dc89f 662`format`=`<cloop | cow | qcow | qcow2 | qed | raw | vmdk>` ;;
c2993fe5
DM
663
664The drive's backing file's data format.
665
013dc89f 666`heads`=`<integer>` ;;
c2993fe5
DM
667
668Force the drive's physical geometry to have a specific head count.
669
670`iops`=`<iops>` ;;
671
de0983cb 672Maximum r/w I/O in operations per second.
c2993fe5
DM
673
674`iops_max`=`<iops>` ;;
675
de0983cb
DM
676Maximum unthrottled r/w I/O pool in operations per second.
677
678`iops_max_length`=`<seconds>` ;;
679
680Maximum length of I/O bursts in seconds.
c2993fe5
DM
681
682`iops_rd`=`<iops>` ;;
683
de0983cb
DM
684Maximum read I/O in operations per second.
685
c2993fe5
DM
686`iops_rd_max`=`<iops>` ;;
687
de0983cb 688Maximum unthrottled read I/O pool in operations per second.
c2993fe5 689
5d9c884c 690`iops_rd_max_length`=`<seconds>` ;;
c2993fe5 691
5d9c884c 692Maximum length of read I/O bursts in seconds.
de0983cb 693
5d9c884c 694`iops_wr`=`<iops>` ;;
de0983cb 695
5d9c884c 696Maximum write I/O in operations per second.
c2993fe5
DM
697
698`iops_wr_max`=`<iops>` ;;
699
de0983cb 700Maximum unthrottled write I/O pool in operations per second.
c2993fe5 701
5d9c884c
DM
702`iops_wr_max_length`=`<seconds>` ;;
703
704Maximum length of write I/O bursts in seconds.
705
013dc89f 706`iothread`=`<boolean>` ;;
c2993fe5
DM
707
708Whether to use iothreads for this drive
709
710`mbps`=`<mbps>` ;;
711
de0983cb 712Maximum r/w speed in megabytes per second.
c2993fe5
DM
713
714`mbps_max`=`<mbps>` ;;
715
de0983cb 716Maximum unthrottled r/w pool in megabytes per second.
c2993fe5
DM
717
718`mbps_rd`=`<mbps>` ;;
719
de0983cb 720Maximum read speed in megabytes per second.
c2993fe5
DM
721
722`mbps_rd_max`=`<mbps>` ;;
723
de0983cb 724Maximum unthrottled read pool in megabytes per second.
c2993fe5
DM
725
726`mbps_wr`=`<mbps>` ;;
727
de0983cb 728Maximum write speed in megabytes per second.
c2993fe5
DM
729
730`mbps_wr_max`=`<mbps>` ;;
731
de0983cb 732Maximum unthrottled write pool in megabytes per second.
c2993fe5 733
013dc89f 734`media`=`<cdrom | disk>` ('default =' `disk`);;
c2993fe5
DM
735
736The drive's media type.
737
013dc89f 738`queues`=`<integer> (2 - N)` ;;
c2993fe5
DM
739
740Number of queues.
741
5d9c884c
DM
742`replicate`=`<boolean>` ('default =' `1`);;
743
744Whether the drive should considered for replication jobs.
745
746`rerror`=`<ignore | report | stop>` ;;
747
748Read error action.
749
52e44c50
FG
750`scsiblock`=`<boolean>` ('default =' `0`);;
751
752whether to use scsi-block for full passthrough of host block device
753+
754WARNING: can lead to I/O errors in combination with low memory or high memory fragmentation on host
755
013dc89f 756`secs`=`<integer>` ;;
c2993fe5
DM
757
758Force the drive's physical geometry to have a specific sector count.
759
760`serial`=`<serial>` ;;
761
762The drive's reported serial number, url-encoded, up to 20 bytes long.
763
764`size`=`<DiskSize>` ;;
765
766Disk size. This is purely informational and has no effect.
767
013dc89f 768`snapshot`=`<boolean>` ;;
c2993fe5
DM
769
770Whether the drive should be included when making snapshots.
771
013dc89f 772`trans`=`<auto | lba | none>` ;;
c2993fe5
DM
773
774Force disk geometry bios translation mode.
775
013dc89f 776`werror`=`<enospc | ignore | report | stop>` ;;
c2993fe5
DM
777
778Write error action.
779
013dc89f 780`scsihw`: `<lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single>` ('default =' `lsi`)::
6ec3cd20 781
c2993fe5 782SCSI controller model
6ec3cd20
DM
783
784`serial[n]`: `(/dev/.+|socket)` ::
785
c2993fe5
DM
786Create a serial device inside the VM (n is 0 to 3), and pass through a
787host serial device (i.e. /dev/ttyS0), or create a unix socket on the
788host side (use 'qm terminal' to open a terminal connection).
789+
790NOTE: If you pass through a host serial device, it is no longer possible to migrate such machines - use with special care.
6ec3cd20 791+
c2993fe5 792CAUTION: Experimental! User reported problems with this option.
6ec3cd20 793
013dc89f 794`shares`: `<integer> (0 - 50000)` ('default =' `1000`)::
6ec3cd20 795
c2993fe5 796Amount 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
6ec3cd20 797
f004f5b9 798`smbios1`: `[family=<string>] [,manufacturer=<string>] [,product=<string>] [,serial=<string>] [,sku=<string>] [,uuid=<UUID>] [,version=<string>]` ::
6ec3cd20
DM
799
800Specify SMBIOS type 1 fields.
801
c2993fe5
DM
802`family`=`<string>` ;;
803
804Set SMBIOS1 family string.
805
806`manufacturer`=`<string>` ;;
807
808Set SMBIOS1 manufacturer.
809
810`product`=`<string>` ;;
811
812Set SMBIOS1 product ID.
813
814`serial`=`<string>` ;;
815
816Set SMBIOS1 serial number.
817
818`sku`=`<string>` ;;
819
820Set SMBIOS1 SKU string.
821
822`uuid`=`<UUID>` ;;
823
824Set SMBIOS1 UUID.
825
826`version`=`<string>` ;;
827
828Set SMBIOS1 version.
829
013dc89f 830`smp`: `<integer> (1 - N)` ('default =' `1`)::
6ec3cd20
DM
831
832The number of CPUs. Please use option -sockets instead.
833
013dc89f 834`sockets`: `<integer> (1 - N)` ('default =' `1`)::
6ec3cd20
DM
835
836The number of CPU sockets.
837
013dc89f 838`startdate`: `(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)` ('default =' `now`)::
6ec3cd20 839
c2993fe5 840Set the initial date of the real time clock. Valid format for date are: 'now' or '2006-06-17T16:01:21' or '2006-06-17'.
6ec3cd20
DM
841
842`startup`: `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
843
c2993fe5 844Startup 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.
6ec3cd20 845
013dc89f 846`tablet`: `<boolean>` ('default =' `1`)::
6ec3cd20 847
c2993fe5 848Enable/disable the USB tablet device. This device is usually needed to allow absolute mouse positioning with VNC. Else the mouse runs out of sync with normal VNC clients. If you're running lots of console-only guests on one host, you may consider disabling this to save some context switches. This is turned off by default if you use spice (-vga=qxl).
6ec3cd20 849
013dc89f 850`tdf`: `<boolean>` ('default =' `0`)::
6ec3cd20
DM
851
852Enable/disable time drift fix.
853
013dc89f 854`template`: `<boolean>` ('default =' `0`)::
6ec3cd20
DM
855
856Enable/disable Template.
857
013dc89f 858`unused[n]`: `<string>` ::
6ec3cd20 859
c2993fe5 860Reference to unused volumes. This is used internally, and should not be modified manually.
6ec3cd20 861
f004f5b9 862`usb[n]`: `[host=]<HOSTUSBDEVICE|spice> [,usb3=<1|0>]` ::
6ec3cd20 863
c2993fe5
DM
864Configure an USB device (n is 0 to 4).
865
866`host`=`<HOSTUSBDEVICE|spice>` ;;
867
868The Host USB device or port or the value 'spice'. HOSTUSBDEVICE syntax is:
6ec3cd20 869+
c2993fe5
DM
870 'bus-port(.port)*' (decimal numbers) or
871 'vendor_id:product_id' (hexadeciaml numbers) or
872 'spice'
6ec3cd20
DM
873+
874You can use the 'lsusb -t' command to list existing usb devices.
875+
c2993fe5 876NOTE: This option allows direct access to host hardware. So it is no longer possible to migrate such machines - use with special care.
6ec3cd20
DM
877+
878The value 'spice' can be used to add a usb redirection devices for spice.
c2993fe5 879
013dc89f 880`usb3`=`<boolean>` ('default =' `0`);;
c2993fe5
DM
881
882Specifies whether if given host option is a USB3 device or port (this does currently not work reliably with spice redirection and is then ignored).
6ec3cd20 883
013dc89f 884`vcpus`: `<integer> (1 - N)` ('default =' `0`)::
6ec3cd20
DM
885
886Number of hotplugged vcpus.
887
013dc89f 888`vga`: `<cirrus | qxl | qxl2 | qxl3 | qxl4 | serial0 | serial1 | serial2 | serial3 | std | vmware>` ::
6ec3cd20 889
c2993fe5 890Select the VGA type. If you want to use high resolution modes (>= 1280x1024x16) then you should use the options 'std' or 'vmware'. Default is 'std' for win8/win7/w2k8, and 'cirrus' for other OS types. The 'qxl' option enables the SPICE display sever. For win* OS you can select how many independent displays you want, Linux guests can add displays them self. You can also run without any graphic card, using a serial device as terminal.
6ec3cd20 891
5d9c884c 892`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>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
6ec3cd20
DM
893
894Use volume as VIRTIO hard disk (n is 0 to 15).
895
013dc89f 896`aio`=`<native | threads>` ;;
c2993fe5
DM
897
898AIO type to use.
899
013dc89f 900`backup`=`<boolean>` ;;
c2993fe5
DM
901
902Whether the drive should be included when making backups.
903
904`bps`=`<bps>` ;;
905
de0983cb
DM
906Maximum r/w speed in bytes per second.
907
908`bps_max_length`=`<seconds>` ;;
909
910Maximum length of I/O bursts in seconds.
c2993fe5
DM
911
912`bps_rd`=`<bps>` ;;
913
de0983cb
DM
914Maximum read speed in bytes per second.
915
5d9c884c 916`bps_rd_max_length`=`<seconds>` ;;
de0983cb
DM
917
918Maximum length of read I/O bursts in seconds.
c2993fe5
DM
919
920`bps_wr`=`<bps>` ;;
921
de0983cb
DM
922Maximum write speed in bytes per second.
923
5d9c884c 924`bps_wr_max_length`=`<seconds>` ;;
de0983cb
DM
925
926Maximum length of write I/O bursts in seconds.
c2993fe5 927
013dc89f 928`cache`=`<directsync | none | unsafe | writeback | writethrough>` ;;
c2993fe5
DM
929
930The drive's cache mode
931
013dc89f 932`cyls`=`<integer>` ;;
c2993fe5
DM
933
934Force the drive's physical geometry to have a specific cylinder count.
935
013dc89f 936`detect_zeroes`=`<boolean>` ;;
c2993fe5
DM
937
938Controls whether to detect and try to optimize writes of zeroes.
939
013dc89f 940`discard`=`<ignore | on>` ;;
c2993fe5
DM
941
942Controls whether to pass discard/trim requests to the underlying storage.
943
944`file`=`<volume>` ;;
945
946The drive's backing volume.
947
013dc89f 948`format`=`<cloop | cow | qcow | qcow2 | qed | raw | vmdk>` ;;
c2993fe5
DM
949
950The drive's backing file's data format.
951
013dc89f 952`heads`=`<integer>` ;;
c2993fe5
DM
953
954Force the drive's physical geometry to have a specific head count.
955
956`iops`=`<iops>` ;;
957
de0983cb 958Maximum r/w I/O in operations per second.
c2993fe5
DM
959
960`iops_max`=`<iops>` ;;
961
de0983cb
DM
962Maximum unthrottled r/w I/O pool in operations per second.
963
964`iops_max_length`=`<seconds>` ;;
965
966Maximum length of I/O bursts in seconds.
c2993fe5
DM
967
968`iops_rd`=`<iops>` ;;
969
de0983cb
DM
970Maximum read I/O in operations per second.
971
c2993fe5
DM
972`iops_rd_max`=`<iops>` ;;
973
de0983cb 974Maximum unthrottled read I/O pool in operations per second.
c2993fe5 975
5d9c884c 976`iops_rd_max_length`=`<seconds>` ;;
c2993fe5 977
5d9c884c 978Maximum length of read I/O bursts in seconds.
de0983cb 979
5d9c884c 980`iops_wr`=`<iops>` ;;
de0983cb 981
5d9c884c 982Maximum write I/O in operations per second.
c2993fe5
DM
983
984`iops_wr_max`=`<iops>` ;;
985
de0983cb 986Maximum unthrottled write I/O pool in operations per second.
c2993fe5 987
5d9c884c
DM
988`iops_wr_max_length`=`<seconds>` ;;
989
990Maximum length of write I/O bursts in seconds.
991
013dc89f 992`iothread`=`<boolean>` ;;
c2993fe5
DM
993
994Whether to use iothreads for this drive
995
996`mbps`=`<mbps>` ;;
997
de0983cb 998Maximum r/w speed in megabytes per second.
c2993fe5
DM
999
1000`mbps_max`=`<mbps>` ;;
1001
de0983cb 1002Maximum unthrottled r/w pool in megabytes per second.
c2993fe5
DM
1003
1004`mbps_rd`=`<mbps>` ;;
1005
de0983cb 1006Maximum read speed in megabytes per second.
c2993fe5
DM
1007
1008`mbps_rd_max`=`<mbps>` ;;
1009
de0983cb 1010Maximum unthrottled read pool in megabytes per second.
c2993fe5
DM
1011
1012`mbps_wr`=`<mbps>` ;;
1013
de0983cb 1014Maximum write speed in megabytes per second.
c2993fe5
DM
1015
1016`mbps_wr_max`=`<mbps>` ;;
1017
de0983cb 1018Maximum unthrottled write pool in megabytes per second.
c2993fe5 1019
013dc89f 1020`media`=`<cdrom | disk>` ('default =' `disk`);;
c2993fe5
DM
1021
1022The drive's media type.
1023
5d9c884c
DM
1024`replicate`=`<boolean>` ('default =' `1`);;
1025
1026Whether the drive should considered for replication jobs.
1027
013dc89f 1028`rerror`=`<ignore | report | stop>` ;;
c2993fe5
DM
1029
1030Read error action.
1031
013dc89f 1032`secs`=`<integer>` ;;
c2993fe5
DM
1033
1034Force the drive's physical geometry to have a specific sector count.
1035
1036`serial`=`<serial>` ;;
1037
1038The drive's reported serial number, url-encoded, up to 20 bytes long.
1039
1040`size`=`<DiskSize>` ;;
1041
1042Disk size. This is purely informational and has no effect.
1043
013dc89f 1044`snapshot`=`<boolean>` ;;
c2993fe5
DM
1045
1046Whether the drive should be included when making snapshots.
1047
013dc89f 1048`trans`=`<auto | lba | none>` ;;
c2993fe5
DM
1049
1050Force disk geometry bios translation mode.
1051
013dc89f 1052`werror`=`<enospc | ignore | report | stop>` ;;
c2993fe5
DM
1053
1054Write error action.
1055
2489d6df
WB
1056`vmstatestorage`: `<string>` ::
1057
1058Default storage for VM state volumes/files.
1059
013dc89f 1060`watchdog`: `[[model=]<i6300esb|ib700>] [,action=<enum>]` ::
6ec3cd20 1061
c2993fe5
DM
1062Create a virtual hardware watchdog device. Once enabled (by a guest action), the watchdog must be periodically polled by an agent inside the guest or else the watchdog will reset the guest (or execute the respective action specified)
1063
013dc89f 1064`action`=`<debug | none | pause | poweroff | reset | shutdown>` ;;
c2993fe5
DM
1065
1066The action to perform if after activation the guest fails to poll the watchdog in time.
1067
013dc89f 1068`model`=`<i6300esb | ib700>` ('default =' `i6300esb`);;
c2993fe5
DM
1069
1070Watchdog type to emulate.
6ec3cd20 1071