guest: Force qxl/vga more often

Letting libvirt choose gives us cirrus, which is really bad.
So for x86 for it more
This commit is contained in:
Cole Robinson 2018-09-01 16:50:14 -04:00
parent fdd1cc5ca8
commit d25ce81439
3 changed files with 12 additions and 1 deletions

View File

@ -153,6 +153,9 @@
<backend type="emulator" version="2.0"/>
</tpm>
<graphics type="vnc" port="-1"/>
<video>
<model type="qxl"/>
</video>
<watchdog model="ib700" action="pause"/>
<memballoon model="virtio"/>
<rng model="virtio">
@ -331,6 +334,9 @@
<backend type="emulator" version="2.0"/>
</tpm>
<graphics type="vnc" port="-1"/>
<video>
<model type="qxl"/>
</video>
<watchdog model="ib700" action="pause"/>
<memballoon model="virtio"/>
<rng model="virtio">

View File

@ -35,5 +35,8 @@
</interface>
<console type="pty"/>
<graphics type="vnc" port="-1"/>
<video>
<model type="vga"/>
</video>
</devices>
</domain>

View File

@ -1189,7 +1189,9 @@ class Guest(XMLBuilder):
if self.has_gl():
return "virtio"
return "qxl"
if self._os_object.is_windows():
if self.os.is_hvm():
if self.conn.is_qemu():
return "qxl"
return "vga"
return None