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