mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-11 05:17:59 +03:00
4238e3f7d7
If an OS has a <minimum> resources section, and a <recommended> resources section, but there's a field in the former that isn't in the latter, currently we throw out the former field entirely. This is the case for n-cpus for a few OS. Instead we should be using the <minimum> ncpus value. This changes the default <vcpu> value for a quite a few test cases.
64 lines
2.0 KiB
XML
64 lines
2.0 KiB
XML
<domain type="xen">
|
|
<name>foobar</name>
|
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
|
<metadata>
|
|
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
|
|
<libosinfo:os id="http://fedoraproject.org/fedora/17"/>
|
|
</libosinfo:libosinfo>
|
|
</metadata>
|
|
<memory>65536</memory>
|
|
<currentMemory>65536</currentMemory>
|
|
<vcpu>2</vcpu>
|
|
<os>
|
|
<type arch="x86_64" machine="xenpv">xen</type>
|
|
<kernel>/tmp/virtinst-vmlinuz.</kernel>
|
|
<initrd>/tmp/virtinst-initrd.img.</initrd>
|
|
<cmdline>method=tests/cli-test-xml/fakefedoratree</cmdline>
|
|
</os>
|
|
<on_reboot>destroy</on_reboot>
|
|
<devices>
|
|
<disk type="file" device="disk">
|
|
<driver name="qemu" type="qcow2"/>
|
|
<source file="/dev/default-pool/testvol1.img"/>
|
|
<target dev="xvda" bus="xen"/>
|
|
</disk>
|
|
<controller type="xenbus" index="0" maxGrantFrames="64"/>
|
|
<interface type="bridge">
|
|
<source bridge="eth0"/>
|
|
<mac address="00:11:22:33:44:55"/>
|
|
</interface>
|
|
<console type="pty"/>
|
|
<graphics type="vnc" port="-1"/>
|
|
</devices>
|
|
</domain>
|
|
<domain type="xen">
|
|
<name>foobar</name>
|
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
|
<metadata>
|
|
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
|
|
<libosinfo:os id="http://fedoraproject.org/fedora/17"/>
|
|
</libosinfo:libosinfo>
|
|
</metadata>
|
|
<memory>65536</memory>
|
|
<currentMemory>65536</currentMemory>
|
|
<vcpu>2</vcpu>
|
|
<os>
|
|
<type arch="x86_64" machine="xenpv">xen</type>
|
|
<boot dev="hd"/>
|
|
</os>
|
|
<devices>
|
|
<disk type="file" device="disk">
|
|
<driver name="qemu" type="qcow2"/>
|
|
<source file="/dev/default-pool/testvol1.img"/>
|
|
<target dev="xvda" bus="xen"/>
|
|
</disk>
|
|
<controller type="xenbus" index="0" maxGrantFrames="64"/>
|
|
<interface type="bridge">
|
|
<source bridge="eth0"/>
|
|
<mac address="00:11:22:33:44:55"/>
|
|
</interface>
|
|
<console type="pty"/>
|
|
<graphics type="vnc" port="-1"/>
|
|
</devices>
|
|
</domain>
|