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