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