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