mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-15 23:24:27 +03:00
3933ff101b
If we use 4 devices here, we fill up all the emulated USB2 slots, and directly assigned devices are forced to fall back to USB1 https://bugzilla.redhat.com/show_bug.cgi?id=1135488
194 lines
5.4 KiB
XML
194 lines
5.4 KiB
XML
<domain type="kvm">
|
|
<name>foobar</name>
|
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
|
<memory>65536</memory>
|
|
<currentMemory>65536</currentMemory>
|
|
<vcpu>1</vcpu>
|
|
<os>
|
|
<type arch="x86_64">hvm</type>
|
|
<boot dev="cdrom"/>
|
|
<boot dev="hd"/>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
<pae/>
|
|
<hyperv>
|
|
<relaxed state="on"/>
|
|
<vapic state="on"/>
|
|
<spinlocks state="on" retries="8191"/>
|
|
</hyperv>
|
|
</features>
|
|
<cpu mode="custom" match="exact">
|
|
<model>core2duo</model>
|
|
</cpu>
|
|
<clock offset="localtime">
|
|
<timer name="rtc" tickpolicy="catchup"/>
|
|
<timer name="pit" tickpolicy="delay"/>
|
|
<timer name="hpet" present="no"/>
|
|
<timer name="hypervclock" present="yes"/>
|
|
</clock>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>destroy</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-kvm</emulator>
|
|
<disk type="file" device="disk">
|
|
<driver name="qemu" type="qcow2"/>
|
|
<source file="/dev/default-pool/testvol1.img"/>
|
|
<target dev="hda" bus="ide"/>
|
|
</disk>
|
|
<disk type="file" device="cdrom">
|
|
<driver name="qemu" type="qcow2"/>
|
|
<source file="/dev/default-pool/testvol2.img"/>
|
|
<target dev="hdb" bus="ide"/>
|
|
<readonly/>
|
|
</disk>
|
|
<controller type="usb" index="0"/>
|
|
<interface type="bridge">
|
|
<source bridge="eth0"/>
|
|
<mac address="00:11:22:33:44:55"/>
|
|
</interface>
|
|
<input type="tablet" bus="usb"/>
|
|
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes"/>
|
|
<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>
|
|
<domain type="kvm">
|
|
<name>foobar</name>
|
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
|
<memory>65536</memory>
|
|
<currentMemory>65536</currentMemory>
|
|
<vcpu>1</vcpu>
|
|
<os>
|
|
<type arch="x86_64">hvm</type>
|
|
<boot dev="hd"/>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
<pae/>
|
|
<hyperv>
|
|
<relaxed state="on"/>
|
|
<vapic state="on"/>
|
|
<spinlocks state="on" retries="8191"/>
|
|
</hyperv>
|
|
</features>
|
|
<cpu mode="custom" match="exact">
|
|
<model>core2duo</model>
|
|
</cpu>
|
|
<clock offset="localtime">
|
|
<timer name="rtc" tickpolicy="catchup"/>
|
|
<timer name="pit" tickpolicy="delay"/>
|
|
<timer name="hpet" present="no"/>
|
|
<timer name="hypervclock" present="yes"/>
|
|
</clock>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>destroy</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-kvm</emulator>
|
|
<disk type="file" device="disk">
|
|
<driver name="qemu" type="qcow2"/>
|
|
<source file="/dev/default-pool/testvol1.img"/>
|
|
<target dev="hda" bus="ide"/>
|
|
</disk>
|
|
<disk type="file" device="cdrom">
|
|
<driver name="qemu" type="qcow2"/>
|
|
<source file="/dev/default-pool/testvol2.img"/>
|
|
<target dev="hdb" bus="ide"/>
|
|
<readonly/>
|
|
</disk>
|
|
<controller type="usb" index="0"/>
|
|
<interface type="bridge">
|
|
<source bridge="eth0"/>
|
|
<mac address="00:11:22:33:44:55"/>
|
|
</interface>
|
|
<input type="tablet" bus="usb"/>
|
|
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes"/>
|
|
<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>
|
|
<domain type="kvm">
|
|
<name>foobar</name>
|
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
|
<memory>65536</memory>
|
|
<currentMemory>65536</currentMemory>
|
|
<vcpu>1</vcpu>
|
|
<os>
|
|
<type arch="x86_64">hvm</type>
|
|
<boot dev="hd"/>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
<pae/>
|
|
<hyperv>
|
|
<relaxed state="on"/>
|
|
<vapic state="on"/>
|
|
<spinlocks state="on" retries="8191"/>
|
|
</hyperv>
|
|
</features>
|
|
<cpu mode="custom" match="exact">
|
|
<model>core2duo</model>
|
|
</cpu>
|
|
<clock offset="localtime">
|
|
<timer name="rtc" tickpolicy="catchup"/>
|
|
<timer name="pit" tickpolicy="delay"/>
|
|
<timer name="hpet" present="no"/>
|
|
<timer name="hypervclock" present="yes"/>
|
|
</clock>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>restart</on_crash>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-kvm</emulator>
|
|
<disk type="file" device="disk">
|
|
<driver name="qemu" type="qcow2"/>
|
|
<source file="/dev/default-pool/testvol1.img"/>
|
|
<target dev="hda" bus="ide"/>
|
|
</disk>
|
|
<disk type="file" device="cdrom">
|
|
<driver name="qemu" type="qcow2"/>
|
|
<source file="/dev/default-pool/testvol2.img"/>
|
|
<target dev="hdb" bus="ide"/>
|
|
<readonly/>
|
|
</disk>
|
|
<controller type="usb" index="0"/>
|
|
<interface type="bridge">
|
|
<source bridge="eth0"/>
|
|
<mac address="00:11:22:33:44:55"/>
|
|
</interface>
|
|
<input type="tablet" bus="usb"/>
|
|
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes"/>
|
|
<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>
|