Xen with SPICE

I am trying to do something very unusual and would most likely have me crucified by the Qubes gods (rightly so), but has anyone ever tried running a VM with SPICE? I tried building Xen with SPICE support:

[user@qubes-builder vmm-xen]$ git diff
diff --git a/xen.spec.in b/xen.spec.in
index ee8dbe3..df6bb7e 100644
--- a/xen.spec.in
+++ b/xen.spec.in
@@ -224,6 +224,7 @@ BuildRequires: dev86
 BuildRequires: glib2-devel pixman-devel
 BuildRequires: python%{python3_pkgversion}-devel ncurses-devel
 BuildRequires: perl-interpreter perl-generators
+BuildRequires: spice-protocol spice-server-devel spice-gtk3-devel
 %ifarch %{ix86} x86_64
 # so that x86_64 builds pick up glibc32 correctly
 BuildRequires: /usr/include/gnu/stubs-32.h
@@ -484,8 +485,8 @@ CONFIG_EXTRA="$CONFIG_EXTRA --with-system-ovmf=%{_libexecdir}/%{name}/boot/ovmf.
 #CONFIG_EXTRA="$CONFIG_EXTRA --with-system-ipxe=/usr/share/ipxe"
 CONFIG_EXTRA="$CONFIG_EXTRA --disable-ipxe --disable-rombios"
 CONFIG_EXTRA="$CONFIG_EXTRA --disable-pvshim"
+CONFIG_EXTRA="$CONFIG_EXTRA --with-extra-qemu-configure-args=\"–enable-spice\""
 %endif
-CONFIG_EXTRA="$CONFIG_EXTRA --with-extra-qemuu-configure-args='--disable-spice'"
 export PATH="/usr/bin:$PATH"
 autoreconf -i
 # END QUBES SPECIFIC PART

And well, it seems to have worked. the build log at least says spice is supported now:

spice support yes (0.14.3/0.14.3)

However I don’t have time right now to thoroughly check it. I’ve never really fiddled with an RPM package so I don’t know if this is sufficient… All I’m really interested in is using the QXL video-model. From my limited reading though, this is only possible without a stubdom.

2 Likes

Please tell me the story doesn’t end there…?