mirror of
https://github.com/virt-manager/virt-manager.git
synced 2026-08-12 05:54:53 -05:00
We are just mirroring the behavior that virt-manager (and boxes) have used for a while now. In my experience the average user is confused by their VMs suspending, so for our sake I'd rather make people opt into this feature.
75 lines
2.1 KiB
Plaintext
75 lines
2.1 KiB
Plaintext
<domain type="kvm">
|
|
<name>fedora</name>
|
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
|
<memory>524288</memory>
|
|
<currentMemory>524288</currentMemory>
|
|
<vcpu>1</vcpu>
|
|
<os>
|
|
<type arch="x86_64">hvm</type>
|
|
<boot dev="hd"/>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
<pae/>
|
|
</features>
|
|
<cpu mode="custom" match="exact">
|
|
<model>core2duo</model>
|
|
</cpu>
|
|
<clock offset="utc">
|
|
<timer name="rtc" tickpolicy="catchup"/>
|
|
<timer name="pit" tickpolicy="delay"/>
|
|
<timer name="hpet" present="no"/>
|
|
</clock>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>restart</on_crash>
|
|
<pm>
|
|
<suspend-to-mem enabled="no"/>
|
|
<suspend-to-disk enabled="no"/>
|
|
</pm>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-kvm</emulator>
|
|
<disk type="file" device="disk">
|
|
<driver name="qemu" type="raw"/>
|
|
<source file="/var/lib/libvirt/images/fedora.raw"/>
|
|
<target dev="sda" bus="scsi"/>
|
|
</disk>
|
|
<disk type="block" device="cdrom">
|
|
<target dev="hda" bus="ide"/>
|
|
<readonly/>
|
|
</disk>
|
|
<controller type="usb" index="0" model="ich9-ehci1"/>
|
|
<controller type="usb" index="0" model="ich9-uhci1">
|
|
<master startport="0"/>
|
|
</controller>
|
|
<controller type="usb" index="0" model="ich9-uhci2">
|
|
<master startport="2"/>
|
|
</controller>
|
|
<controller type="usb" index="0" model="ich9-uhci3">
|
|
<master startport="4"/>
|
|
</controller>
|
|
<interface type="bridge">
|
|
<source bridge="eth0"/>
|
|
<mac address="00:11:22:33:44:55"/>
|
|
</interface>
|
|
<input type="mouse" bus="ps2"/>
|
|
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
|
|
<image compression="off"/>
|
|
</graphics>
|
|
<console type="pty"/>
|
|
<channel type="spicevmc">
|
|
<target type="virtio" name="com.redhat.spice.0"/>
|
|
</channel>
|
|
<sound model="ich6"/>
|
|
<video>
|
|
<model type="qxl"/>
|
|
</video>
|
|
<redirdev bus="usb" type="spicevmc"/>
|
|
<redirdev bus="usb" type="spicevmc"/>
|
|
</devices>
|
|
</domain>
|
|
|
|
|
|
Running /usr/bin/qemu-img convert -O raw fedora.vmdk /var/lib/libvirt/images/fedora.raw
|