mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-25 06:03:55 +03:00
dcd632da80
This is the first step towards unifying the XML handling split between parsing and creating from scratch. Demonstrate it with VirtualDisk.iotune bits.
70 lines
2.0 KiB
XML
70 lines
2.0 KiB
XML
<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"/>
|
|
<iotune>
|
|
<read_iops_sec>1</read_iops_sec>
|
|
<read_bytes_sec>2</read_bytes_sec>
|
|
<write_iops_sec>3</write_iops_sec>
|
|
<write_bytes_sec>4</write_bytes_sec>
|
|
</iotune>
|
|
</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>
|