sushy-tools/sushy_tools/tests/unit/emulator/domain_bios.xml
Aija Jaunteva acd170e61e Add BIOS resource support
Emulates BIOS support for libvirt driver by storing custom
XML with BIOS attributes in libvirt Domain XML.

For now it supports getting attributes, updating
attributes, resetting to default.

This does not support changing password yet, but can be added
later.

This does not support getting attribute update status, because
this is not implemented in sushy library yet. Can be added after
this is implemented in sushy.

Test structure depends and is based on other patches to be merged:
I02725332df886fdf6b13c98cb6d80ab3650575b9 and
I82032fd13a74d9aa77616dac3802d506b4a9c1cf.

Change-Id: I3b9e7683934e4448bedf3933f1a2fe222d70c208
Story: 2001791
Task: 22264
2018-07-25 19:51:13 +03:00

30 lines
1.1 KiB
XML

<domain type='qemu'
xmlns:sushy="http://openstack.org/xmlns/libvirt/sushy">
<name>QEmu-fedora-i686</name>
<uuid>c7a5fdbd-cdaf-9455-926a-d65c16db1809</uuid>
<memory>219200</memory>
<currentMemory>219200</currentMemory>
<vcpu>2</vcpu>
<os>
<type arch='i686' machine='pc'>hvm</type>
<boot dev='cdrom'/>
<loader type='rom'/>
</os>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type='file' device='cdrom'>
<source file='/home/user/boot.iso'/>
<target dev='hdc'/>
<readonly/>
</disk>
<disk type='file' device='disk'>
<source file='/home/user/fedora.img'/>
<target dev='hda'/>
</disk>
<interface type='network'>
<source network='default'/>
</interface>
<graphics type='vnc' port='-1'/>
</devices>
<metadata><sushy:bios><sushy:attributes><sushy:attribute name="BootMode" value="Bios" /><sushy:attribute name="EmbeddedSata" value="Raid" /><sushy:attribute name="NicBoot1" value="NetworkBoot" /><sushy:attribute name="ProcTurboMode" value="Disabled" /></sushy:attributes></sushy:bios></metadata></domain>