mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-10 01:18:03 +03:00
cff8e32c55
libvirt commit 136ad49740f017aabcac48d02d2df6ab7b0195e9 introduce ./hugepages/page/[@size, @unit, @nodeset] for memory backing. This patch will add support in virt-install. Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
113 lines
3.2 KiB
XML
113 lines
3.2 KiB
XML
<domain type="test" id="1234">
|
|
<name>change_name</name>
|
|
<currentMemory>1024000</currentMemory>
|
|
<memory>2048000</memory>
|
|
<uuid>11111111-2222-3333-4444-555555555555</uuid>
|
|
<os>
|
|
<type machine="pc-0.11">xen</type>
|
|
<loader>/foo/loader</loader>
|
|
<boot dev="fd"/>
|
|
<init>/sbin/init</init>
|
|
<bootmenu enable="no"/>
|
|
<bios useserial="yes"/>
|
|
<initarg>foo</initarg>
|
|
<initarg>bar baz</initarg>
|
|
<initarg>frib</initarg>
|
|
</os>
|
|
<features><apic eoi="on"/>
|
|
<hyperv>
|
|
<spinlocks state="on" retries="54321"/>
|
|
<relaxed state="on"/>
|
|
</hyperv>
|
|
<viridian/>
|
|
</features>
|
|
<numatune>
|
|
<memory nodeset="2,4,6"/>
|
|
</numatune>
|
|
<cpu match="strict" mode="custom">
|
|
<model>qemu64</model>
|
|
<vendor>qemuvendor</vendor>
|
|
<topology sockets="4" cores="3" threads="1"/>
|
|
<feature policy="disable" name="x2apic"/>
|
|
<feature policy="forbid" name="lahf_lm"/>
|
|
<feature policy="optional" name="cr8legacy"/>
|
|
<feature policy="require" name="addfeature"/>
|
|
</cpu>
|
|
<clock offset="localtime">
|
|
<timer name="rtc" tickpolicy="merge"/>
|
|
<timer name="hpet" present="no"/>
|
|
</clock>
|
|
<on_poweroff>restart</on_poweroff>
|
|
<on_reboot>destroy</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<pm>
|
|
<suspend-to-mem enabled="yes"/>
|
|
<suspend-to-disk enabled="no"/>
|
|
</pm>
|
|
<vcpu cpuset="1-5,15" current="10">12</vcpu>
|
|
<devices>
|
|
<emulator>/usr/binnnn/fooemu</emulator>
|
|
<disk type="file" device="floppy">
|
|
<driver name="qemu" type="qcow2"/>
|
|
<source file="/dev/default-pool/testvol1.img"/>
|
|
<target dev="fda" bus="fdc"/>
|
|
</disk>
|
|
<disk type="file" device="disk">
|
|
<driver name="qemu" type="raw"/>
|
|
<source file="/tmp/test.img"/>
|
|
<target dev="vda" bus="virtio"/>
|
|
</disk>
|
|
<disk type="block" device="disk">
|
|
<driver name="qemu"/>
|
|
<source dev="/dev/null"/>
|
|
<target dev="vdb" bus="virtio"/>
|
|
</disk>
|
|
<disk type="block" device="cdrom">
|
|
<target dev="hdc" bus="ide"/>
|
|
<readonly/>
|
|
</disk>
|
|
<interface type="network">
|
|
<source network="default"/>
|
|
<mac address="22:22:33:44:55:66"/>
|
|
<model type="virtio"/>
|
|
</interface>
|
|
<graphics type="vnc" display=":3.4" xauth="/tmp/.Xauthority"/>
|
|
<console type="pty"/>
|
|
<memballoon model="none"/>
|
|
</devices>
|
|
<seclabel type="static" model="apparmor" relabel="yes">
|
|
<label>barlabel</label>
|
|
<imagelabel>fooimage</imagelabel>
|
|
</seclabel>
|
|
<title>Hey title changed!</title>
|
|
<description>Hey desc changed&</description>
|
|
<blkiotune>
|
|
<weight>200</weight>
|
|
<device>
|
|
<path>/home/1.img</path>
|
|
<weight>300</weight>
|
|
</device>
|
|
</blkiotune>
|
|
<memtune>
|
|
<hard_limit>2048</hard_limit>
|
|
<soft_limit>200</soft_limit>
|
|
<swap_hard_limit>400</swap_hard_limit>
|
|
<min_guarantee>500</min_guarantee>
|
|
</memtune>
|
|
<memoryBacking>
|
|
<hugepages>
|
|
<page size="1" unit="G" nodeset="1,5-8"/>
|
|
</hugepages>
|
|
<nosharepages/>
|
|
<locked/>
|
|
</memoryBacking>
|
|
<bootloader>pygrub</bootloader>
|
|
<idmap>
|
|
<uid start="0" target="1000" count="10"/>
|
|
<gid start="0" target="1000" count="10"/>
|
|
</idmap>
|
|
<resource>
|
|
<partition>/virtualmachines/production</partition>
|
|
</resource>
|
|
</domain>
|