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