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