mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +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>
142 lines
4.8 KiB
XML
142 lines
4.8 KiB
XML
<domain type="kvm">
|
|
<name>fedora26</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/26"/>
|
|
</libosinfo:libosinfo>
|
|
</metadata>
|
|
<memory>65536</memory>
|
|
<currentMemory>65536</currentMemory>
|
|
<vcpu>2</vcpu>
|
|
<os>
|
|
<type arch="x86_64" machine="q35">hvm</type>
|
|
<kernel>/VIRTINST-TESTSUITE/vmlinuz</kernel>
|
|
<initrd>/VIRTINST-TESTSUITE/initrd.img</initrd>
|
|
<cmdline>ks=file:/fedora.ks</cmdline>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
</features>
|
|
<cpu mode="host-passthrough"/>
|
|
<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="cdrom">
|
|
<driver name="qemu"/>
|
|
<source file="TESTSUITE_SCRUBBED/tests/data/fakemedia/fake-f26-netinst.iso"/>
|
|
<target dev="sda" bus="sata"/>
|
|
<readonly/>
|
|
</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>
|
|
<console type="pty"/>
|
|
<channel type="unix">
|
|
<source mode="bind"/>
|
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
|
</channel>
|
|
<memballoon model="virtio"/>
|
|
<rng model="virtio">
|
|
<backend model="random">/dev/urandom</backend>
|
|
</rng>
|
|
</devices>
|
|
<on_reboot>destroy</on_reboot>
|
|
</domain>
|
|
<domain type="kvm">
|
|
<name>fedora26</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/26"/>
|
|
</libosinfo:libosinfo>
|
|
</metadata>
|
|
<memory>65536</memory>
|
|
<currentMemory>65536</currentMemory>
|
|
<vcpu>2</vcpu>
|
|
<os>
|
|
<type arch="x86_64" machine="q35">hvm</type>
|
|
<boot dev="cdrom"/>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
</features>
|
|
<cpu mode="host-passthrough"/>
|
|
<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="cdrom">
|
|
<driver name="qemu"/>
|
|
<source file="TESTSUITE_SCRUBBED/tests/data/fakemedia/fake-f26-netinst.iso"/>
|
|
<target dev="sda" bus="sata"/>
|
|
<readonly/>
|
|
</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>
|
|
<console type="pty"/>
|
|
<channel type="unix">
|
|
<source mode="bind"/>
|
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
|
</channel>
|
|
<memballoon model="virtio"/>
|
|
<rng model="virtio">
|
|
<backend model="random">/dev/urandom</backend>
|
|
</rng>
|
|
</devices>
|
|
</domain>
|