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