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