mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Merge code from python-virtinst.git
As outlined here: https://www.redhat.com/archives/virt-tools-list/2012-February/msg00040.html For now this is just a direct import of the code from virtinst commit dca5a4d6245f21d554f8853197a6a234bfc8e52c. History is not merged, so please refer to original git for detailed commit histor: http://git.fedorahosted.org/cgit/python-virtinst.git/
This commit is contained in:
51
tests/xmlparse-xml/add-devices-in.xml
Normal file
51
tests/xmlparse-xml/add-devices-in.xml
Normal file
@@ -0,0 +1,51 @@
|
||||
<domain type="kvm">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu cpuset="1-3">5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="file" device="floppy">
|
||||
<driver name="qemu" type="qcow2"/>
|
||||
<source file="/default-pool/testvol1.img"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<disk type="file" device="disk">
|
||||
<driver name="qemu" type="raw"/>
|
||||
<source file="/tmp/test.img"/>
|
||||
<target dev="vda" bus="virtio"/>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="vdb" bus="virtio"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
<target dev="hdc" bus="ide"/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
<interface type="network">
|
||||
<source network="default"/>
|
||||
<mac address="22:22:33:44:55:66"/>
|
||||
<model type="virtio"/>
|
||||
</interface>
|
||||
<graphics type="sdl" display=":3.4" xauth="/tmp/.Xauthority"/>
|
||||
<console type="pty"/>
|
||||
</devices>
|
||||
<seclabel type="static" model="selinux">
|
||||
<label>foolabel</label>
|
||||
<imagelabel>imagelabel</imagelabel>
|
||||
</seclabel>
|
||||
</domain>
|
||||
51
tests/xmlparse-xml/add-devices-out.xml
Normal file
51
tests/xmlparse-xml/add-devices-out.xml
Normal file
@@ -0,0 +1,51 @@
|
||||
<domain type="kvm">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu cpuset="1-3">5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="file" device="floppy">
|
||||
<driver name="qemu" type="qcow2"/>
|
||||
<source file="/default-pool/testvol1.img"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<disk type="file" device="disk">
|
||||
<driver name="qemu" type="raw"/>
|
||||
<source file="/tmp/test.img"/>
|
||||
<target dev="vda" bus="virtio"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
<target dev="hdc" bus="ide"/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
<interface type="network">
|
||||
<source network="default"/>
|
||||
<mac address="22:22:33:44:55:66"/>
|
||||
<model type="virtio"/>
|
||||
</interface>
|
||||
<graphics type="sdl" display=":3.4" xauth="/tmp/.Xauthority"/>
|
||||
<console type="pty"/>
|
||||
<watchdog model="i6300esb" action="reset"/>
|
||||
<interface type="network">
|
||||
<source network="default"/>
|
||||
<mac address="1A:2A:3A:4A:5A:6A"/>
|
||||
</interface>
|
||||
</devices>
|
||||
<seclabel type="static" model="selinux">
|
||||
<label>foolabel</label>
|
||||
<imagelabel>imagelabel</imagelabel>
|
||||
</seclabel>
|
||||
</domain>
|
||||
37
tests/xmlparse-xml/change-addr-in.xml
Normal file
37
tests/xmlparse-xml/change-addr-in.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<domain type="kvm">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686" machine="foobar">hvm</type>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type='block' device='disk'>
|
||||
<source dev='/dev/HostVG/QEMUGuest1'/>
|
||||
<target dev='hda' bus='ide'/>
|
||||
<address type='drive' controller='3' bus='5' unit='33'/>
|
||||
<alias name='foo2'/>
|
||||
</disk>
|
||||
<controller type='scsi' index='8'>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x7'/>
|
||||
</controller>
|
||||
<channel type='pty'>
|
||||
<target type='virtio' name='org.linux-kvm.port.wizz'/>
|
||||
<address type='virtio-serial' controller='0' bus='0' port='2'/>
|
||||
<alias name='channel0'/>
|
||||
</channel>
|
||||
<smartcard mode='host'>
|
||||
<address type='ccid' controller='0' slot='0'/>
|
||||
</smartcard>
|
||||
</devices>
|
||||
</domain>
|
||||
37
tests/xmlparse-xml/change-addr-out.xml
Normal file
37
tests/xmlparse-xml/change-addr-out.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<domain type="kvm">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686" machine="foobar">hvm</type>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="disk">
|
||||
<source dev="/dev/HostVG/QEMUGuest1"/>
|
||||
<target dev="hda" bus="ide"/>
|
||||
<address type="drive" controller="1" bus="4" unit="32"/>
|
||||
</disk>
|
||||
<controller type="scsi" index="8">
|
||||
<address type="pci" domain="0x0001" bus="4" slot="10" function="0x6"/>
|
||||
<alias name="frob"/>
|
||||
</controller>
|
||||
<channel type="pty">
|
||||
<target type="virtio" name="org.linux-kvm.port.wizz"/>
|
||||
<address type="virtio-serial" controller="0" bus="0" port="4"/>
|
||||
<alias name="channel1"/>
|
||||
</channel>
|
||||
<smartcard mode="host">
|
||||
<address type="ccid" controller="0" slot="0"/>
|
||||
</smartcard>
|
||||
</devices>
|
||||
</domain>
|
||||
24
tests/xmlparse-xml/change-boot-kernel-in.xml
Normal file
24
tests/xmlparse-xml/change-boot-kernel-in.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">linux</type>
|
||||
<kernel>/boot/vmlinuz</kernel>
|
||||
<initrd>/boot/initrd</initrd>
|
||||
<cmdline>location</cmdline>
|
||||
</os>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>destroy</on_reboot>
|
||||
<on_crash>destroy</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<disk type="block" device="disk">
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="xvda" bus="xen"/>
|
||||
</disk>
|
||||
<input type="mouse" bus="xen"/>
|
||||
<graphics type="vnc" port="-1" keymap="ja"/>
|
||||
</devices>
|
||||
</domain>
|
||||
24
tests/xmlparse-xml/change-boot-kernel-out.xml
Normal file
24
tests/xmlparse-xml/change-boot-kernel-out.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">linux</type>
|
||||
<boot dev="network"/>
|
||||
<boot dev="hd"/>
|
||||
<boot dev="fd"/>
|
||||
</os>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>destroy</on_reboot>
|
||||
<on_crash>destroy</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<disk type="block" device="disk">
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="xvda" bus="xen"/>
|
||||
</disk>
|
||||
<input type="mouse" bus="xen"/>
|
||||
<graphics type="vnc" port="-1" keymap="ja"/>
|
||||
</devices>
|
||||
</domain>
|
||||
33
tests/xmlparse-xml/change-boot-multi-in.xml
Normal file
33
tests/xmlparse-xml/change-boot-multi-in.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="hd"/>
|
||||
<boot dev="fd"/>
|
||||
<boot dev="cdrom"/>
|
||||
<boot dev="network"/>
|
||||
<bootmenu enable="no"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="file" device="disk">
|
||||
<source file="/tmp/test.img"/>
|
||||
<target dev="hda" bus="ide"/>
|
||||
</disk>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
<graphics type="sdl" display=":3.4" xauth="/tmp/.Xauthority"/>
|
||||
<console type="pty"/>
|
||||
</devices>
|
||||
</domain>
|
||||
33
tests/xmlparse-xml/change-boot-multi-out.xml
Normal file
33
tests/xmlparse-xml/change-boot-multi-out.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="cdrom"/>
|
||||
<bootmenu enable="yes"/>
|
||||
<kernel>foo.img</kernel>
|
||||
<initrd>bar.img</initrd>
|
||||
<cmdline>ks=foo.ks</cmdline>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="file" device="disk">
|
||||
<source file="/tmp/test.img"/>
|
||||
<target dev="hda" bus="ide"/>
|
||||
</disk>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
<graphics type="sdl" display=":3.4" xauth="/tmp/.Xauthority"/>
|
||||
<console type="pty"/>
|
||||
</devices>
|
||||
</domain>
|
||||
48
tests/xmlparse-xml/change-chars-in.xml
Normal file
48
tests/xmlparse-xml/change-chars-in.xml
Normal file
@@ -0,0 +1,48 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="network"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
<graphics type="sdl" display=":3.4" xauth="/tmp/.Xauthority"/>
|
||||
<serial type="null"/>
|
||||
<serial type="tcp">
|
||||
<source mode="bind" host="my.source.host" service="1234"/>
|
||||
<protocol type="telnet"/>
|
||||
</serial>
|
||||
<parallel type="unix">
|
||||
<source mode="bind" path="/tmp/foobar"/>
|
||||
</parallel>
|
||||
<parallel type="udp">
|
||||
<source mode="bind" host="my.bind.host" service="1111"/>
|
||||
<source mode="connect" host="my.source.host" service="2222"/>
|
||||
</parallel>
|
||||
<console type="pty"/>
|
||||
<console type="file">
|
||||
<source path="/tmp/foo.img"/>
|
||||
<target type="virtio"/>
|
||||
</console>
|
||||
<channel type="pty">
|
||||
<target type="virtio" name="foo.bar.frob"/>
|
||||
</channel>
|
||||
<channel type="unix">
|
||||
<source mode="bind" path="/tmp/foobar"/>
|
||||
<target type="guestfwd" address="1.2.3.4" port="4567"/>
|
||||
</channel>
|
||||
</devices>
|
||||
</domain>
|
||||
48
tests/xmlparse-xml/change-chars-out.xml
Normal file
48
tests/xmlparse-xml/change-chars-out.xml
Normal file
@@ -0,0 +1,48 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="network"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
<graphics type="sdl" display=":3.4" xauth="/tmp/.Xauthority"/>
|
||||
<serial type="null"/>
|
||||
<serial type="tcp">
|
||||
<source mode="connect" host="my.source.host" service="1234"/>
|
||||
<protocol type="raw"/>
|
||||
</serial>
|
||||
<parallel type="pty">
|
||||
<source mode="bind"/>
|
||||
</parallel>
|
||||
<parallel type="udp">
|
||||
<source mode="bind" host="my.foo.host" service="1357"/>
|
||||
<source mode="connect" host="source.foo.host" service="7777"/>
|
||||
</parallel>
|
||||
<console type="pty"/>
|
||||
<console type="file">
|
||||
<target type="virtio"/>
|
||||
<source path="/root/foo"/>
|
||||
</console>
|
||||
<channel type="pty">
|
||||
<target type="virtio" name="test.changed"/>
|
||||
</channel>
|
||||
<channel type="unix">
|
||||
<source mode="bind" path="/tmp/foobar"/>
|
||||
<target type="guestfwd" address="5.6.7.8" port="1199"/>
|
||||
</channel>
|
||||
</devices>
|
||||
</domain>
|
||||
30
tests/xmlparse-xml/change-controllers-in.xml
Normal file
30
tests/xmlparse-xml/change-controllers-in.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<description>foooo barrrr somedesc</description>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="localtime"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<controller type="ide" index="3"/>
|
||||
<controller type="virtio-serial" index="0" ports="32" vectors="17"/>
|
||||
<controller type="scsi" index="1"/>
|
||||
<controller type='usb' index='3' model='ich9-uhci3'>
|
||||
<master startport='4'/>
|
||||
<address type='pci' domain='0' bus='0' slot='4' function='2'/>
|
||||
</controller>
|
||||
</devices>
|
||||
</domain>
|
||||
30
tests/xmlparse-xml/change-controllers-out.xml
Normal file
30
tests/xmlparse-xml/change-controllers-out.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<description>foooo barrrr somedesc</description>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="localtime"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<controller type="ide" index="1"/>
|
||||
<controller type="virtio-serial" index="7" ports="5"/>
|
||||
<controller type="scsi" index="2"/>
|
||||
<controller type="usb" index="9" model="ich9-uhci3">
|
||||
<master startport="2"/>
|
||||
<address type="pci" domain="0" bus="0" slot="4" function="2"/>
|
||||
</controller>
|
||||
</devices>
|
||||
</domain>
|
||||
63
tests/xmlparse-xml/change-disk-in.xml
Normal file
63
tests/xmlparse-xml/change-disk-in.xml
Normal file
@@ -0,0 +1,63 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="file" device="disk">
|
||||
<source file="/tmp/test.img"/>
|
||||
<target dev="hda" bus="ide"/>
|
||||
<serial>WD-WMAP9A966149</serial>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="hdb" bus="ide"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
<driver type="raw"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="hdc" bus="ide"/>
|
||||
<driver name='phy' error_policy='stop'/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu" type="qcow2"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="hdd" bus="ide"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
<target dev="sda" bus="scsi"/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
<disk type="block" device="floppy">
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<disk type="block" device="floppy">
|
||||
<driver name="phy" cache="none"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="fdb" bus="fdc"/>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu" type="qcow2" cache="none"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="vda" bus="virtio"/>
|
||||
</disk>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
<graphics type="sdl" display=":3.4" xauth="/tmp/.Xauthority"/>
|
||||
<console type="pty"/>
|
||||
</devices>
|
||||
</domain>
|
||||
63
tests/xmlparse-xml/change-disk-out.xml
Normal file
63
tests/xmlparse-xml/change-disk-out.xml
Normal file
@@ -0,0 +1,63 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="file" device="disk">
|
||||
<source file="/dev/loop0"/>
|
||||
<target dev="hda" bus="ide"/>
|
||||
<serial>frob</serial>
|
||||
<driver name="test" type="raw"/>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="hdb" bus="ide"/>
|
||||
</disk>
|
||||
<disk type="block" device="floppy">
|
||||
<target dev="fde" bus="fdc"/>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu" type="qcow2"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="hdd" bus="ide"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
<target dev="sda" bus="scsi"/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
<disk type="file" device="floppy">
|
||||
<target dev="fda" bus="fdc"/>
|
||||
<source file="/default-pool/default-vol"/>
|
||||
<shareable/>
|
||||
<driver cache="writeback" io="native"/>
|
||||
</disk>
|
||||
<disk type="block" device="floppy">
|
||||
<driver name="phy" cache="none"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="fdb" bus="fdc"/>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu" type="qcow2" cache="none"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="vda" bus="virtio"/>
|
||||
</disk>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
<graphics type="sdl" display=":3.4" xauth="/tmp/.Xauthority"/>
|
||||
<console type="pty"/>
|
||||
</devices>
|
||||
</domain>
|
||||
46
tests/xmlparse-xml/change-filesystems-in.xml
Normal file
46
tests/xmlparse-xml/change-filesystems-in.xml
Normal file
@@ -0,0 +1,46 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<description>foooo barrrr somedesc</description>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="localtime"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<filesystem>
|
||||
<driver type='handle'/>
|
||||
<source dir='/foo/bar'/>
|
||||
<target dir='/bar/baz'/>
|
||||
</filesystem>
|
||||
<filesystem type='template'>
|
||||
<source name='template_fedora'/>
|
||||
<target dir='/bar/baz'/>
|
||||
</filesystem>
|
||||
<filesystem type='mount' accessmode='squash'>
|
||||
<driver type='path' wrpolicy='immediate'/>
|
||||
<source dir='/foo/bar'/>
|
||||
<target dir='/bar/baz'/>
|
||||
</filesystem>
|
||||
<filesystem type='mount' accessmode='mapped'>
|
||||
<driver type='path'/>
|
||||
<source dir='/foo/bar'/>
|
||||
<target dir='/bar/baz'/>
|
||||
</filesystem>
|
||||
</devices>
|
||||
</domain>
|
||||
47
tests/xmlparse-xml/change-filesystems-out.xml
Normal file
47
tests/xmlparse-xml/change-filesystems-out.xml
Normal file
@@ -0,0 +1,47 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<description>foooo barrrr somedesc</description>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="localtime"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<filesystem type="mount" accessmode="passthrough">
|
||||
<source dir="/new/path"/>
|
||||
<target dir="/new/target"/>
|
||||
</filesystem>
|
||||
<filesystem type="template" accessmode="mapped">
|
||||
<source name="template_new"/>
|
||||
<target dir="/bar/baz"/>
|
||||
</filesystem>
|
||||
<filesystem>
|
||||
<driver type="handle"/>
|
||||
<source dir="/foo/bar"/>
|
||||
<target dir="/bar/baz"/>
|
||||
<readonly/>
|
||||
</filesystem>
|
||||
<filesystem>
|
||||
<driver type="handle" wrpolicy="immediate"/>
|
||||
<source dir="/foo/bar"/>
|
||||
<target dir="/bar/baz"/>
|
||||
<readonly/>
|
||||
</filesystem>
|
||||
</devices>
|
||||
</domain>
|
||||
40
tests/xmlparse-xml/change-graphics-in.xml
Normal file
40
tests/xmlparse-xml/change-graphics-in.xml
Normal file
@@ -0,0 +1,40 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<description>foooo barrrr somedesc</description>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="localtime"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<graphics type="vnc" passwd="foobar" port="100" listen="0.0.0.0"/>
|
||||
<graphics type="sdl" xauth="/tmp/.Xauthority" display="1:2"/>
|
||||
<graphics type="rdp"/>
|
||||
<graphics type="vnc" port="-1" socket="/tmp/foobar"/>
|
||||
<graphics type="spice" passwd="foobar" port="100" tlsPort="101" listen="0.0.0.0" passwdValidTo="2010-04-09T15:51:00">
|
||||
<channel name='inputs' mode='insecure'/>
|
||||
<channel name='main' mode='secure'/>
|
||||
<channel name='record' mode='any'/>
|
||||
</graphics>
|
||||
</devices>
|
||||
<seclabel type="static" model="selinux">
|
||||
<label>foolabel</label>
|
||||
<imagelabel>imagelabel</imagelabel>
|
||||
</seclabel>
|
||||
</domain>
|
||||
40
tests/xmlparse-xml/change-graphics-out.xml
Normal file
40
tests/xmlparse-xml/change-graphics-out.xml
Normal file
@@ -0,0 +1,40 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<description>foooo barrrr somedesc</description>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="localtime"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<graphics type="vnc" passwd="newpass" port="6000" listen="1.2.3.4"/>
|
||||
<graphics type="sdl" xauth="fooauth" display="6:1"/>
|
||||
<graphics type="rdp"/>
|
||||
<graphics type="vnc" port="-1" socket="/var/lib/libvirt/socket/foo"/>
|
||||
<graphics type="spice" passwd="newpass" port="6000" tlsPort="6001" listen="1.2.3.4" passwdValidTo="2011-01-07T19:08:00">
|
||||
<channel name="inputs" mode="secure"/>
|
||||
<channel name="main" mode="any"/>
|
||||
<channel name="record" mode="insecure"/>
|
||||
</graphics>
|
||||
</devices>
|
||||
<seclabel type="static" model="selinux">
|
||||
<label>foolabel</label>
|
||||
<imagelabel>imagelabel</imagelabel>
|
||||
</seclabel>
|
||||
</domain>
|
||||
62
tests/xmlparse-xml/change-guest-in.xml
Normal file
62
tests/xmlparse-xml/change-guest-in.xml
Normal file
@@ -0,0 +1,62 @@
|
||||
<domain type="kvm">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686" machine="foobar">hvm</type>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<numatune>
|
||||
<memory mode='interleave' nodeset='1-5,^3,7'/>
|
||||
</numatune>
|
||||
<cpu match='exact'>
|
||||
<model>footest</model>
|
||||
<vendor>Intel</vendor>
|
||||
<topology sockets='4' cores='5' threads='2'/>
|
||||
<feature policy='force' name='x2apic'/>
|
||||
<feature policy='forbid' name='lahf_lm'/>
|
||||
</cpu>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu cpuset="1-3">5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="file" device="floppy">
|
||||
<driver name="qemu" type="qcow2"/>
|
||||
<source file="/default-pool/testvol1.img"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<disk type="file" device="disk">
|
||||
<driver name="qemu" type="raw"/>
|
||||
<source file="/tmp/test.img"/>
|
||||
<target dev="vda" bus="virtio"/>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="vdb" bus="virtio"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
<target dev="hdc" bus="ide"/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
<interface type="network">
|
||||
<source network="default"/>
|
||||
<mac address="22:22:33:44:55:66"/>
|
||||
<model type="virtio"/>
|
||||
</interface>
|
||||
<graphics type="sdl" display=":3.4" xauth="/tmp/.Xauthority"/>
|
||||
<console type="pty"/>
|
||||
<memballoon model='virtio'/>
|
||||
</devices>
|
||||
<seclabel type="static" model="selinux">
|
||||
<label>foolabel</label>
|
||||
<imagelabel>imagelabel</imagelabel>
|
||||
</seclabel>
|
||||
</domain>
|
||||
69
tests/xmlparse-xml/change-guest-out.xml
Normal file
69
tests/xmlparse-xml/change-guest-out.xml
Normal file
@@ -0,0 +1,69 @@
|
||||
<domain type="test">
|
||||
<name>change_name</name>
|
||||
<currentMemory>1024000</currentMemory>
|
||||
<memory>2048000</memory>
|
||||
<uuid>11111111-2222-3333-4444-555555555555</uuid>
|
||||
<os>
|
||||
<type machine="pc-0.11">xen</type>
|
||||
<boot dev="fd"/>
|
||||
<loader>/foo/loader</loader>
|
||||
<init>/sbin/init</init>
|
||||
<bootmenu enable="no"/>
|
||||
</os>
|
||||
<features>
|
||||
<apic/>
|
||||
</features>
|
||||
<numatune>
|
||||
<memory nodeset="2,4,6"/>
|
||||
</numatune>
|
||||
<cpu match="strict">
|
||||
<model>qemu64</model>
|
||||
<vendor>qemuvendor</vendor>
|
||||
<topology sockets="4" cores="3" threads="1"/>
|
||||
<feature policy="disable" name="foofeat"/>
|
||||
<feature policy="require" name="addfeature"/>
|
||||
</cpu>
|
||||
<clock offset="localtime"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu cpuset="1-5,15" current="10">12</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/binnnn/fooemu</emulator>
|
||||
<disk type="file" device="floppy">
|
||||
<driver name="qemu" type="qcow2"/>
|
||||
<source file="/default-pool/testvol1.img"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<disk type="file" device="disk">
|
||||
<driver name="qemu" type="raw"/>
|
||||
<source file="/tmp/test.img"/>
|
||||
<target dev="vda" bus="virtio"/>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="vdb" bus="virtio"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
<target dev="hdc" bus="ide"/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
<interface type="network">
|
||||
<source network="default"/>
|
||||
<mac address="22:22:33:44:55:66"/>
|
||||
<model type="virtio"/>
|
||||
</interface>
|
||||
<graphics type="sdl" display=":3.4" xauth="/tmp/.Xauthority"/>
|
||||
<console type="pty"/>
|
||||
<memballoon model="none"/>
|
||||
</devices>
|
||||
<seclabel type="static" model="apparmor">
|
||||
<label>barlabel</label>
|
||||
<imagelabel>fooimage</imagelabel>
|
||||
</seclabel>
|
||||
<description>Hey desc changed&</description>
|
||||
<memoryBacking>
|
||||
<hugepages/>
|
||||
</memoryBacking>
|
||||
</domain>
|
||||
41
tests/xmlparse-xml/change-hostdevs-in.xml
Normal file
41
tests/xmlparse-xml/change-hostdevs-in.xml
Normal file
@@ -0,0 +1,41 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="network"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
<graphics type="sdl" display=":3.4" xauth="/tmp/.Xauthority"/>
|
||||
<console type="pty"/>
|
||||
<hostdev mode="subsystem" type="usb" managed="yes">
|
||||
<source>
|
||||
<vendor id="0x4321"/>
|
||||
<product id="0x1234"/>
|
||||
</source>
|
||||
</hostdev>
|
||||
<hostdev mode="capabilities" type="usb" managed="no">
|
||||
<source>
|
||||
<address bus="0x12" device="0x34"/>
|
||||
</source>
|
||||
</hostdev>
|
||||
<hostdev mode="subsystem" type="pci" managed="yes">
|
||||
<source>
|
||||
<address domain="0x0" bus="0x1" slot="0x2" function="0x3"/>
|
||||
</source>
|
||||
</hostdev>
|
||||
</devices>
|
||||
</domain>
|
||||
42
tests/xmlparse-xml/change-hostdevs-out.xml
Normal file
42
tests/xmlparse-xml/change-hostdevs-out.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="network"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
<graphics type="sdl" display=":3.4" xauth="/tmp/.Xauthority"/>
|
||||
<console type="pty"/>
|
||||
<hostdev type="usb" managed="no">
|
||||
<source>
|
||||
<vendor id="0x1111"/>
|
||||
<product id="0x2222"/>
|
||||
<address bus="1" device="2"/>
|
||||
</source>
|
||||
</hostdev>
|
||||
<hostdev mode="subsystem" type="usb" managed="yes">
|
||||
<source>
|
||||
<address bus="0x56" device="0x78"/>
|
||||
</source>
|
||||
</hostdev>
|
||||
<hostdev mode="capabilities" type="pci" managed="yes">
|
||||
<source>
|
||||
<address domain="0x4" bus="0x5" slot="0x6" function="0x7"/>
|
||||
</source>
|
||||
</hostdev>
|
||||
</devices>
|
||||
</domain>
|
||||
25
tests/xmlparse-xml/change-inputs-in.xml
Normal file
25
tests/xmlparse-xml/change-inputs-in.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<description>foooo barrrr somedesc</description>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="localtime"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
<input type="tablet" bus="usb"/>
|
||||
</devices>
|
||||
</domain>
|
||||
25
tests/xmlparse-xml/change-inputs-out.xml
Normal file
25
tests/xmlparse-xml/change-inputs-out.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<description>foooo barrrr somedesc</description>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="localtime"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<input type="tablet" bus="usb"/>
|
||||
<input type="mouse" bus="usb"/>
|
||||
</devices>
|
||||
</domain>
|
||||
29
tests/xmlparse-xml/change-media-in.xml
Normal file
29
tests/xmlparse-xml/change-media-in.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<domain type="kvm">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<vcpu cpuset="1-3">5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="cdrom">
|
||||
<target dev="hda" bus="ide"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
<target dev="hdb" bus="ide"/>
|
||||
</disk>
|
||||
<disk type="file" device="cdrom">
|
||||
<target dev="hdc" bus="ide"/>
|
||||
</disk>
|
||||
<disk type="block" device="floppy">
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<disk type="block" device="floppy">
|
||||
<target dev="fdb" bus="fdc"/>
|
||||
</disk>
|
||||
</devices>
|
||||
</domain>
|
||||
39
tests/xmlparse-xml/change-media-out.xml
Normal file
39
tests/xmlparse-xml/change-media-out.xml
Normal file
@@ -0,0 +1,39 @@
|
||||
<domain type="kvm">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<vcpu cpuset="1-3">5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="file" device="cdrom">
|
||||
<target dev="hda" bus="ide"/>
|
||||
<driver name="qemu" type="qcow2"/>
|
||||
<source file="/default-pool/default-vol"/>
|
||||
</disk>
|
||||
<disk type="file" device="cdrom">
|
||||
<target dev="hdb" bus="ide"/>
|
||||
<driver name="qemu" type="qcow2"/>
|
||||
<source file="/disk-pool/diskvol1"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
<target dev="hdc" bus="ide"/>
|
||||
<driver name="qemu" type="raw"/>
|
||||
<source dev="/disk-pool/diskvol1"/>
|
||||
</disk>
|
||||
<disk type="file" device="floppy">
|
||||
<target dev="fda" bus="fdc"/>
|
||||
<driver name="qemu" type="qcow2"/>
|
||||
<source file="/default-pool/default-vol"/>
|
||||
</disk>
|
||||
<disk type="block" device="floppy">
|
||||
<target dev="fdb" bus="fdc"/>
|
||||
<driver name="qemu" type="raw"/>
|
||||
<source dev="/disk-pool/diskvol1"/>
|
||||
</disk>
|
||||
</devices>
|
||||
</domain>
|
||||
18
tests/xmlparse-xml/change-minimal-guest-in.xml
Normal file
18
tests/xmlparse-xml/change-minimal-guest-in.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<domain type="kvm">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<vcpu cpuset="1-3">4</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="cdrom">
|
||||
<target dev="hdc" bus="ide"/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
</devices>
|
||||
</domain>
|
||||
30
tests/xmlparse-xml/change-minimal-guest-out.xml
Normal file
30
tests/xmlparse-xml/change-minimal-guest-out.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<domain type="kvm">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<vcpu cpuset="1-3">4</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="cdrom">
|
||||
<target dev="hdc" bus="ide"/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
</devices>
|
||||
<features>
|
||||
<acpi/>
|
||||
</features>
|
||||
<clock offset="utc"/>
|
||||
<seclabel model="testSecurity" type="static">
|
||||
<label>frob</label>
|
||||
</seclabel>
|
||||
<cpu match="exact">
|
||||
<model>foobar</model>
|
||||
<topology cores="4" sockets="1" threads="1"/>
|
||||
<feature policy="forbid" name="x2apic"/>
|
||||
</cpu>
|
||||
</domain>
|
||||
51
tests/xmlparse-xml/change-nics-in.xml
Normal file
51
tests/xmlparse-xml/change-nics-in.xml
Normal file
@@ -0,0 +1,51 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="network"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<interface type="user">
|
||||
<mac address="22:11:11:11:11:11"/>
|
||||
</interface>
|
||||
<interface type="network">
|
||||
<source network="default"/>
|
||||
<mac address="22:22:33:44:55:66"/>
|
||||
<model type="e1000"/>
|
||||
</interface>
|
||||
<interface type="bridge">
|
||||
<source bridge="foobr0"/>
|
||||
<mac address="22:22:22:22:22:22"/>
|
||||
</interface>
|
||||
<interface type="ethernet">
|
||||
<mac address="00:11:22:33:44:55"/>
|
||||
<source dev="eth0"/>
|
||||
<script path="/etc/qemu-ifup"/>
|
||||
<target dev="nic02"/>
|
||||
</interface>
|
||||
<interface type="direct">
|
||||
<mac address="00:11:22:33:44:55"/>
|
||||
<source dev="eth0.1" mode="vepa"/>
|
||||
<virtualport type="802.1Qbg">
|
||||
<parameters managerid="12" typeid="1193046" typeidversion="1" instanceid="09b11c53-8b5c-4eeb-8f00-d84eaa0aaa3b"/>
|
||||
</virtualport>
|
||||
<address type="pci" domain="0x0000" bus="0x00" slot="0x07" function="0x0"/>
|
||||
</interface>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
<graphics type="sdl" display=":3.4" xauth="/tmp/.Xauthority"/>
|
||||
<console type="pty"/>
|
||||
</devices>
|
||||
</domain>
|
||||
53
tests/xmlparse-xml/change-nics-out.xml
Normal file
53
tests/xmlparse-xml/change-nics-out.xml
Normal file
@@ -0,0 +1,53 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="network"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<interface type="user">
|
||||
<mac address="AA:AA:AA:AA:AA:AA"/>
|
||||
<model type="testmodel"/>
|
||||
<source bridge="br0" network="route"/>
|
||||
</interface>
|
||||
<interface type="bridge">
|
||||
<mac address="22:22:33:44:55:66"/>
|
||||
<model type="virtio"/>
|
||||
<source bridge="newbr0"/>
|
||||
</interface>
|
||||
<interface type="bridge">
|
||||
<source bridge="newfoo0" network="default"/>
|
||||
<mac address="22:22:22:22:22:22"/>
|
||||
<target dev="test1"/>
|
||||
</interface>
|
||||
<interface type="ethernet">
|
||||
<mac address="00:11:22:33:44:55"/>
|
||||
<source dev="eth1"/>
|
||||
<script path="/etc/qemu-ifup"/>
|
||||
</interface>
|
||||
<interface type="direct">
|
||||
<mac address="00:11:22:33:44:55"/>
|
||||
<source dev="eth0.1" mode="bridge"/>
|
||||
<virtualport type="802.1Qbg">
|
||||
<parameters managerid="11" typeid="1193047" typeidversion="2" instanceid="09b11c53-8b5c-4eeb-8f00-d84eaa0aaa4f"/>
|
||||
</virtualport>
|
||||
<address type="pci" domain="0x0000" bus="0x00" slot="0x07" function="0x0"/>
|
||||
</interface>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
<graphics type="sdl" display=":3.4" xauth="/tmp/.Xauthority"/>
|
||||
<console type="pty"/>
|
||||
</devices>
|
||||
</domain>
|
||||
38
tests/xmlparse-xml/change-redirdev-in.xml
Normal file
38
tests/xmlparse-xml/change-redirdev-in.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<domain type="kvm">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686" machine="foobar">hvm</type>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<vcpu>1</vcpu>
|
||||
<features>
|
||||
<acpi/><apic/><pae/>
|
||||
</features>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<devices>
|
||||
<emulator>/usr/local/bin/qemu-kvm</emulator>
|
||||
<controller type="usb" index="1" model="ich9-ehci1">
|
||||
<master startport="0"/>
|
||||
<address type="pci" domain="0" bus="0" slot="4" function="7"/>
|
||||
</controller>
|
||||
<interface type="user">
|
||||
<mac address="52:54:00:3f:75:db"/>
|
||||
</interface>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
<graphics type="vnc" port="-1"/>
|
||||
<console type="pty"/>
|
||||
<video>
|
||||
<model type="cirrus"/>
|
||||
</video>
|
||||
<redirdev bus="usb" type="tcp">
|
||||
<source mode="connect" host="foo" service="12"/>
|
||||
</redirdev>
|
||||
<redirdev bus="usb" type="spicevmc"/>
|
||||
</devices>
|
||||
</domain>
|
||||
38
tests/xmlparse-xml/change-redirdev-out.xml
Normal file
38
tests/xmlparse-xml/change-redirdev-out.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<domain type="kvm">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686" machine="foobar">hvm</type>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<vcpu>1</vcpu>
|
||||
<features>
|
||||
<acpi/><apic/><pae/>
|
||||
</features>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<devices>
|
||||
<emulator>/usr/local/bin/qemu-kvm</emulator>
|
||||
<controller type="usb" index="1" model="ich9-ehci1">
|
||||
<master startport="0"/>
|
||||
<address type="pci" domain="0" bus="0" slot="4" function="7"/>
|
||||
</controller>
|
||||
<interface type="user">
|
||||
<mac address="52:54:00:3f:75:db"/>
|
||||
</interface>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
<graphics type="vnc" port="-1"/>
|
||||
<console type="pty"/>
|
||||
<video>
|
||||
<model type="cirrus"/>
|
||||
</video>
|
||||
<redirdev bus="usb" type="tcp">
|
||||
<source mode="connect" host="bar" service="42"/>
|
||||
</redirdev>
|
||||
<redirdev bus="usb" type="spicevmc"/>
|
||||
</devices>
|
||||
</domain>
|
||||
62
tests/xmlparse-xml/change-smartcard-in.xml
Normal file
62
tests/xmlparse-xml/change-smartcard-in.xml
Normal file
@@ -0,0 +1,62 @@
|
||||
<domain type='kvm'>
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch='i686' machine='foobar'>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<cpu match='exact'>
|
||||
<model>footest</model>
|
||||
<vendor>Intel</vendor>
|
||||
<topology sockets='4' cores='5' threads='2'/>
|
||||
<feature policy='force' name='x2apic'/>
|
||||
<feature policy='forbid' name='lahf_lm'/>
|
||||
</cpu>
|
||||
<clock offset='utc'/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu cpuset='1-3'>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type='file' device='floppy'>
|
||||
<driver name='qemu' type='qcow2'/>
|
||||
<source file='/default-pool/testvol1.img'/>
|
||||
<target dev='fda' bus='fdc'/>
|
||||
</disk>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu' type='raw'/>
|
||||
<source file='/tmp/test.img'/>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
</disk>
|
||||
<disk type='block' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source dev='/dev/loop0'/>
|
||||
<target dev='vdb' bus='virtio'/>
|
||||
</disk>
|
||||
<disk type='block' device='cdrom'>
|
||||
<target dev='hdc' bus='ide'/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
<interface type='network'>
|
||||
<source network='default'/>
|
||||
<mac address='22:22:33:44:55:66'/>
|
||||
<model type='virtio'/>
|
||||
</interface>
|
||||
<graphics type='sdl' display=':3.4' xauth='/tmp/.Xauthority'/>
|
||||
<console type='pty'/>
|
||||
<smartcard mode='host'>
|
||||
</smartcard>
|
||||
<smartcard mode='passthrough' type='spicevmc'>
|
||||
</smartcard>
|
||||
</devices>
|
||||
<seclabel type='static' model='selinux'>
|
||||
<label>foolabel</label>
|
||||
<imagelabel>imagelabel</imagelabel>
|
||||
</seclabel>
|
||||
</domain>
|
||||
62
tests/xmlparse-xml/change-smartcard-out.xml
Normal file
62
tests/xmlparse-xml/change-smartcard-out.xml
Normal file
@@ -0,0 +1,62 @@
|
||||
<domain type="kvm">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<os>
|
||||
<type arch="i686" machine="foobar">hvm</type>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<cpu match="exact">
|
||||
<model>footest</model>
|
||||
<vendor>Intel</vendor>
|
||||
<topology sockets="4" cores="5" threads="2"/>
|
||||
<feature policy="force" name="x2apic"/>
|
||||
<feature policy="forbid" name="lahf_lm"/>
|
||||
</cpu>
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu cpuset="1-3">5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="file" device="floppy">
|
||||
<driver name="qemu" type="qcow2"/>
|
||||
<source file="/default-pool/testvol1.img"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<disk type="file" device="disk">
|
||||
<driver name="qemu" type="raw"/>
|
||||
<source file="/tmp/test.img"/>
|
||||
<target dev="vda" bus="virtio"/>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="vdb" bus="virtio"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
<target dev="hdc" bus="ide"/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
<interface type="network">
|
||||
<source network="default"/>
|
||||
<mac address="22:22:33:44:55:66"/>
|
||||
<model type="virtio"/>
|
||||
</interface>
|
||||
<graphics type="sdl" display=":3.4" xauth="/tmp/.Xauthority"/>
|
||||
<console type="pty"/>
|
||||
<smartcard mode="host" type="tcp">
|
||||
</smartcard>
|
||||
<smartcard mode="host">
|
||||
</smartcard>
|
||||
</devices>
|
||||
<seclabel type="static" model="selinux">
|
||||
<label>foolabel</label>
|
||||
<imagelabel>imagelabel</imagelabel>
|
||||
</seclabel>
|
||||
</domain>
|
||||
34
tests/xmlparse-xml/change-sounds-in.xml
Normal file
34
tests/xmlparse-xml/change-sounds-in.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<description>foooo barrrr somedesc</description>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="localtime"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<sound model="sb16"/>
|
||||
<sound model="es1370"/>
|
||||
<sound model="ac97"/>
|
||||
</devices>
|
||||
<seclabel type="static" model="selinux">
|
||||
<label>foolabel</label>
|
||||
<imagelabel>imagelabel</imagelabel>
|
||||
</seclabel>
|
||||
</domain>
|
||||
34
tests/xmlparse-xml/change-sounds-out.xml
Normal file
34
tests/xmlparse-xml/change-sounds-out.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<description>foooo barrrr somedesc</description>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="localtime"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<sound model="ac97"/>
|
||||
<sound model="es1370"/>
|
||||
<sound model="sb16"/>
|
||||
</devices>
|
||||
<seclabel type="static" model="selinux">
|
||||
<label>foolabel</label>
|
||||
<imagelabel>imagelabel</imagelabel>
|
||||
</seclabel>
|
||||
</domain>
|
||||
36
tests/xmlparse-xml/change-videos-in.xml
Normal file
36
tests/xmlparse-xml/change-videos-in.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<description>foooo barrrr somedesc</description>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="localtime"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<video>
|
||||
<model type="vmvga"/>
|
||||
</video>
|
||||
<video>
|
||||
<model type="cirrus" vram="10240" heads="3"/>
|
||||
</video>
|
||||
<video>
|
||||
<model type="cirrus"/>
|
||||
</video>
|
||||
</devices>
|
||||
</domain>
|
||||
36
tests/xmlparse-xml/change-videos-out.xml
Normal file
36
tests/xmlparse-xml/change-videos-out.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<description>foooo barrrr somedesc</description>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="localtime"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<video>
|
||||
<model type="vga" vram="1000" heads="1"/>
|
||||
</video>
|
||||
<video>
|
||||
<model type="vmvga" heads="5"/>
|
||||
</video>
|
||||
<video>
|
||||
<model type="cirrus"/>
|
||||
</video>
|
||||
</devices>
|
||||
</domain>
|
||||
32
tests/xmlparse-xml/change-watchdogs-in.xml
Normal file
32
tests/xmlparse-xml/change-watchdogs-in.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<description>foooo barrrr somedesc</description>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="localtime"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<watchdog model="ib700" action="none"/>
|
||||
</devices>
|
||||
<seclabel type="static" model="selinux">
|
||||
<label>foolabel</label>
|
||||
<imagelabel>imagelabel</imagelabel>
|
||||
</seclabel>
|
||||
</domain>
|
||||
32
tests/xmlparse-xml/change-watchdogs-out.xml
Normal file
32
tests/xmlparse-xml/change-watchdogs-out.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<domain type="xen">
|
||||
<name>TestGuest</name>
|
||||
<currentMemory>204800</currentMemory>
|
||||
<memory>409600</memory>
|
||||
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
||||
<description>foooo barrrr somedesc</description>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<boot dev="hd"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/><apic/>
|
||||
</features>
|
||||
<clock offset="localtime"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<watchdog model="i6300esb" action="poweroff"/>
|
||||
</devices>
|
||||
<seclabel type="static" model="selinux">
|
||||
<label>foolabel</label>
|
||||
<imagelabel>imagelabel</imagelabel>
|
||||
</seclabel>
|
||||
</domain>
|
||||
22
tests/xmlparse-xml/console-compat-in.xml
Normal file
22
tests/xmlparse-xml/console-compat-in.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<domain type="test">
|
||||
<name>test_xenpv_kernel</name>
|
||||
<uuid>596a5d2171f48fb2e068e2386a5c413e</uuid>
|
||||
<os>
|
||||
<type>xen</type>
|
||||
<kernel>/var/lib/xen/vmlinuz.2Dn2YT</kernel>
|
||||
<initrd>/var/lib/xen/initrd.img.0u-Vhq</initrd>
|
||||
<cmdline> method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os </cmdline>
|
||||
</os>
|
||||
<memory>430080</memory>
|
||||
<vcpu>2</vcpu>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>destroy</on_reboot>
|
||||
<on_crash>destroy</on_crash>
|
||||
<devices>
|
||||
<disk type="file" device="disk">
|
||||
<source file="/root/some.img"/>
|
||||
<target dev="xvda"/>
|
||||
</disk>
|
||||
<console tty="/dev/pts/4"/>
|
||||
</devices>
|
||||
</domain>
|
||||
22
tests/xmlparse-xml/console-compat-out.xml
Normal file
22
tests/xmlparse-xml/console-compat-out.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<domain type="test">
|
||||
<name>test_xenpv_kernel</name>
|
||||
<uuid>596a5d2171f48fb2e068e2386a5c413e</uuid>
|
||||
<os>
|
||||
<type>xen</type>
|
||||
<kernel>/var/lib/xen/vmlinuz.2Dn2YT</kernel>
|
||||
<initrd>/var/lib/xen/initrd.img.0u-Vhq</initrd>
|
||||
<cmdline> method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os </cmdline>
|
||||
</os>
|
||||
<memory>430080</memory>
|
||||
<vcpu>2</vcpu>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>destroy</on_reboot>
|
||||
<on_crash>destroy</on_crash>
|
||||
<devices>
|
||||
<disk type="file" device="disk">
|
||||
<source file="/root/some.img"/>
|
||||
<target dev="xvda"/>
|
||||
</disk>
|
||||
<console tty="/dev/pts/4"/>
|
||||
</devices>
|
||||
</domain>
|
||||
Reference in New Issue
Block a user