mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-27 03:21:44 +03:00
f04b284f21
Moves the libxml2 bits to a separate xmlapi file and class, a bunch of cleanups to xmlbuilder internals dealing with XML stuff. The main point is to experiment with different XML library impls, since libxml2 is unfun to deal with and we are having python3 issues like https://bugzilla.gnome.org/show_bug.cgi?id=776815
56 lines
1.6 KiB
XML
56 lines
1.6 KiB
XML
<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>destroy</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>
|
|
<disk type='block' device='disk'>
|
|
<source dev='/dev/HostVG/QEMUGuest2'/>
|
|
<target dev='hdb' bus='ide'/>
|
|
<address type='drive' controller='4' bus='5' unit='33'/>
|
|
</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>
|
|
<memory model='nvdimm' access='private'>
|
|
<source>
|
|
<path>/tmp/nvdimm</path>
|
|
</source>
|
|
<target>
|
|
<size unit='KiB'>523264</size>
|
|
<node>0</node>
|
|
<label>
|
|
<size unit='KiB'>128</size>
|
|
</label>
|
|
</target>
|
|
<address type='dimm' slot='0'/>
|
|
</memory>
|
|
</devices>
|
|
</domain>
|