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