2008-04-26 22:22:02 +08:00
|
|
|
<domain type='xen'>
|
|
|
|
<name>XenGuest2</name>
|
|
|
|
<uuid>c7a5fdb2-cdaf-9455-926a-d65c16db1809</uuid>
|
2012-02-23 08:48:38 +08:00
|
|
|
<memory unit='KiB'>592896</memory>
|
|
|
|
<currentMemory unit='KiB'>403456</currentMemory>
|
2012-05-09 00:04:36 +08:00
|
|
|
<vcpu placement='static'>1</vcpu>
|
2008-04-26 22:22:02 +08:00
|
|
|
<os>
|
2016-12-31 05:43:43 +08:00
|
|
|
<type arch='x86_64' machine='xenfv'>hvm</type>
|
2014-08-06 19:18:53 +08:00
|
|
|
<loader type='rom'>/usr/lib/xen/boot/hvmloader</loader>
|
2008-04-26 22:22:02 +08:00
|
|
|
<boot dev='cdrom'/>
|
|
|
|
</os>
|
|
|
|
<features>
|
|
|
|
<acpi/>
|
|
|
|
<apic/>
|
2008-07-25 21:39:02 +08:00
|
|
|
<pae/>
|
2008-04-26 22:22:02 +08:00
|
|
|
</features>
|
2015-12-05 09:09:28 +08:00
|
|
|
<clock offset='variable' adjustment='0' basis='utc'/>
|
2008-07-25 21:39:02 +08:00
|
|
|
<on_poweroff>destroy</on_poweroff>
|
|
|
|
<on_reboot>restart</on_reboot>
|
|
|
|
<on_crash>restart</on_crash>
|
2008-04-26 22:22:02 +08:00
|
|
|
<devices>
|
2018-04-12 00:38:14 +08:00
|
|
|
<emulator>/usr/lib/xen/bin/qemu-system-i386</emulator>
|
2008-04-26 22:22:02 +08:00
|
|
|
<disk type='block' device='disk'>
|
2016-12-31 05:43:43 +08:00
|
|
|
<driver name='phy' type='raw'/>
|
2008-04-26 22:22:02 +08:00
|
|
|
<source dev='/dev/HostVG/XenGuest2'/>
|
2008-05-08 22:41:56 +08:00
|
|
|
<target dev='hda' bus='ide'/>
|
2015-11-28 12:33:55 +08:00
|
|
|
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
|
2008-04-26 22:22:02 +08:00
|
|
|
</disk>
|
|
|
|
<disk type='file' device='cdrom'>
|
2016-12-31 05:43:43 +08:00
|
|
|
<driver name='file' type='raw'/>
|
2008-04-26 22:22:02 +08:00
|
|
|
<source file='/root/boot.iso'/>
|
2008-05-08 22:41:56 +08:00
|
|
|
<target dev='hdc' bus='ide'/>
|
2008-04-26 22:22:02 +08:00
|
|
|
<readonly/>
|
2015-11-28 12:33:55 +08:00
|
|
|
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
|
2008-04-26 22:22:02 +08:00
|
|
|
</disk>
|
2016-01-08 11:49:57 +08:00
|
|
|
<controller type='ide' index='0'/>
|
2008-04-26 22:22:02 +08:00
|
|
|
<interface type='bridge'>
|
2008-07-25 21:39:02 +08:00
|
|
|
<mac address='00:16:3e:66:92:9c'/>
|
2008-04-26 22:22:02 +08:00
|
|
|
<source bridge='xenbr1'/>
|
2009-04-24 20:17:50 +08:00
|
|
|
<script path='vif-bridge'/>
|
2010-08-23 20:58:08 +08:00
|
|
|
<model type='e1000'/>
|
2008-04-26 22:22:02 +08:00
|
|
|
</interface>
|
|
|
|
<serial type='null'>
|
|
|
|
<target port='0'/>
|
|
|
|
</serial>
|
|
|
|
<console type='null'>
|
2010-07-23 01:56:21 +08:00
|
|
|
<target type='serial' port='0'/>
|
2008-04-26 22:22:02 +08:00
|
|
|
</console>
|
2008-07-25 21:39:02 +08:00
|
|
|
<input type='mouse' bus='ps2'/>
|
2014-02-17 18:17:53 +08:00
|
|
|
<input type='keyboard' bus='ps2'/>
|
conf: add <listen> subelement to domain <graphics> element
Once it's plugged in, the <listen> element will be an optional
replacement for the "listen" attribute that graphics elements already
have. If the <listen> element is type='address', it will have an
attribute called 'address' which will contain an IP address or dns
name that the guest's display server should listen on. If, however,
type='network', the <listen> element should have an attribute called
'network' that will be set to the name of a network configuration to
get the IP address from.
* docs/schemas/domain.rng: updated to allow the <listen> element
* docs/formatdomain.html.in: document the <listen> element and its
attributes.
* src/conf/domain_conf.[hc]:
1) The domain parser, formatter, and data structure are modified to
support 0 or more <listen> subelements to each <graphics>
element. The old style "legacy" listen attribute is also still
accepted, and will be stored internally just as if it were a
separate <listen> element. On output (i.e. format), the address
attribute of the first <listen> element of type 'address' will be
duplicated in the legacy "listen" attribute of the <graphic>
element.
2) The "listenAddr" attribute has been removed from the unions in
virDomainGRaphicsDef for graphics types vnc, rdp, and spice.
This attribute is now in the <listen> subelement (aka
virDomainGraphicsListenDef)
3) Helper functions were written to provide simple access
(both Get and Set) to the listen elements and their attributes.
* src/libvirt_private.syms: export the listen helper functions
* src/qemu/qemu_command.c, src/qemu/qemu_hotplug.c,
src/qemu/qemu_migration.c, src/vbox/vbox_tmpl.c,
src/vmx/vmx.c, src/xenxs/xen_sxpr.c, src/xenxs/xen_xm.c
Modify all these files to use the listen helper functions rather
than directly referencing the (now missing) listenAddr
attribute. There can be multiple <listen> elements to a single
<graphics>, but the drivers all currently only support one, so all
replacements of direct access with a helper function indicate index
"0".
* tests/* - only 3 of these are new files added explicitly to test the
new <listen> element. All the others have been modified to reflect
the fact that any legacy "listen" attributes passed in to the domain
parse will be saved in a <listen> element (i.e. one of the
virDomainGraphicsListenDefs), and during the domain format function,
both the <listen> element as well as the legacy attributes will be
output.
2011-07-07 12:20:28 +08:00
|
|
|
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'>
|
|
|
|
<listen type='address' address='127.0.0.1'/>
|
|
|
|
</graphics>
|
2016-04-12 20:58:43 +08:00
|
|
|
<video>
|
2016-12-31 05:43:43 +08:00
|
|
|
<model type='cirrus' vram='8192' heads='1' primary='yes'/>
|
2016-04-12 20:58:43 +08:00
|
|
|
</video>
|
2018-04-10 08:15:17 +08:00
|
|
|
<memballoon model='xen'/>
|
2008-04-26 22:22:02 +08:00
|
|
|
</devices>
|
|
|
|
</domain>
|