mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
289 lines
8.8 KiB
XML
289 lines
8.8 KiB
XML
<domain type="test">
|
|
<name>foobar</name>
|
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
|
<memory>65536</memory>
|
|
<currentMemory>65536</currentMemory>
|
|
<vcpu>1</vcpu>
|
|
<numatune>
|
|
<memory mode="preferred" nodeset="1-3,5"/>
|
|
</numatune>
|
|
<blkiotune>
|
|
<weight>200</weight>
|
|
<device>
|
|
<path>/dev/sdc</path>
|
|
<weight>300</weight>
|
|
</device>
|
|
</blkiotune>
|
|
<os>
|
|
<type arch="i686">hvm</type>
|
|
<loader>/foo/bar</loader>
|
|
</os>
|
|
<idmap>
|
|
<uid start="0" target="1000" count="10"/>
|
|
<gid start="0" target="1000" count="10"/>
|
|
</idmap>
|
|
<features>
|
|
<apic eoi="on"/>
|
|
<pae/>
|
|
<privnet/>
|
|
<hyperv>
|
|
<spinlocks state="on" retries="1234"/>
|
|
</hyperv>
|
|
</features>
|
|
<clock offset="localtime">
|
|
<timer name="rtc" tickpolicy="merge"/>
|
|
<timer name="hpet" present="no"/>
|
|
</clock>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>destroy</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<pm>
|
|
<suspend-to-mem enabled="yes"/>
|
|
<suspend-to-disk enabled="no"/>
|
|
</pm>
|
|
<devices>
|
|
<emulator>/usr/bin/test-hv</emulator>
|
|
<disk type="file" device="disk">
|
|
<driver cache="writeback" io="threads"/>
|
|
<source file="/dev/default-pool/UPPER"/>
|
|
<target dev="hda" bus="ide"/>
|
|
<serial>WD-WMAP9A966149</serial>
|
|
<shareable/>
|
|
<boot order="2"/>
|
|
</disk>
|
|
<disk type="file" device="disk">
|
|
<driver discard="unmap" error_policy="enospace"/>
|
|
<source file="/dev/default-pool/new1.img"/>
|
|
<target dev="hdb" bus="ide"/>
|
|
<readonly/>
|
|
</disk>
|
|
<disk type="block" device="cdrom">
|
|
<target dev="sda" bus="sata"/>
|
|
<iotune>
|
|
<read_bytes_sec>1</read_bytes_sec>
|
|
<write_bytes_sec>5</write_bytes_sec>
|
|
<total_bytes_sec>10</total_bytes_sec>
|
|
<read_iops_sec>2</read_iops_sec>
|
|
<write_iops_sec>6</write_iops_sec>
|
|
<total_iops_sec>20</total_iops_sec>
|
|
</iotune>
|
|
<readonly/>
|
|
</disk>
|
|
<disk type="file" device="disk">
|
|
<source file="/var/lib/libvirt/images/foobar.qcow2"/>
|
|
<target dev="hdc" bus="ide"/>
|
|
</disk>
|
|
<controller type="usb" index="0" model="ich9-ehci1">
|
|
<address type="pci" domain="0" bus="0" slot="4" function="7"/>
|
|
</controller>
|
|
<controller type="usb" index="0" model="ich9-uhci1">
|
|
<master startport="0"/>
|
|
<address type="pci" domain="0" bus="0" slot="4" function="0" multifunction="on"/>
|
|
</controller>
|
|
<controller type="usb" index="0" model="ich9-uhci2">
|
|
<master startport="2"/>
|
|
<address type="pci" domain="0" bus="0" slot="4" function="1"/>
|
|
</controller>
|
|
<controller type="usb" index="0" model="ich9-uhci3">
|
|
<master startport="4"/>
|
|
<address type="pci" domain="0" bus="0" slot="4" function="2"/>
|
|
</controller>
|
|
<filesystem accessmode="squash">
|
|
<source dir="/source"/>
|
|
<target dir="/target"/>
|
|
</filesystem>
|
|
<interface type="user">
|
|
<mac address="12:34:56:78:11:22"/>
|
|
</interface>
|
|
<interface type="bridge">
|
|
<source bridge="foobar"/>
|
|
<mac address="00:11:22:33:44:55"/>
|
|
<model type="virtio"/>
|
|
<driver name="qemu" queues="3"/>
|
|
</interface>
|
|
<interface type="direct">
|
|
<source dev="eth5" mode="vepa"/>
|
|
<mac address="00:11:22:33:44:55"/>
|
|
<target dev="mytap12"/>
|
|
<virtualport type="802.1Qbg">
|
|
<parameters managerid="12" typeid="1193046" typeidversion="1" instanceid="09b11c53-8b5c-4eeb-8f00-d84eaa0aaa3b"/>
|
|
</virtualport>
|
|
<boot order="1"/>
|
|
</interface>
|
|
<input type="mouse" bus="ps2"/>
|
|
<serial type="tcp">
|
|
<source mode="bind" host="127.0.0.1" service="2222"/>
|
|
<protocol type="telnet"/>
|
|
</serial>
|
|
<channel type="spicevmc">
|
|
<target type="virtio" name="com.redhat.spice.0"/>
|
|
</channel>
|
|
<hostdev mode="subsystem" type="pci" managed="yes">
|
|
<source>
|
|
<address domain="0" bus="0" slot="25" function="0"/>
|
|
</source>
|
|
<rom bar="off"/>
|
|
<boot order="4"/>
|
|
</hostdev>
|
|
<smartcard mode="passthrough" type="spicevmc"/>
|
|
<redirdev bus="spicevmc" type="spicevmc">
|
|
<boot order="3"/>
|
|
</redirdev>
|
|
<tpm model="tpm-tis">
|
|
<backend type="passthrough">
|
|
<device path="/dev/tpm0"/>
|
|
</backend>
|
|
</tpm>
|
|
<panic>
|
|
<address type="isa" iobase="0x505"/>
|
|
</panic>
|
|
</devices>
|
|
<seclabel type="static" model="testSecurity" relabel="yes">
|
|
<label>system_u:object_r:svirt_image_t:s0:c100,c200</label>
|
|
</seclabel>
|
|
</domain>
|
|
<domain type="test">
|
|
<name>foobar</name>
|
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
|
<memory>65536</memory>
|
|
<currentMemory>65536</currentMemory>
|
|
<vcpu>1</vcpu>
|
|
<numatune>
|
|
<memory mode="preferred" nodeset="1-3,5"/>
|
|
</numatune>
|
|
<blkiotune>
|
|
<weight>200</weight>
|
|
<device>
|
|
<path>/dev/sdc</path>
|
|
<weight>300</weight>
|
|
</device>
|
|
</blkiotune>
|
|
<os>
|
|
<type arch="i686">hvm</type>
|
|
<loader>/foo/bar</loader>
|
|
</os>
|
|
<idmap>
|
|
<uid start="0" target="1000" count="10"/>
|
|
<gid start="0" target="1000" count="10"/>
|
|
</idmap>
|
|
<features>
|
|
<apic eoi="on"/>
|
|
<pae/>
|
|
<privnet/>
|
|
<hyperv>
|
|
<spinlocks state="on" retries="1234"/>
|
|
</hyperv>
|
|
</features>
|
|
<clock offset="localtime">
|
|
<timer name="rtc" tickpolicy="merge"/>
|
|
<timer name="hpet" present="no"/>
|
|
</clock>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>restart</on_crash>
|
|
<pm>
|
|
<suspend-to-mem enabled="yes"/>
|
|
<suspend-to-disk enabled="no"/>
|
|
</pm>
|
|
<devices>
|
|
<emulator>/usr/bin/test-hv</emulator>
|
|
<disk type="file" device="disk">
|
|
<driver cache="writeback" io="threads"/>
|
|
<source file="/dev/default-pool/UPPER"/>
|
|
<target dev="hda" bus="ide"/>
|
|
<serial>WD-WMAP9A966149</serial>
|
|
<shareable/>
|
|
<boot order="2"/>
|
|
</disk>
|
|
<disk type="file" device="disk">
|
|
<driver discard="unmap" error_policy="enospace"/>
|
|
<source file="/dev/default-pool/new1.img"/>
|
|
<target dev="hdb" bus="ide"/>
|
|
<readonly/>
|
|
</disk>
|
|
<disk type="block" device="cdrom">
|
|
<target dev="sda" bus="sata"/>
|
|
<iotune>
|
|
<read_bytes_sec>1</read_bytes_sec>
|
|
<write_bytes_sec>5</write_bytes_sec>
|
|
<total_bytes_sec>10</total_bytes_sec>
|
|
<read_iops_sec>2</read_iops_sec>
|
|
<write_iops_sec>6</write_iops_sec>
|
|
<total_iops_sec>20</total_iops_sec>
|
|
</iotune>
|
|
<readonly/>
|
|
</disk>
|
|
<disk type="file" device="disk">
|
|
<source file="/var/lib/libvirt/images/foobar.qcow2"/>
|
|
<target dev="hdc" bus="ide"/>
|
|
</disk>
|
|
<controller type="usb" index="0" model="ich9-ehci1">
|
|
<address type="pci" domain="0" bus="0" slot="4" function="7"/>
|
|
</controller>
|
|
<controller type="usb" index="0" model="ich9-uhci1">
|
|
<master startport="0"/>
|
|
<address type="pci" domain="0" bus="0" slot="4" function="0" multifunction="on"/>
|
|
</controller>
|
|
<controller type="usb" index="0" model="ich9-uhci2">
|
|
<master startport="2"/>
|
|
<address type="pci" domain="0" bus="0" slot="4" function="1"/>
|
|
</controller>
|
|
<controller type="usb" index="0" model="ich9-uhci3">
|
|
<master startport="4"/>
|
|
<address type="pci" domain="0" bus="0" slot="4" function="2"/>
|
|
</controller>
|
|
<filesystem accessmode="squash">
|
|
<source dir="/source"/>
|
|
<target dir="/target"/>
|
|
</filesystem>
|
|
<interface type="user">
|
|
<mac address="12:34:56:78:11:22"/>
|
|
</interface>
|
|
<interface type="bridge">
|
|
<source bridge="foobar"/>
|
|
<mac address="00:11:22:33:44:55"/>
|
|
<model type="virtio"/>
|
|
<driver name="qemu" queues="3"/>
|
|
</interface>
|
|
<interface type="direct">
|
|
<source dev="eth5" mode="vepa"/>
|
|
<mac address="00:11:22:33:44:55"/>
|
|
<target dev="mytap12"/>
|
|
<virtualport type="802.1Qbg">
|
|
<parameters managerid="12" typeid="1193046" typeidversion="1" instanceid="09b11c53-8b5c-4eeb-8f00-d84eaa0aaa3b"/>
|
|
</virtualport>
|
|
<boot order="1"/>
|
|
</interface>
|
|
<input type="mouse" bus="ps2"/>
|
|
<serial type="tcp">
|
|
<source mode="bind" host="127.0.0.1" service="2222"/>
|
|
<protocol type="telnet"/>
|
|
</serial>
|
|
<channel type="spicevmc">
|
|
<target type="virtio" name="com.redhat.spice.0"/>
|
|
</channel>
|
|
<hostdev mode="subsystem" type="pci" managed="yes">
|
|
<source>
|
|
<address domain="0" bus="0" slot="25" function="0"/>
|
|
</source>
|
|
<rom bar="off"/>
|
|
<boot order="4"/>
|
|
</hostdev>
|
|
<smartcard mode="passthrough" type="spicevmc"/>
|
|
<redirdev bus="spicevmc" type="spicevmc">
|
|
<boot order="3"/>
|
|
</redirdev>
|
|
<tpm model="tpm-tis">
|
|
<backend type="passthrough">
|
|
<device path="/dev/tpm0"/>
|
|
</backend>
|
|
</tpm>
|
|
<panic>
|
|
<address type="isa" iobase="0x505"/>
|
|
</panic>
|
|
</devices>
|
|
<seclabel type="static" model="testSecurity" relabel="yes">
|
|
<label>system_u:object_r:svirt_image_t:s0:c100,c200</label>
|
|
</seclabel>
|
|
</domain>
|