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