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