434 lines
13 KiB
XML
434 lines
13 KiB
XML
<domain type="kvm">
|
|
<name>fedora</name>
|
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
|
<genid>e9392370-2917-565e-692b-d057f46512d6</genid>
|
|
<title>my-title</title>
|
|
<description>my-description</description>
|
|
<metadata>
|
|
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
|
|
<libosinfo:os id="http://fedoraproject.org/fedora/unknown"/>
|
|
</libosinfo:libosinfo>
|
|
</metadata>
|
|
<iothreads>2</iothreads>
|
|
<iothreadids>
|
|
<iothread id="1"/>
|
|
<iothread id="2"/>
|
|
</iothreadids>
|
|
<memory>1048576</memory>
|
|
<currentMemory>524288</currentMemory>
|
|
<blkiotune>
|
|
<weight>100</weight>
|
|
<device>
|
|
<path>/home/test/1.img</path>
|
|
<weight>200</weight>
|
|
</device>
|
|
</blkiotune>
|
|
<memtune>
|
|
<hard_limit>10</hard_limit>
|
|
<soft_limit>20</soft_limit>
|
|
<swap_hard_limit>30</swap_hard_limit>
|
|
<min_guarantee>40</min_guarantee>
|
|
</memtune>
|
|
<memoryBacking>
|
|
<nosharepages/>
|
|
<locked/>
|
|
<hugepages>
|
|
<page size="12" unit="G" nodeset="0,1"/>
|
|
<page size="1234" unit="MB" nodeset="2"/>
|
|
</hugepages>
|
|
<access mode="shared"/>
|
|
<source type="file"/>
|
|
<discard/>
|
|
<allocation mode="immediate"/>
|
|
</memoryBacking>
|
|
<vcpu>9</vcpu>
|
|
<numatune>
|
|
<memory mode="strict" nodeset="1-3,4"/>
|
|
<memnode cellid="1" mode="strict" nodeset="2"/>
|
|
</numatune>
|
|
<resource>
|
|
<partition>/virtualmachines/production</partition>
|
|
</resource>
|
|
<sysinfo type="smbios">
|
|
<bios>
|
|
<entry name="vendor">Acme LLC</entry>
|
|
<entry name="version">1.2.3</entry>
|
|
<entry name="date">01/01/1970</entry>
|
|
<entry name="release">10.22</entry>
|
|
</bios>
|
|
<system>
|
|
<entry name="manufacturer">Acme Inc.</entry>
|
|
<entry name="product">Computer</entry>
|
|
<entry name="version">3.2.1</entry>
|
|
<entry name="serial">123456789</entry>
|
|
<entry name="uuid">00000000-1111-2222-3333-444444444444</entry>
|
|
<entry name="sku">abc-123</entry>
|
|
<entry name="family">Server</entry>
|
|
</system>
|
|
<baseBoard>
|
|
<entry name="manufacturer">Acme Corp.</entry>
|
|
<entry name="product">Motherboard</entry>
|
|
<entry name="version">A01</entry>
|
|
<entry name="serial">1234-5678</entry>
|
|
<entry name="asset">Tag</entry>
|
|
<entry name="location">Chassis</entry>
|
|
</baseBoard>
|
|
<chassis>
|
|
<entry name="manufacturer">Chassis Corp.</entry>
|
|
<entry name="version">4.0</entry>
|
|
<entry name="serial">1234chassis</entry>
|
|
<entry name="asset">chasset</entry>
|
|
<entry name="sku">chassku</entry>
|
|
</chassis>
|
|
<oemStrings>
|
|
<entry>test0</entry>
|
|
<entry>test1</entry>
|
|
<entry>complicated parsing, foo=bar</entry>
|
|
</oemStrings>
|
|
</sysinfo>
|
|
<bootloader>/new/bootld</bootloader>
|
|
<os firmware="efi">
|
|
<type arch="x86_64" machine="q35">hvm</type>
|
|
<loader>/foo/bar</loader>
|
|
<boot dev="network"/>
|
|
<smbios mode="sysinfo"/>
|
|
<bootmenu enable="no"/>
|
|
<bios rebootTimeout="3"/>
|
|
<initarg>foo=bar</initarg>
|
|
<initarg>baz=woo</initarg>
|
|
</os>
|
|
<idmap>
|
|
<uid start="0" target="1000" count="10"/>
|
|
<gid start="0" target="1000" count="10"/>
|
|
</idmap>
|
|
<features>
|
|
<apic eoi="on"/>
|
|
<privnet/>
|
|
<pmu state="off"/>
|
|
<hyperv>
|
|
<reset state="on"/>
|
|
<vapic state="on"/>
|
|
<spinlocks state="on" retries="5678"/>
|
|
<synic state="on"/>
|
|
</hyperv>
|
|
<vmport state="off"/>
|
|
<kvm>
|
|
<hidden state="off"/>
|
|
</kvm>
|
|
<vmcoreinfo state="on"/>
|
|
</features>
|
|
<cpu mode="custom" match="strict">
|
|
<model>foobar</model>
|
|
<vendor>meee</vendor>
|
|
<feature policy="force" name="x2apic"/>
|
|
<feature policy="force" name="x2apicagain"/>
|
|
<feature policy="require" name="reqtest"/>
|
|
<feature policy="optional" name="opttest"/>
|
|
<feature policy="disable" name="distest2"/>
|
|
<feature policy="disable" name="distest"/>
|
|
<feature policy="forbid" name="foo"/>
|
|
<feature policy="forbid" name="bar"/>
|
|
<cache mode="emulate" level="3"/>
|
|
<numa>
|
|
<cell id="0" cpus="1,2,3" memory="1024">
|
|
<distances>
|
|
<sibling id="0" value="10"/>
|
|
<sibling id="1" value="21"/>
|
|
</distances>
|
|
</cell>
|
|
<cell id="1" cpus="5-8" memory="256">
|
|
<distances>
|
|
<sibling id="0" value="21"/>
|
|
<sibling id="1" value="10"/>
|
|
</distances>
|
|
</cell>
|
|
<cell id="2" cpus="4" memory="256"/>
|
|
</numa>
|
|
</cpu>
|
|
<clock offset="utc">
|
|
<timer name="rtc" tickpolicy="merge"/>
|
|
<timer name="hpet" present="yes"/>
|
|
<timer name="hypervclock" present="no"/>
|
|
<timer name="pit" tickpolicy="delay"/>
|
|
</clock>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>destroy</on_reboot>
|
|
<on_crash>preserve</on_crash>
|
|
<pm>
|
|
<suspend-to-mem enabled="yes"/>
|
|
<suspend-to-disk enabled="no"/>
|
|
</pm>
|
|
<devices>
|
|
<emulator>/new/emu</emulator>
|
|
<controller type="usb" index="0" model="qemu-xhci" ports="15"/>
|
|
<controller type="scsi" index="0" model="virtio-scsi"/>
|
|
<filesystem type="mount" accessmode="mapped">
|
|
<source dir="/foo/source"/>
|
|
<target dir="/bar/target"/>
|
|
</filesystem>
|
|
<interface type="bridge">
|
|
<source bridge="testsuitebr0"/>
|
|
<mac address="00:11:22:33:44:55"/>
|
|
<model type="virtio"/>
|
|
</interface>
|
|
<console type="pty"/>
|
|
<channel type="unix">
|
|
<source mode="bind"/>
|
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
|
</channel>
|
|
<input type="tablet" bus="usb"/>
|
|
<tpm model="tpm-crb">
|
|
<backend type="passthrough">
|
|
<device path="/dev/tpm0"/>
|
|
</backend>
|
|
</tpm>
|
|
<graphics type="vnc" port="-1"/>
|
|
<video>
|
|
<model type="qxl"/>
|
|
</video>
|
|
<watchdog model="ib700" action="pause"/>
|
|
<memballoon model="virtio" autodeflate="on">
|
|
<stats period="10"/>
|
|
</memballoon>
|
|
<rng model="virtio">
|
|
<backend model="egd" type="udp">
|
|
<source mode="bind" host="127.0.0.1" service="8000"/>
|
|
<source mode="connect" host="foo" service="708"/>
|
|
</backend>
|
|
<rate bytes="1234" period="1000"/>
|
|
</rng>
|
|
<panic model="isa">
|
|
<address type="isa" iobase="0x506"/>
|
|
</panic>
|
|
</devices>
|
|
<seclabel type="static" model="selinux" relabel="yes">
|
|
<label>system_u:object_r:svirt_image_t:s0:c100,c200</label>
|
|
<baselabel>baselabel</baselabel>
|
|
</seclabel>
|
|
<seclabel type="dynamic" model="dac">
|
|
<label>012:345</label>
|
|
</seclabel>
|
|
<on_lockfailure>ignore</on_lockfailure>
|
|
<cputune>
|
|
<vcpupin vcpu="0" cpuset="0-3"/>
|
|
</cputune>
|
|
</domain>
|
|
<domain type="kvm">
|
|
<name>fedora</name>
|
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
|
<genid>e9392370-2917-565e-692b-d057f46512d6</genid>
|
|
<title>my-title</title>
|
|
<description>my-description</description>
|
|
<metadata>
|
|
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
|
|
<libosinfo:os id="http://fedoraproject.org/fedora/unknown"/>
|
|
</libosinfo:libosinfo>
|
|
</metadata>
|
|
<iothreads>2</iothreads>
|
|
<iothreadids>
|
|
<iothread id="1"/>
|
|
<iothread id="2"/>
|
|
</iothreadids>
|
|
<memory>1048576</memory>
|
|
<currentMemory>524288</currentMemory>
|
|
<blkiotune>
|
|
<weight>100</weight>
|
|
<device>
|
|
<path>/home/test/1.img</path>
|
|
<weight>200</weight>
|
|
</device>
|
|
</blkiotune>
|
|
<memtune>
|
|
<hard_limit>10</hard_limit>
|
|
<soft_limit>20</soft_limit>
|
|
<swap_hard_limit>30</swap_hard_limit>
|
|
<min_guarantee>40</min_guarantee>
|
|
</memtune>
|
|
<memoryBacking>
|
|
<nosharepages/>
|
|
<locked/>
|
|
<hugepages>
|
|
<page size="12" unit="G" nodeset="0,1"/>
|
|
<page size="1234" unit="MB" nodeset="2"/>
|
|
</hugepages>
|
|
<access mode="shared"/>
|
|
<source type="file"/>
|
|
<discard/>
|
|
<allocation mode="immediate"/>
|
|
</memoryBacking>
|
|
<vcpu>9</vcpu>
|
|
<numatune>
|
|
<memory mode="strict" nodeset="1-3,4"/>
|
|
<memnode cellid="1" mode="strict" nodeset="2"/>
|
|
</numatune>
|
|
<resource>
|
|
<partition>/virtualmachines/production</partition>
|
|
</resource>
|
|
<sysinfo type="smbios">
|
|
<bios>
|
|
<entry name="vendor">Acme LLC</entry>
|
|
<entry name="version">1.2.3</entry>
|
|
<entry name="date">01/01/1970</entry>
|
|
<entry name="release">10.22</entry>
|
|
</bios>
|
|
<system>
|
|
<entry name="manufacturer">Acme Inc.</entry>
|
|
<entry name="product">Computer</entry>
|
|
<entry name="version">3.2.1</entry>
|
|
<entry name="serial">123456789</entry>
|
|
<entry name="uuid">00000000-1111-2222-3333-444444444444</entry>
|
|
<entry name="sku">abc-123</entry>
|
|
<entry name="family">Server</entry>
|
|
</system>
|
|
<baseBoard>
|
|
<entry name="manufacturer">Acme Corp.</entry>
|
|
<entry name="product">Motherboard</entry>
|
|
<entry name="version">A01</entry>
|
|
<entry name="serial">1234-5678</entry>
|
|
<entry name="asset">Tag</entry>
|
|
<entry name="location">Chassis</entry>
|
|
</baseBoard>
|
|
<chassis>
|
|
<entry name="manufacturer">Chassis Corp.</entry>
|
|
<entry name="version">4.0</entry>
|
|
<entry name="serial">1234chassis</entry>
|
|
<entry name="asset">chasset</entry>
|
|
<entry name="sku">chassku</entry>
|
|
</chassis>
|
|
<oemStrings>
|
|
<entry>test0</entry>
|
|
<entry>test1</entry>
|
|
<entry>complicated parsing, foo=bar</entry>
|
|
</oemStrings>
|
|
</sysinfo>
|
|
<bootloader>/new/bootld</bootloader>
|
|
<os firmware="efi">
|
|
<type arch="x86_64" machine="q35">hvm</type>
|
|
<loader>/foo/bar</loader>
|
|
<boot dev="cdrom"/>
|
|
<boot dev="fd"/>
|
|
<boot dev="hd"/>
|
|
<boot dev="network"/>
|
|
<smbios mode="sysinfo"/>
|
|
<bootmenu enable="no"/>
|
|
<bios rebootTimeout="3"/>
|
|
<initarg>foo=bar</initarg>
|
|
<initarg>baz=woo</initarg>
|
|
</os>
|
|
<idmap>
|
|
<uid start="0" target="1000" count="10"/>
|
|
<gid start="0" target="1000" count="10"/>
|
|
</idmap>
|
|
<features>
|
|
<apic eoi="on"/>
|
|
<privnet/>
|
|
<pmu state="off"/>
|
|
<hyperv>
|
|
<reset state="on"/>
|
|
<vapic state="on"/>
|
|
<spinlocks state="on" retries="5678"/>
|
|
<synic state="on"/>
|
|
</hyperv>
|
|
<vmport state="off"/>
|
|
<kvm>
|
|
<hidden state="off"/>
|
|
</kvm>
|
|
<vmcoreinfo state="on"/>
|
|
</features>
|
|
<cpu mode="custom" match="strict">
|
|
<model>foobar</model>
|
|
<vendor>meee</vendor>
|
|
<feature policy="force" name="x2apic"/>
|
|
<feature policy="force" name="x2apicagain"/>
|
|
<feature policy="require" name="reqtest"/>
|
|
<feature policy="optional" name="opttest"/>
|
|
<feature policy="disable" name="distest2"/>
|
|
<feature policy="disable" name="distest"/>
|
|
<feature policy="forbid" name="foo"/>
|
|
<feature policy="forbid" name="bar"/>
|
|
<cache mode="emulate" level="3"/>
|
|
<numa>
|
|
<cell id="0" cpus="1,2,3" memory="1024">
|
|
<distances>
|
|
<sibling id="0" value="10"/>
|
|
<sibling id="1" value="21"/>
|
|
</distances>
|
|
</cell>
|
|
<cell id="1" cpus="5-8" memory="256">
|
|
<distances>
|
|
<sibling id="0" value="21"/>
|
|
<sibling id="1" value="10"/>
|
|
</distances>
|
|
</cell>
|
|
<cell id="2" cpus="4" memory="256"/>
|
|
</numa>
|
|
</cpu>
|
|
<clock offset="utc">
|
|
<timer name="rtc" tickpolicy="merge"/>
|
|
<timer name="hpet" present="yes"/>
|
|
<timer name="hypervclock" present="no"/>
|
|
<timer name="pit" tickpolicy="delay"/>
|
|
</clock>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>preserve</on_crash>
|
|
<pm>
|
|
<suspend-to-mem enabled="yes"/>
|
|
<suspend-to-disk enabled="no"/>
|
|
</pm>
|
|
<devices>
|
|
<emulator>/new/emu</emulator>
|
|
<controller type="usb" index="0" model="qemu-xhci" ports="15"/>
|
|
<controller type="scsi" index="0" model="virtio-scsi"/>
|
|
<filesystem type="mount" accessmode="mapped">
|
|
<source dir="/foo/source"/>
|
|
<target dir="/bar/target"/>
|
|
</filesystem>
|
|
<interface type="bridge">
|
|
<source bridge="testsuitebr0"/>
|
|
<mac address="00:11:22:33:44:55"/>
|
|
<model type="virtio"/>
|
|
</interface>
|
|
<console type="pty"/>
|
|
<channel type="unix">
|
|
<source mode="bind"/>
|
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
|
</channel>
|
|
<input type="tablet" bus="usb"/>
|
|
<tpm model="tpm-crb">
|
|
<backend type="passthrough">
|
|
<device path="/dev/tpm0"/>
|
|
</backend>
|
|
</tpm>
|
|
<graphics type="vnc" port="-1"/>
|
|
<video>
|
|
<model type="qxl"/>
|
|
</video>
|
|
<watchdog model="ib700" action="pause"/>
|
|
<memballoon model="virtio" autodeflate="on">
|
|
<stats period="10"/>
|
|
</memballoon>
|
|
<rng model="virtio">
|
|
<backend model="egd" type="udp">
|
|
<source mode="bind" host="127.0.0.1" service="8000"/>
|
|
<source mode="connect" host="foo" service="708"/>
|
|
</backend>
|
|
<rate bytes="1234" period="1000"/>
|
|
</rng>
|
|
<panic model="isa">
|
|
<address type="isa" iobase="0x506"/>
|
|
</panic>
|
|
</devices>
|
|
<seclabel type="static" model="selinux" relabel="yes">
|
|
<label>system_u:object_r:svirt_image_t:s0:c100,c200</label>
|
|
<baselabel>baselabel</baselabel>
|
|
</seclabel>
|
|
<seclabel type="dynamic" model="dac">
|
|
<label>012:345</label>
|
|
</seclabel>
|
|
<on_lockfailure>ignore</on_lockfailure>
|
|
<cputune>
|
|
<vcpupin vcpu="0" cpuset="0-3"/>
|
|
</cputune>
|
|
</domain>
|