From: Andrea Bolognani
disk
disk
element is the main container for describing
- disks (since 0.0.3).
+ disk
element is the main container for
+ describing disks and supports the following attributes:
-
type
attribute
- since 0.0.3type
device
attribute
- since 0.1.4device
rawio
attribute
- since 0.9.10rawio
sgio
is recommended, it's more
secure than rawio
.
+ Since 0.9.10
sgio
attribute
- since 1.0.2sgio
device
is 'lun'.
+ Since 1.0.2
snapshot
attribute
- since 0.9.5snapshot
snapshot='yes'
with a transient disk generally
does not make sense.
+ Since 0.9.5
source
depends on the
disk type
attribute value as follows:
type='file'
- since 0.0.3file
file
attribute specifies the fully-qualified
path to the file holding the disk.
+ Since 0.0.3
type='block'
- since 0.0.3block
dev
attribute specifies the fully-qualified path
to the host device to serve as the disk.
+ Since 0.0.3
type='dir'
- since 0.7.5dir
dir
attribute specifies the fully-qualified path
to the directory to use as the disk.
+ Since 0.7.5
type='network'
- since 0.8.7network
protocol
attribute specifies the protocol to
access to the requested image. Possible values are "nbd",
@@ -2127,9 +2126,9 @@
target's name by a slash (e.g.,
iqn.2013-07.com.example:iscsi-pool/1
). If not
specified, the default LUN is zero.
+ Since 0.8.7
type='volume'
- since 1.0.5volume
pool
and volume
. Attribute
@@ -2163,6 +2162,7 @@
of 'lun' with respect to how the LUN is presented to and
may used by the guest.
+ Since 1.0.5
backingStore
:
type
attributetype
type
attribute represents the type of disk used
by the backing store, see disk type attribute above for more
details and possible values.
index
attributeindex
vda[2]
refers to the backing store with
index='2'
of the disk with vda
target.
format
sub-elementbackingStore
supports the following sub-elements:
+ format
format
element contains type
attribute which specifies the internal format of the backing
store, such as raw
or qcow2
.
source
sub-elementsource
source
element in disk
. It specifies which file, device,
or network location contains the data of the described backing
store.
backingStore
sub-elementbackingStore
backingStore
@@ -2745,7 +2748,7 @@
source
. The possible values are:
type='mount'
mount
type='template'
template
type='file'
file
type='block'
block
type='ram'
ram
usage
@@ -2786,7 +2789,7 @@
are specified by the units
attribute. Only used
by LXC driver.
(since 0.9.13)type='bind'
bind
accessmode='passthrough'
passthrough
source
is accessed with the permissions of the
user inside the guest. This is the default accessmode
if
one is not specified.
More info
accessmode='mapped'
mapped
source
is accessed with the permissions of the
hypervisor (QEMU process).
More info
accessmode='squash'
squash
type='pci'
pci
domain
(a 2-byte hex integer, not
currently used by qemu), bus
(a hex value between
@@ -2927,32 +2930,32 @@
but should be set to 'on' for function 0 of a slot that will
have multiple functions used.
type='drive'
drive
controller
(a 2-digit controller
number), bus
(a 2-digit bus number),
target
(a 2-digit target number),
and unit
(a 2-digit unit number on the bus).
type='virtio-serial'
virtio-serial
controller
(a 2-digit controller
number), bus
(a 2-digit bus number),
and slot
(a 2-digit slot within the bus).
type='ccid'
ccid
bus
(a 2-digit bus
number), and slot
attribute (a 2-digit slot
within the bus). Since 0.8.8.
type='usb'
usb
bus
(a hex value between 0 and 0xfff,
inclusive), and port
(a dotted notation of up to
four octets, such as 1.2 or 2.1.3.1).
type='spapr-vio'
spapr-vio
type='ccw'
ccw
machine
value of
s390-ccw-virtio use the native CCW bus for I/O devices.
CCW bus addresses have the following additional attributes:
@@ -2975,7 +2978,7 @@
set to 0xfe.
Since 1.0.4
type='isa'
isa
iobase
and irq
.
Since 1.2.1
@@ -3210,7 +3213,7 @@
downstream-port).
<node>
node
<node>
subelement within
@@ -3772,14 +3775,14 @@
mode='host'
host
<address>
sub-element.mode='host-certificates'
host-certificates
mode='passthrough'
passthrough
host
offloading options+ Offloading options for the host and guest can be configured using + the following sub-elements: +
+host
csum
, gso
, tso4
,
tso6
, ecn
and ufo
@@ -4570,7 +4579,7 @@ qemu-kvm -net nic,model=? /dev/null
on
(default) and off
.
Since 1.2.13 (QEMU only)
guest
offloading optionsguest
csum
, tso4
,
tso6
, ecn
and ufo
@@ -5059,7 +5068,7 @@ qemu-kvm -net nic,model=? /dev/null
spice
, rdp
or desktop
:
"sdl"
sdl
This displays a window on the host desktop, it can take 3 optional
@@ -5069,7 +5078,7 @@ qemu-kvm -net nic,model=? /dev/null
yes
or no
.
"vnc"
vnc
Starts a VNC server. The port
attribute specifies
@@ -5110,7 +5119,7 @@ qemu-kvm -net nic,model=? /dev/null
security reasons) Since 1.0.6.
"spice"
Since 0.8.6spice
Since 0.8.6
Starts a SPICE server. The port
attribute specifies
@@ -5216,7 +5225,7 @@ qemu-kvm -net nic,model=? /dev/null
property. (QEMU only, since 1.3.2).
"rdp"
rdp
Starts a RDP server. The port
attribute specifies the
@@ -5231,7 +5240,7 @@ qemu-kvm -net nic,model=? /dev/null
single connection mode.
"desktop"
desktop
This value is reserved for VirtualBox domains for the moment. It
@@ -6230,29 +6239,27 @@ qemu-kvm -net nic,model=? /dev/null
to be used for the domain. The source model is configured using the
model
attribute. Supported source models are:
backend model='random'
- This backend type expects a non-blocking character device as input.
- The only accepted paths are /dev/random and /dev/hwrng. The file
- name is specified as contents of the backend
element.
- When no file name is specified the hypervisor default is used.
-
backend model='egd'
- This backend connects to a source using the EGD protocol. - The source is specified as a character device. Refer to - character device host interface - for more information. -
+random
+ This backend type expects a non-blocking character device as
+ input. The only accepted paths are /dev/random and /dev/hwrng.
+ The file name is specified as contents of the
+ backend
element. When no file name is specified
+ the hypervisor default is used.
+
egd
+ This backend connects to a source using the EGD protocol. + The source is specified as a character device. Refer to + character device host interface + for more information. +
+backend
element specifies the type of
TPM device. The following types are supported:
- backend type='passthrough'
- This backend type requires exclusive access to a TPM device on
- the host.
- An example for such a device is /dev/tpm0. The fully qualified file
- name is specified by path attribute of the source
element.
- If no file name is specified then /dev/tpm0 is automatically used.
-
passthrough
+ Use the host's TPM device. +
+
+ This backend type requires exclusive access to a TPM device on
+ the host. An example for such a device is /dev/tpm0. The fully
+ qualified file name is specified by path attribute of the
+ source
element. If no file name is specified then
+ /dev/tpm0 is automatically used.
+
3e3fce45-4f53-4fa7-bb32-11f34168b82b
.
If omitted when defining/creating a new network, a random
UUID is generated. Since 0.3.0ipv6='yes'
ipv6='yes'
enables
+ ipv6
yes
, the optional parameter
+ ipv6
enables
a network definition with no IPv6 gateway addresses specified
to have guest-to-guest communications. For further information,
see the example below for the example with no gateway addresses.
Since 1.0.1trustGuestRxFilters='yes'
trustGuestRxFilters
trustGuestRxFilters
can
be used to set that attribute of the same name for each domain
interface connected to this network (since