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