mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 20:01:16 +00:00
546154e3d4
This patch implements formating and parsing code for the backing store schema defined and documented by the previous patch. This patch does not aim at providing full persistent storage of disk backing chains yet. The formatter is supposed to provide the backing chain detected when starting a domain and thus it is not formatted into an inactive domain XML. The parser is implemented mainly for the purpose of testing the XML generated by the formatter and thus it does not distinguish between no backingStore element and an empty backingStore element. This will have to change once we fully implement support for user-supplied backing chains. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
36 lines
1.0 KiB
XML
36 lines
1.0 KiB
XML
<domain type='xen' id='1'>
|
|
<name>s10u4</name>
|
|
<uuid>fde0533d-d043-88c6-dfba-4822fa32f309</uuid>
|
|
<memory unit='KiB'>1048576</memory>
|
|
<currentMemory unit='KiB'>1048576</currentMemory>
|
|
<vcpu placement='static'>1</vcpu>
|
|
<os>
|
|
<type>hvm</type>
|
|
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
|
<boot dev='hd'/>
|
|
</os>
|
|
<features>
|
|
<pae/>
|
|
</features>
|
|
<clock offset='utc' adjustment='reset'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>restart</on_crash>
|
|
<devices>
|
|
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
|
<interface type='ethernet'>
|
|
<target dev='vif1.0'/>
|
|
<mac address='00:16:3e:3b:b9:d7'/>
|
|
<script path='vif-vnic'/>
|
|
</interface>
|
|
<disk type='block' device='disk'>
|
|
<driver name='phy'/>
|
|
<source dev='/dev/zvol/dsk/export/s10u4-root'/>
|
|
<backingStore/>
|
|
<target dev='hda' bus='ide'/>
|
|
</disk>
|
|
<input type='mouse' bus='ps2'/>
|
|
<graphics type='vnc' port='-1' keymap='en-us'/>
|
|
</devices>
|
|
</domain>
|