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