mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-11 05:17:59 +03:00
51663a2c8c
The Guest object passed in by the user is no longer altered in place, instead we act on copies of the original XML. We need to rework how unattended/cloudinit device altering works a bit to handle this. There's some XML churn because working on parsexml gives different output ordering, but this is expected. Signed-off-by: Cole Robinson <crobinso@redhat.com>
147 lines
4.9 KiB
XML
147 lines
4.9 KiB
XML
<domain type="kvm">
|
|
<name>fedora</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/unknown"/>
|
|
</libosinfo:libosinfo>
|
|
</metadata>
|
|
<memory>65536</memory>
|
|
<currentMemory>65536</currentMemory>
|
|
<vcpu>2</vcpu>
|
|
<os>
|
|
<type arch="x86_64" machine="q35">hvm</type>
|
|
<cmdline>console=ttyS0</cmdline>
|
|
<kernel>/VIRTINST-TESTSUITE/vmlinuz</kernel>
|
|
<initrd>/VIRTINST-TESTSUITE/initrd.img</initrd>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
<vmport state="off"/>
|
|
</features>
|
|
<cpu mode="host-model"/>
|
|
<clock offset="utc">
|
|
<timer name="rtc" tickpolicy="catchup"/>
|
|
<timer name="pit" tickpolicy="delay"/>
|
|
<timer name="hpet" present="no"/>
|
|
</clock>
|
|
<pm>
|
|
<suspend-to-mem enabled="no"/>
|
|
<suspend-to-disk enabled="no"/>
|
|
</pm>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
|
<disk type="file" device="disk">
|
|
<driver name="qemu" type="qcow2"/>
|
|
<source file="/pool-dir/testvol1.img"/>
|
|
<target dev="vda" bus="virtio"/>
|
|
</disk>
|
|
<controller type="usb" model="qemu-xhci" ports="15"/>
|
|
<controller type="pci" model="pcie-root"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<interface type="bridge">
|
|
<source bridge="testsuitebr0"/>
|
|
<mac address="00:11:22:33:44:55"/>
|
|
<model type="virtio"/>
|
|
</interface>
|
|
<input type="tablet" bus="usb"/>
|
|
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
|
|
<image compression="off"/>
|
|
</graphics>
|
|
<video>
|
|
<model type="virtio"/>
|
|
</video>
|
|
<memballoon model="virtio"/>
|
|
<rng model="virtio">
|
|
<backend model="random">/dev/urandom</backend>
|
|
</rng>
|
|
</devices>
|
|
<on_reboot>destroy</on_reboot>
|
|
</domain>
|
|
<domain type="kvm">
|
|
<name>fedora</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/unknown"/>
|
|
</libosinfo:libosinfo>
|
|
</metadata>
|
|
<memory>65536</memory>
|
|
<currentMemory>65536</currentMemory>
|
|
<vcpu>2</vcpu>
|
|
<os>
|
|
<type arch="x86_64" machine="q35">hvm</type>
|
|
<cmdline>foo bar baz</cmdline>
|
|
<boot dev="hd"/>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
<vmport state="off"/>
|
|
</features>
|
|
<cpu mode="host-model"/>
|
|
<clock offset="utc">
|
|
<timer name="rtc" tickpolicy="catchup"/>
|
|
<timer name="pit" tickpolicy="delay"/>
|
|
<timer name="hpet" present="no"/>
|
|
</clock>
|
|
<pm>
|
|
<suspend-to-mem enabled="no"/>
|
|
<suspend-to-disk enabled="no"/>
|
|
</pm>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
|
<disk type="file" device="disk">
|
|
<driver name="qemu" type="qcow2"/>
|
|
<source file="/pool-dir/testvol1.img"/>
|
|
<target dev="vda" bus="virtio"/>
|
|
</disk>
|
|
<controller type="usb" model="qemu-xhci" ports="15"/>
|
|
<controller type="pci" model="pcie-root"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<controller type="pci" model="pcie-root-port"/>
|
|
<interface type="bridge">
|
|
<source bridge="testsuitebr0"/>
|
|
<mac address="00:11:22:33:44:55"/>
|
|
<model type="virtio"/>
|
|
</interface>
|
|
<input type="tablet" bus="usb"/>
|
|
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
|
|
<image compression="off"/>
|
|
</graphics>
|
|
<video>
|
|
<model type="virtio"/>
|
|
</video>
|
|
<memballoon model="virtio"/>
|
|
<rng model="virtio">
|
|
<backend model="random">/dev/urandom</backend>
|
|
</rng>
|
|
</devices>
|
|
</domain>
|