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