]> git.proxmox.com Git - pve-docs.git/blame - qm.conf.5-opts.adoc
sdn: add/improve doc
[pve-docs.git] / qm.conf.5-opts.adoc
CommitLineData
013dc89f 1`acpi`: `<boolean>` ('default =' `1`)::
6ec3cd20
DM
2
3Enable/disable ACPI.
4
5c1699e5 5`agent`: `[enabled=]<1|0> [,fstrim_cloned_disks=<1|0>] [,type=<virtio|isa>]` ::
4d47f125
TL
6
7Enable/disable Qemu GuestAgent and its properties.
8
9`enabled`=`<boolean>` ('default =' `0`);;
6ec3cd20
DM
10
11Enable/disable Qemu GuestAgent.
12
4d47f125
TL
13`fstrim_cloned_disks`=`<boolean>` ('default =' `0`);;
14
15Run fstrim after cloning/moving a disk.
16
5c1699e5
TL
17`type`=`<isa | virtio>` ('default =' `virtio`);;
18
19Select the agent type
20
e2d681b3
TL
21`arch`: `<aarch64 | x86_64>` ::
22
23Virtual processor architecture. Defaults to the host.
24
013dc89f 25`args`: `<string>` ::
6ec3cd20 26
04ce4dfa 27Arbitrary arguments passed to kvm, for example:
6ec3cd20
DM
28+
29args: -no-reboot -no-hpet
04ce4dfa
DM
30+
31NOTE: this option is for experts only.
6ec3cd20 32
1c532546
TL
33`audio0`: `device=<ich9-intel-hda|intel-hda|AC97> [,driver=<spice>]` ::
34
35Configure a audio device, useful in combination with QXL/Spice.
36
37`device`=`<AC97 | ich9-intel-hda | intel-hda>` ;;
38
39Configure an audio device.
40
41`driver`=`<spice>` ('default =' `spice`);;
42
43Driver backend for the audio device.
44
013dc89f 45`autostart`: `<boolean>` ('default =' `0`)::
6ec3cd20
DM
46
47Automatic restart after crash (currently ignored).
48
013dc89f 49`balloon`: `<integer> (0 - N)` ::
6ec3cd20 50
c2993fe5 51Amount of target RAM for the VM in MB. Using zero disables the ballon driver.
6ec3cd20 52
013dc89f 53`bios`: `<ovmf | seabios>` ('default =' `seabios`)::
6ec3cd20
DM
54
55Select BIOS implementation.
56
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
108`citype`: `<configdrive2 | nocloud>` ::
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
c2993fe5 160Description for the VM. Only used on the configuration web interface. This is saved as comment inside the configuration file.
6ec3cd20 161
013dc89f 162`efidisk0`: `[file=]<volume> [,format=<enum>] [,size=<DiskSize>]` ::
2c0dde61
DM
163
164Configure a Disk for storing EFI vars
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
95895385 238`ide[n]`: `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]` ::
6ec3cd20
DM
239
240Use volume as IDE hard disk or CD-ROM (n is 0 to 3).
241
013dc89f 242`aio`=`<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.
27a7acb2
DM
424For IPv6 the special string 'auto' can be used to use stateless autoconfiguration.
425+
4772952b
TL
426If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using
427dhcp on IPv4.
27a7acb2
DM
428
429`gw`=`<GatewayIPv4>` ;;
430
431Default gateway for IPv4 traffic.
432+
433NOTE: Requires option(s): `ip`
434
435`gw6`=`<GatewayIPv6>` ;;
436
437Default gateway for IPv6 traffic.
438+
439NOTE: Requires option(s): `ip6`
440
441`ip`=`<IPv4Format/CIDR>` ('default =' `dhcp`);;
442
443IPv4 address in CIDR format.
444
445`ip6`=`<IPv6Format/CIDR>` ('default =' `dhcp`);;
446
447IPv6 address in CIDR format.
448
95895385
TL
449`ivshmem`: `size=<integer> [,name=<string>]` ::
450
451Inter-VM shared memory. Useful for direct communication between VMs, or to the host.
452
453`name`=`<string>` ;;
454
455The name of the file. Will be prefixed with 'pve-shm-'. Default is the VMID. Will be deleted when the VM is stopped.
456
457`size`=`<integer> (1 - N)` ;;
458
459The size of the file in MB.
460
4772952b
TL
461`keephugepages`: `<boolean>` ('default =' `0`)::
462
463Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts.
464
35a75dd3 465`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 466
5da3d723 467Keybord layout for vnc server. Default is read from the '/etc/pve/datacenter.cfg' configuration file.It should not be necessary to set it.
6ec3cd20 468
013dc89f 469`kvm`: `<boolean>` ('default =' `1`)::
6ec3cd20
DM
470
471Enable/disable KVM hardware virtualization.
472
013dc89f 473`localtime`: `<boolean>` ::
6ec3cd20 474
c2993fe5 475Set the real time clock to local time. This is enabled by default if ostype indicates a Microsoft OS.
6ec3cd20 476
95895385 477`lock`: `<backup | clone | create | migrate | rollback | snapshot | snapshot-delete | suspended | suspending>` ::
6ec3cd20
DM
478
479Lock/unlock the VM.
480
5c1699e5 481`machine`: `(pc|pc(-i440fx)?-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|q35|pc-q35-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|virt(?:-\d+(\.\d+)+)?(\+pve\d+)?)` ::
6ec3cd20 482
4d47f125 483Specifies the Qemu machine type.
6ec3cd20 484
013dc89f 485`memory`: `<integer> (16 - N)` ('default =' `512`)::
6ec3cd20 486
c2993fe5 487Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device.
6ec3cd20 488
013dc89f 489`migrate_downtime`: `<number> (0 - N)` ('default =' `0.1`)::
6ec3cd20
DM
490
491Set maximum tolerated downtime (in seconds) for migrations.
492
013dc89f 493`migrate_speed`: `<integer> (0 - N)` ('default =' `0`)::
6ec3cd20
DM
494
495Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
496
013dc89f 497`name`: `<string>` ::
6ec3cd20
DM
498
499Set a name for the VM. Only used on the configuration web interface.
500
27a7acb2
DM
501`nameserver`: `<string>` ::
502
4772952b
TL
503cloud-init: Sets DNS server IP address for a container. Create will'
504 .' automatically use the setting from the host if neither searchdomain nor nameserver'
505 .' are set.
27a7acb2 506
ac70d7d1 507`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
508
509Specify network devices.
c2993fe5
DM
510
511`bridge`=`<bridge>` ;;
512
513Bridge to attach the network device to. The Proxmox VE standard bridge
514is called 'vmbr0'.
6ec3cd20 515+
c2993fe5
DM
516If you do not specify a bridge, we create a kvm user (NATed) network
517device, which provides DHCP and DNS services. The following addresses
518are used:
6ec3cd20 519+
c2993fe5
DM
520 10.0.2.2 Gateway
521 10.0.2.3 DNS Server
522 10.0.2.4 SMB Server
6ec3cd20
DM
523+
524The DHCP server assign addresses to the guest starting from 10.0.2.15.
525
013dc89f 526`firewall`=`<boolean>` ;;
c2993fe5
DM
527
528Whether this interface should be protected by the firewall.
529
013dc89f 530`link_down`=`<boolean>` ;;
c2993fe5
DM
531
532Whether this interface should be disconnected (like pulling the plug).
533
534`macaddr`=`<XX:XX:XX:XX:XX:XX>` ;;
535
95895385 536A common MAC address with the I/G (Individual/Group) bit not set.
c2993fe5 537
013dc89f 538`model`=`<e1000 | e1000-82540em | e1000-82544gc | e1000-82545em | i82551 | i82557b | i82559er | ne2k_isa | ne2k_pci | pcnet | rtl8139 | virtio | vmxnet3>` ;;
c2993fe5
DM
539
540Network 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'.
541
ac70d7d1
TL
542`mtu`=`<integer> (1 - 65520)` ;;
543
544Force MTU, for VirtIO only. Set to '1' to use the bridge MTU
545
013dc89f 546`queues`=`<integer> (0 - 16)` ;;
c2993fe5
DM
547
548Number of packet queues to be used on the device.
549
013dc89f 550`rate`=`<number> (0 - N)` ;;
c2993fe5
DM
551
552Rate limit in mbps (megabytes per second) as floating point number.
553
013dc89f 554`tag`=`<integer> (1 - 4094)` ;;
c2993fe5
DM
555
556VLAN tag to apply to packets on this interface.
557
558`trunks`=`<vlanid[;vlanid...]>` ;;
559
560VLAN trunks to pass through this interface.
561
013dc89f 562`numa`: `<boolean>` ('default =' `0`)::
6ec3cd20
DM
563
564Enable/disable NUMA.
565
f004f5b9 566`numa[n]`: `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
6ec3cd20 567
c2993fe5
DM
568NUMA topology.
569
570`cpus`=`<id[-id];...>` ;;
571
572CPUs accessing this NUMA node.
573
574`hostnodes`=`<id[-id];...>` ;;
575
576Host NUMA nodes to use.
577
013dc89f 578`memory`=`<number>` ;;
c2993fe5
DM
579
580Amount of memory this NUMA node provides.
581
013dc89f 582`policy`=`<bind | interleave | preferred>` ;;
c2993fe5
DM
583
584NUMA allocation policy.
6ec3cd20 585
013dc89f 586`onboot`: `<boolean>` ('default =' `0`)::
6ec3cd20
DM
587
588Specifies whether a VM will be started during system bootup.
589
32d876b5 590`ostype`: `<l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win7 | win8 | wvista | wxp>` ::
6ec3cd20 591
c2993fe5
DM
592Specify guest operating system. This is used to enable special
593optimization/features for specific operating systems:
6ec3cd20 594+
c2993fe5
DM
595[horizontal]
596other;; unspecified OS
597wxp;; Microsoft Windows XP
598w2k;; Microsoft Windows 2000
599w2k3;; Microsoft Windows 2003
600w2k8;; Microsoft Windows 2008
601wvista;; Microsoft Windows Vista
602win7;; Microsoft Windows 7
35a75dd3
DM
603win8;; Microsoft Windows 8/2012/2012r2
604win10;; Microsoft Windows 10/2016
c2993fe5 605l24;; Linux 2.4 Kernel
5c1699e5 606l26;; Linux 2.6 - 5.X Kernel
c2993fe5 607solaris;; Solaris/OpenSolaris/OpenIndiania kernel
6ec3cd20
DM
608
609`parallel[n]`: `/dev/parport\d+|/dev/usb/lp\d+` ::
610
611Map host parallel devices (n is 0 to 2).
612+
4772952b
TL
613NOTE: This option allows direct access to host hardware. So it is no longer possible to migrate such
614machines - use with special care.
6ec3cd20 615+
c2993fe5 616CAUTION: Experimental! User reported problems with this option.
6ec3cd20 617
013dc89f 618`protection`: `<boolean>` ('default =' `0`)::
6ec3cd20 619
c2993fe5 620Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
6ec3cd20 621
013dc89f 622`reboot`: `<boolean>` ('default =' `1`)::
6ec3cd20
DM
623
624Allow reboot. If set to '0' the VM exit on reboot.
625
c5aa7e14
TL
626`rng0`: `[source=]</dev/urandom|/dev/random|/dev/hwrng> [,max_bytes=<integer>] [,period=<integer>]` ::
627
628Configure a VirtIO-based Random Number Generator.
629
630`max_bytes`=`<integer>` ('default =' `1024`);;
631
632Maximum 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!).
633
634`period`=`<integer>` ('default =' `1000`);;
635
636Every 'period' milliseconds the entropy-injection quota is reset, allowing the guest to retrieve another 'max_bytes' of entropy.
637
638`source`=`</dev/hwrng | /dev/random | /dev/urandom>` ;;
639
640The 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.
641
95895385 642`sata[n]`: `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]` ::
6ec3cd20
DM
643
644Use volume as SATA hard disk or CD-ROM (n is 0 to 5).
645
013dc89f 646`aio`=`<native | threads>` ;;
c2993fe5
DM
647
648AIO type to use.
649
013dc89f 650`backup`=`<boolean>` ;;
c2993fe5
DM
651
652Whether the drive should be included when making backups.
653
654`bps`=`<bps>` ;;
655
de0983cb
DM
656Maximum r/w speed in bytes per second.
657
658`bps_max_length`=`<seconds>` ;;
659
660Maximum length of I/O bursts in seconds.
c2993fe5
DM
661
662`bps_rd`=`<bps>` ;;
663
de0983cb
DM
664Maximum read speed in bytes per second.
665
5d9c884c 666`bps_rd_max_length`=`<seconds>` ;;
de0983cb
DM
667
668Maximum length of read I/O bursts in seconds.
c2993fe5
DM
669
670`bps_wr`=`<bps>` ;;
671
de0983cb
DM
672Maximum write speed in bytes per second.
673
5d9c884c 674`bps_wr_max_length`=`<seconds>` ;;
de0983cb
DM
675
676Maximum length of write I/O bursts in seconds.
c2993fe5 677
013dc89f 678`cache`=`<directsync | none | unsafe | writeback | writethrough>` ;;
c2993fe5
DM
679
680The drive's cache mode
681
013dc89f 682`cyls`=`<integer>` ;;
c2993fe5
DM
683
684Force the drive's physical geometry to have a specific cylinder count.
685
013dc89f 686`detect_zeroes`=`<boolean>` ;;
c2993fe5
DM
687
688Controls whether to detect and try to optimize writes of zeroes.
689
013dc89f 690`discard`=`<ignore | on>` ;;
c2993fe5
DM
691
692Controls whether to pass discard/trim requests to the underlying storage.
693
694`file`=`<volume>` ;;
695
696The drive's backing volume.
697
013dc89f 698`format`=`<cloop | cow | qcow | qcow2 | qed | raw | vmdk>` ;;
c2993fe5
DM
699
700The drive's backing file's data format.
701
013dc89f 702`heads`=`<integer>` ;;
c2993fe5
DM
703
704Force the drive's physical geometry to have a specific head count.
705
706`iops`=`<iops>` ;;
707
de0983cb 708Maximum r/w I/O in operations per second.
c2993fe5
DM
709
710`iops_max`=`<iops>` ;;
711
de0983cb
DM
712Maximum unthrottled r/w I/O pool in operations per second.
713
714`iops_max_length`=`<seconds>` ;;
715
716Maximum length of I/O bursts in seconds.
c2993fe5
DM
717
718`iops_rd`=`<iops>` ;;
719
de0983cb
DM
720Maximum read I/O in operations per second.
721
c2993fe5
DM
722`iops_rd_max`=`<iops>` ;;
723
de0983cb 724Maximum unthrottled read I/O pool in operations per second.
c2993fe5 725
5d9c884c 726`iops_rd_max_length`=`<seconds>` ;;
c2993fe5 727
5d9c884c 728Maximum length of read I/O bursts in seconds.
de0983cb 729
5d9c884c 730`iops_wr`=`<iops>` ;;
de0983cb 731
5d9c884c 732Maximum write I/O in operations per second.
c2993fe5
DM
733
734`iops_wr_max`=`<iops>` ;;
735
de0983cb 736Maximum unthrottled write I/O pool in operations per second.
c2993fe5 737
5d9c884c
DM
738`iops_wr_max_length`=`<seconds>` ;;
739
740Maximum length of write I/O bursts in seconds.
741
c2993fe5
DM
742`mbps`=`<mbps>` ;;
743
de0983cb 744Maximum r/w speed in megabytes per second.
c2993fe5
DM
745
746`mbps_max`=`<mbps>` ;;
747
de0983cb 748Maximum unthrottled r/w pool in megabytes per second.
c2993fe5
DM
749
750`mbps_rd`=`<mbps>` ;;
751
de0983cb 752Maximum read speed in megabytes per second.
c2993fe5
DM
753
754`mbps_rd_max`=`<mbps>` ;;
755
de0983cb 756Maximum unthrottled read pool in megabytes per second.
c2993fe5
DM
757
758`mbps_wr`=`<mbps>` ;;
759
de0983cb 760Maximum write speed in megabytes per second.
c2993fe5
DM
761
762`mbps_wr_max`=`<mbps>` ;;
763
de0983cb 764Maximum unthrottled write pool in megabytes per second.
c2993fe5 765
013dc89f 766`media`=`<cdrom | disk>` ('default =' `disk`);;
c2993fe5
DM
767
768The drive's media type.
769
5d9c884c
DM
770`replicate`=`<boolean>` ('default =' `1`);;
771
772Whether the drive should considered for replication jobs.
773
013dc89f 774`rerror`=`<ignore | report | stop>` ;;
c2993fe5
DM
775
776Read error action.
777
013dc89f 778`secs`=`<integer>` ;;
c2993fe5
DM
779
780Force the drive's physical geometry to have a specific sector count.
781
782`serial`=`<serial>` ;;
783
784The drive's reported serial number, url-encoded, up to 20 bytes long.
785
27a7acb2
DM
786`shared`=`<boolean>` ('default =' `0`);;
787
788Mark this locally-managed volume as available on all nodes.
789+
790WARNING: This option does not share the volume automatically, it assumes it is shared already!
791
c2993fe5
DM
792`size`=`<DiskSize>` ;;
793
794Disk size. This is purely informational and has no effect.
795
013dc89f 796`snapshot`=`<boolean>` ;;
c2993fe5 797
27a7acb2 798Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.
c2993fe5 799
25203dc1
NC
800`ssd`=`<boolean>` ;;
801
802Whether to expose this drive as an SSD, rather than a rotational hard disk.
803
013dc89f 804`trans`=`<auto | lba | none>` ;;
c2993fe5
DM
805
806Force disk geometry bios translation mode.
807
013dc89f 808`werror`=`<enospc | ignore | report | stop>` ;;
c2993fe5
DM
809
810Write error action.
811
95895385
TL
812`wwn`=`<wwn>` ;;
813
814The drive's worldwide name, encoded as 16 bytes hex string, prefixed by '0x'.
815
816`scsi[n]`: `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,queues=<integer>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,scsiblock=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]` ::
6ec3cd20 817
e9cd3bd4 818Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).
6ec3cd20 819
013dc89f 820`aio`=`<native | threads>` ;;
c2993fe5
DM
821
822AIO type to use.
823
013dc89f 824`backup`=`<boolean>` ;;
c2993fe5
DM
825
826Whether the drive should be included when making backups.
827
828`bps`=`<bps>` ;;
829
de0983cb
DM
830Maximum r/w speed in bytes per second.
831
832`bps_max_length`=`<seconds>` ;;
833
834Maximum length of I/O bursts in seconds.
c2993fe5
DM
835
836`bps_rd`=`<bps>` ;;
837
de0983cb
DM
838Maximum read speed in bytes per second.
839
5d9c884c 840`bps_rd_max_length`=`<seconds>` ;;
de0983cb
DM
841
842Maximum length of read I/O bursts in seconds.
c2993fe5
DM
843
844`bps_wr`=`<bps>` ;;
845
de0983cb
DM
846Maximum write speed in bytes per second.
847
5d9c884c 848`bps_wr_max_length`=`<seconds>` ;;
de0983cb
DM
849
850Maximum length of write I/O bursts in seconds.
c2993fe5 851
013dc89f 852`cache`=`<directsync | none | unsafe | writeback | writethrough>` ;;
c2993fe5
DM
853
854The drive's cache mode
855
013dc89f 856`cyls`=`<integer>` ;;
c2993fe5
DM
857
858Force the drive's physical geometry to have a specific cylinder count.
859
013dc89f 860`detect_zeroes`=`<boolean>` ;;
c2993fe5
DM
861
862Controls whether to detect and try to optimize writes of zeroes.
863
013dc89f 864`discard`=`<ignore | on>` ;;
c2993fe5
DM
865
866Controls whether to pass discard/trim requests to the underlying storage.
867
868`file`=`<volume>` ;;
869
870The drive's backing volume.
871
013dc89f 872`format`=`<cloop | cow | qcow | qcow2 | qed | raw | vmdk>` ;;
c2993fe5
DM
873
874The drive's backing file's data format.
875
013dc89f 876`heads`=`<integer>` ;;
c2993fe5
DM
877
878Force the drive's physical geometry to have a specific head count.
879
880`iops`=`<iops>` ;;
881
de0983cb 882Maximum r/w I/O in operations per second.
c2993fe5
DM
883
884`iops_max`=`<iops>` ;;
885
de0983cb
DM
886Maximum unthrottled r/w I/O pool in operations per second.
887
888`iops_max_length`=`<seconds>` ;;
889
890Maximum length of I/O bursts in seconds.
c2993fe5
DM
891
892`iops_rd`=`<iops>` ;;
893
de0983cb
DM
894Maximum read I/O in operations per second.
895
c2993fe5
DM
896`iops_rd_max`=`<iops>` ;;
897
de0983cb 898Maximum unthrottled read I/O pool in operations per second.
c2993fe5 899
5d9c884c 900`iops_rd_max_length`=`<seconds>` ;;
c2993fe5 901
5d9c884c 902Maximum length of read I/O bursts in seconds.
de0983cb 903
5d9c884c 904`iops_wr`=`<iops>` ;;
de0983cb 905
5d9c884c 906Maximum write I/O in operations per second.
c2993fe5
DM
907
908`iops_wr_max`=`<iops>` ;;
909
de0983cb 910Maximum unthrottled write I/O pool in operations per second.
c2993fe5 911
5d9c884c
DM
912`iops_wr_max_length`=`<seconds>` ;;
913
914Maximum length of write I/O bursts in seconds.
915
013dc89f 916`iothread`=`<boolean>` ;;
c2993fe5
DM
917
918Whether to use iothreads for this drive
919
920`mbps`=`<mbps>` ;;
921
de0983cb 922Maximum r/w speed in megabytes per second.
c2993fe5
DM
923
924`mbps_max`=`<mbps>` ;;
925
de0983cb 926Maximum unthrottled r/w pool in megabytes per second.
c2993fe5
DM
927
928`mbps_rd`=`<mbps>` ;;
929
de0983cb 930Maximum read speed in megabytes per second.
c2993fe5
DM
931
932`mbps_rd_max`=`<mbps>` ;;
933
de0983cb 934Maximum unthrottled read pool in megabytes per second.
c2993fe5
DM
935
936`mbps_wr`=`<mbps>` ;;
937
de0983cb 938Maximum write speed in megabytes per second.
c2993fe5
DM
939
940`mbps_wr_max`=`<mbps>` ;;
941
de0983cb 942Maximum unthrottled write pool in megabytes per second.
c2993fe5 943
013dc89f 944`media`=`<cdrom | disk>` ('default =' `disk`);;
c2993fe5
DM
945
946The drive's media type.
947
013dc89f 948`queues`=`<integer> (2 - N)` ;;
c2993fe5
DM
949
950Number of queues.
951
5d9c884c
DM
952`replicate`=`<boolean>` ('default =' `1`);;
953
954Whether the drive should considered for replication jobs.
955
956`rerror`=`<ignore | report | stop>` ;;
957
958Read error action.
959
52e44c50
FG
960`scsiblock`=`<boolean>` ('default =' `0`);;
961
962whether to use scsi-block for full passthrough of host block device
963+
964WARNING: can lead to I/O errors in combination with low memory or high memory fragmentation on host
965
013dc89f 966`secs`=`<integer>` ;;
c2993fe5
DM
967
968Force the drive's physical geometry to have a specific sector count.
969
970`serial`=`<serial>` ;;
971
972The drive's reported serial number, url-encoded, up to 20 bytes long.
973
27a7acb2
DM
974`shared`=`<boolean>` ('default =' `0`);;
975
976Mark this locally-managed volume as available on all nodes.
977+
978WARNING: This option does not share the volume automatically, it assumes it is shared already!
979
c2993fe5
DM
980`size`=`<DiskSize>` ;;
981
982Disk size. This is purely informational and has no effect.
983
013dc89f 984`snapshot`=`<boolean>` ;;
c2993fe5 985
27a7acb2 986Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.
c2993fe5 987
25203dc1
NC
988`ssd`=`<boolean>` ;;
989
990Whether to expose this drive as an SSD, rather than a rotational hard disk.
991
013dc89f 992`trans`=`<auto | lba | none>` ;;
c2993fe5
DM
993
994Force disk geometry bios translation mode.
995
013dc89f 996`werror`=`<enospc | ignore | report | stop>` ;;
c2993fe5
DM
997
998Write error action.
999
95895385
TL
1000`wwn`=`<wwn>` ;;
1001
1002The drive's worldwide name, encoded as 16 bytes hex string, prefixed by '0x'.
1003
013dc89f 1004`scsihw`: `<lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single>` ('default =' `lsi`)::
6ec3cd20 1005
c2993fe5 1006SCSI controller model
6ec3cd20 1007
27a7acb2
DM
1008`searchdomain`: `<string>` ::
1009
4772952b
TL
1010cloud-init: Sets DNS search domains for a container. Create will'
1011 .' automatically use the setting from the host if neither searchdomain nor nameserver'
1012 .' are set.
27a7acb2 1013
6ec3cd20
DM
1014`serial[n]`: `(/dev/.+|socket)` ::
1015
c2993fe5
DM
1016Create a serial device inside the VM (n is 0 to 3), and pass through a
1017host serial device (i.e. /dev/ttyS0), or create a unix socket on the
1018host side (use 'qm terminal' to open a terminal connection).
1019+
4772952b
TL
1020NOTE: If you pass through a host serial device, it is no longer possible to migrate such machines -
1021use with special care.
6ec3cd20 1022+
c2993fe5 1023CAUTION: Experimental! User reported problems with this option.
6ec3cd20 1024
013dc89f 1025`shares`: `<integer> (0 - 50000)` ('default =' `1000`)::
6ec3cd20 1026
5da3d723 1027Amount 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 1028
1e3f8156 1029`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
1030
1031Specify SMBIOS type 1 fields.
1032
1e3f8156
TL
1033`base64`=`<boolean>` ;;
1034
1035Flag to indicate that the SMBIOS values are base64 encoded
1036
1037`family`=`<Base64 encoded string>` ;;
c2993fe5
DM
1038
1039Set SMBIOS1 family string.
1040
1e3f8156 1041`manufacturer`=`<Base64 encoded string>` ;;
c2993fe5
DM
1042
1043Set SMBIOS1 manufacturer.
1044
1e3f8156 1045`product`=`<Base64 encoded string>` ;;
c2993fe5
DM
1046
1047Set SMBIOS1 product ID.
1048
1e3f8156 1049`serial`=`<Base64 encoded string>` ;;
c2993fe5
DM
1050
1051Set SMBIOS1 serial number.
1052
1e3f8156 1053`sku`=`<Base64 encoded string>` ;;
c2993fe5
DM
1054
1055Set SMBIOS1 SKU string.
1056
1057`uuid`=`<UUID>` ;;
1058
1059Set SMBIOS1 UUID.
1060
1e3f8156 1061`version`=`<Base64 encoded string>` ;;
c2993fe5
DM
1062
1063Set SMBIOS1 version.
1064
013dc89f 1065`smp`: `<integer> (1 - N)` ('default =' `1`)::
6ec3cd20
DM
1066
1067The number of CPUs. Please use option -sockets instead.
1068
013dc89f 1069`sockets`: `<integer> (1 - N)` ('default =' `1`)::
6ec3cd20
DM
1070
1071The number of CPU sockets.
1072
1c532546
TL
1073`spice_enhancements`: `[foldersharing=<1|0>] [,videostreaming=<off|all|filter>]` ::
1074
1075Configure additional enhancements for SPICE.
1076
1077`foldersharing`=`<boolean>` ('default =' `0`);;
1078
1079Enable folder sharing via SPICE. Needs Spice-WebDAV daemon installed in the VM.
1080
1081`videostreaming`=`<all | filter | off>` ('default =' `off`);;
1082
1083Enable video streaming. Uses compression for detected video streams.
1084
27a7acb2
DM
1085`sshkeys`: `<string>` ::
1086
1087cloud-init: Setup public SSH keys (one key per line, OpenSSH format).
1088
013dc89f 1089`startdate`: `(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)` ('default =' `now`)::
6ec3cd20 1090
4772952b 1091Set 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
1092
1093`startup`: `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
1094
c2993fe5 1095Startup 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 1096
013dc89f 1097`tablet`: `<boolean>` ('default =' `1`)::
6ec3cd20 1098
4772952b 1099Enable/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 1100
5c1699e5
TL
1101`tags`: `<string>` ::
1102
1103Tags of the VM. This is only meta information.
1104
013dc89f 1105`tdf`: `<boolean>` ('default =' `0`)::
6ec3cd20
DM
1106
1107Enable/disable time drift fix.
1108
013dc89f 1109`template`: `<boolean>` ('default =' `0`)::
6ec3cd20
DM
1110
1111Enable/disable Template.
1112
c5aa7e14 1113`unused[n]`: `[file=]<volume>` ::
6ec3cd20 1114
c2993fe5 1115Reference to unused volumes. This is used internally, and should not be modified manually.
6ec3cd20 1116
c5aa7e14
TL
1117`file`=`<volume>` ;;
1118
1119The drive's backing volume.
1120
f004f5b9 1121`usb[n]`: `[host=]<HOSTUSBDEVICE|spice> [,usb3=<1|0>]` ::
6ec3cd20 1122
c2993fe5
DM
1123Configure an USB device (n is 0 to 4).
1124
1125`host`=`<HOSTUSBDEVICE|spice>` ;;
1126
1127The Host USB device or port or the value 'spice'. HOSTUSBDEVICE syntax is:
6ec3cd20 1128+
c2993fe5
DM
1129 'bus-port(.port)*' (decimal numbers) or
1130 'vendor_id:product_id' (hexadeciaml numbers) or
1131 'spice'
6ec3cd20
DM
1132+
1133You can use the 'lsusb -t' command to list existing usb devices.
1134+
4772952b
TL
1135NOTE: This option allows direct access to host hardware. So it is no longer possible to migrate such
1136machines - use with special care.
6ec3cd20
DM
1137+
1138The value 'spice' can be used to add a usb redirection devices for spice.
c2993fe5 1139
013dc89f 1140`usb3`=`<boolean>` ('default =' `0`);;
c2993fe5 1141
1c532546 1142Specifies whether if given host option is a USB3 device or port.
6ec3cd20 1143
013dc89f 1144`vcpus`: `<integer> (1 - N)` ('default =' `0`)::
6ec3cd20
DM
1145
1146Number of hotplugged vcpus.
1147
e2d681b3
TL
1148`vga`: `[[type=]<enum>] [,memory=<integer>]` ::
1149
1150Configure 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.
1151You can also run without any graphic card, using a serial device as terminal.
1152
1153`memory`=`<integer> (4 - 512)` ;;
1154
1155Sets the VGA memory (in MiB). Has no effect with serial display.
1156
5f26e15b 1157`type`=`<cirrus | none | qxl | qxl2 | qxl3 | qxl4 | serial0 | serial1 | serial2 | serial3 | std | virtio | vmware>` ('default =' `std`);;
6ec3cd20 1158
e2d681b3 1159Select the VGA type.
6ec3cd20 1160
27a7acb2 1161`virtio[n]`: `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
6ec3cd20
DM
1162
1163Use volume as VIRTIO hard disk (n is 0 to 15).
1164
013dc89f 1165`aio`=`<native | threads>` ;;
c2993fe5
DM
1166
1167AIO type to use.
1168
013dc89f 1169`backup`=`<boolean>` ;;
c2993fe5
DM
1170
1171Whether the drive should be included when making backups.
1172
1173`bps`=`<bps>` ;;
1174
de0983cb
DM
1175Maximum r/w speed in bytes per second.
1176
1177`bps_max_length`=`<seconds>` ;;
1178
1179Maximum length of I/O bursts in seconds.
c2993fe5
DM
1180
1181`bps_rd`=`<bps>` ;;
1182
de0983cb
DM
1183Maximum read speed in bytes per second.
1184
5d9c884c 1185`bps_rd_max_length`=`<seconds>` ;;
de0983cb
DM
1186
1187Maximum length of read I/O bursts in seconds.
c2993fe5
DM
1188
1189`bps_wr`=`<bps>` ;;
1190
de0983cb
DM
1191Maximum write speed in bytes per second.
1192
5d9c884c 1193`bps_wr_max_length`=`<seconds>` ;;
de0983cb
DM
1194
1195Maximum length of write I/O bursts in seconds.
c2993fe5 1196
013dc89f 1197`cache`=`<directsync | none | unsafe | writeback | writethrough>` ;;
c2993fe5
DM
1198
1199The drive's cache mode
1200
013dc89f 1201`cyls`=`<integer>` ;;
c2993fe5
DM
1202
1203Force the drive's physical geometry to have a specific cylinder count.
1204
013dc89f 1205`detect_zeroes`=`<boolean>` ;;
c2993fe5
DM
1206
1207Controls whether to detect and try to optimize writes of zeroes.
1208
013dc89f 1209`discard`=`<ignore | on>` ;;
c2993fe5
DM
1210
1211Controls whether to pass discard/trim requests to the underlying storage.
1212
1213`file`=`<volume>` ;;
1214
1215The drive's backing volume.
1216
013dc89f 1217`format`=`<cloop | cow | qcow | qcow2 | qed | raw | vmdk>` ;;
c2993fe5
DM
1218
1219The drive's backing file's data format.
1220
013dc89f 1221`heads`=`<integer>` ;;
c2993fe5
DM
1222
1223Force the drive's physical geometry to have a specific head count.
1224
1225`iops`=`<iops>` ;;
1226
de0983cb 1227Maximum r/w I/O in operations per second.
c2993fe5
DM
1228
1229`iops_max`=`<iops>` ;;
1230
de0983cb
DM
1231Maximum unthrottled r/w I/O pool in operations per second.
1232
1233`iops_max_length`=`<seconds>` ;;
1234
1235Maximum length of I/O bursts in seconds.
c2993fe5
DM
1236
1237`iops_rd`=`<iops>` ;;
1238
de0983cb
DM
1239Maximum read I/O in operations per second.
1240
c2993fe5
DM
1241`iops_rd_max`=`<iops>` ;;
1242
de0983cb 1243Maximum unthrottled read I/O pool in operations per second.
c2993fe5 1244
5d9c884c 1245`iops_rd_max_length`=`<seconds>` ;;
c2993fe5 1246
5d9c884c 1247Maximum length of read I/O bursts in seconds.
de0983cb 1248
5d9c884c 1249`iops_wr`=`<iops>` ;;
de0983cb 1250
5d9c884c 1251Maximum write I/O in operations per second.
c2993fe5
DM
1252
1253`iops_wr_max`=`<iops>` ;;
1254
de0983cb 1255Maximum unthrottled write I/O pool in operations per second.
c2993fe5 1256
5d9c884c
DM
1257`iops_wr_max_length`=`<seconds>` ;;
1258
1259Maximum length of write I/O bursts in seconds.
1260
013dc89f 1261`iothread`=`<boolean>` ;;
c2993fe5
DM
1262
1263Whether to use iothreads for this drive
1264
1265`mbps`=`<mbps>` ;;
1266
de0983cb 1267Maximum r/w speed in megabytes per second.
c2993fe5
DM
1268
1269`mbps_max`=`<mbps>` ;;
1270
de0983cb 1271Maximum unthrottled r/w pool in megabytes per second.
c2993fe5
DM
1272
1273`mbps_rd`=`<mbps>` ;;
1274
de0983cb 1275Maximum read speed in megabytes per second.
c2993fe5
DM
1276
1277`mbps_rd_max`=`<mbps>` ;;
1278
de0983cb 1279Maximum unthrottled read pool in megabytes per second.
c2993fe5
DM
1280
1281`mbps_wr`=`<mbps>` ;;
1282
de0983cb 1283Maximum write speed in megabytes per second.
c2993fe5
DM
1284
1285`mbps_wr_max`=`<mbps>` ;;
1286
de0983cb 1287Maximum unthrottled write pool in megabytes per second.
c2993fe5 1288
013dc89f 1289`media`=`<cdrom | disk>` ('default =' `disk`);;
c2993fe5
DM
1290
1291The drive's media type.
1292
5d9c884c
DM
1293`replicate`=`<boolean>` ('default =' `1`);;
1294
1295Whether the drive should considered for replication jobs.
1296
013dc89f 1297`rerror`=`<ignore | report | stop>` ;;
c2993fe5
DM
1298
1299Read error action.
1300
013dc89f 1301`secs`=`<integer>` ;;
c2993fe5
DM
1302
1303Force the drive's physical geometry to have a specific sector count.
1304
1305`serial`=`<serial>` ;;
1306
1307The drive's reported serial number, url-encoded, up to 20 bytes long.
1308
27a7acb2
DM
1309`shared`=`<boolean>` ('default =' `0`);;
1310
1311Mark this locally-managed volume as available on all nodes.
1312+
1313WARNING: This option does not share the volume automatically, it assumes it is shared already!
1314
c2993fe5
DM
1315`size`=`<DiskSize>` ;;
1316
1317Disk size. This is purely informational and has no effect.
1318
013dc89f 1319`snapshot`=`<boolean>` ;;
c2993fe5 1320
27a7acb2 1321Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.
c2993fe5 1322
013dc89f 1323`trans`=`<auto | lba | none>` ;;
c2993fe5
DM
1324
1325Force disk geometry bios translation mode.
1326
013dc89f 1327`werror`=`<enospc | ignore | report | stop>` ;;
c2993fe5
DM
1328
1329Write error action.
1330
4d47f125
TL
1331`vmgenid`: `<UUID>` ('default =' `1 (autogenerated)`)::
1332
1333The 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 1334Note that auto-creation only works when done through API/CLI create or update methods, but not when manually editing the config file.
4d47f125 1335
2489d6df
WB
1336`vmstatestorage`: `<string>` ::
1337
1338Default storage for VM state volumes/files.
1339
013dc89f 1340`watchdog`: `[[model=]<i6300esb|ib700>] [,action=<enum>]` ::
6ec3cd20 1341
c2993fe5
DM
1342Create 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)
1343
013dc89f 1344`action`=`<debug | none | pause | poweroff | reset | shutdown>` ;;
c2993fe5
DM
1345
1346The action to perform if after activation the guest fails to poll the watchdog in time.
1347
013dc89f 1348`model`=`<i6300esb | ib700>` ('default =' `i6300esb`);;
c2993fe5
DM
1349
1350Watchdog type to emulate.
6ec3cd20 1351