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