KVM with spice client

816 views
Skip to first unread message

Michael Pope

unread,
Nov 6, 2013, 10:27:54 PM11/6/13
to mlu...@googlegroups.com

I'm running KVM as my virtualisation solution on Debian 7.1 on a Linux Terminal Server (LTSP) box and I have a speed issue when accessing KVM guests from LTSP machines.

I read somewhere that using spice would be better than using VNC to connect as it renders the graphics on the client side. So I've configure my VM to use Spice instead of VNC in virt-manager but virt-viewer 0.5.3 doesn't allow me to use spice. Virt-viewer 0.5.7 does but hasn't been backported yet to debian 7.1 so I'm compiling it.

I've ran into a problem where I don't know which library or dependency I'm missing here for virt-viewer 0.5.7. Here are my steps

1. Downloaded virt-viewer from http://virt-manager.org/download/
2. Untar
3. Install intltool
4. configure with the following command

./configure --with-spice-gtk --with-gtk-vnc

I get the following error:
checking which gtk+ version to compile against... 2.0
checking for GTK... yes
checking for GTK_VNC... no
configure: error: gtk-vnc requested but not found

I've tried installing libgtk-vnc-2.0-dev and searching for the gtk-vnc executable within packages with apt-file search gtk-vnc.

As I'm not too concerned with VNC (although it would be nice) I tried without it and got this error:

checking which gtk+ version to compile against... 2.0
checking for GTK... yes
checking for SPICE_GTK... no
configure: error: spice-gtk requested but not found

from
Mick

Richard C

unread,
Nov 6, 2013, 10:58:02 PM11/6/13
to mlug-au
It may seem obvious, but do you have libgtk2.0-dev, libspice-client-glib-2.0-dev, etc. installed? It's been awhile since I messed about with compiling soucre packages, but this is where you'd find this stuff isn't it?
I had a quick look into running SPICE on Ubuntu, once. Sometimes, I remember, and wake up in a cold sweat...


Richard


--
You received this message because you are subscribed to the Google Groups "mlug-au" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mlug-au+u...@googlegroups.com.
To post to this group, send email to mlu...@googlegroups.com.
Visit this group at http://groups.google.com/group/mlug-au.
For more options, visit https://groups.google.com/groups/opt_out.

Michael Pope

unread,
Nov 6, 2013, 11:11:16 PM11/6/13
to mlu...@googlegroups.com
libgtk2.0-dev & libspice-client-glib-2.0-dev are installed already on
my machine. I can use spicec to access my VM guests but it's by port
number not VM name. The nice thing about virt-viewer is it allows you
to specify the VM name and you don't have to worry about the dynamic
port business.

from
Mick

On Thu 07 Nov 2013 14:58:02 EST, Richard C wrote:
> It may seem obvious, but do you have libgtk2.0-dev,
> libspice-client-glib-2.0-dev, etc. installed? It's been awhile since I
> messed about with compiling soucre packages, but this is where you'd
> find this stuff isn't it?
> I had a quick look into running SPICE on Ubuntu, once. Sometimes, I
> remember, and wake up in a cold sweat...
>
>
> Richard
>
>
> On 7 November 2013 14:27, Michael Pope <map...@gmail.com
> <mailto:mlug-au%2Bunsu...@googlegroups.com>.
> To post to this group, send email to mlu...@googlegroups.com
> <mailto:mlu...@googlegroups.com>.

Duncan Roe

unread,
Nov 7, 2013, 4:52:26 AM11/7/13
to mlu...@googlegroups.com
Hi Mick,

Does plain old ./configure work?

--with <package> promises that you have <package> already.

Did you install libgtk-vnc-2.0 in /usr/lib or /usr/local/lib? I just wonder if
pkg-config couldn't find libgtk-vnc-2.0.pc if, say, the package were installed
in /usr/local/lib and /usr/local/lib/pkgconfig wasn't in PKG_CONFIG_PATH.

Otherwise, config.log should point you to where in configure the failing test
was done and you can look to see what that test was.

Good luck,

Cheers ... Duncan.
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

Michael Pope

unread,
Nov 7, 2013, 5:04:29 AM11/7/13
to mlu...@googlegroups.com
If you do a ./configure it spits out this error
configure: error: At least one of spice or vnc must be used

libgtk-vnc-2.0 is in /usr/lib

Managed to find what file it was missing in config.log thanks for that
clue.
apt-file search gtk-vnc-1.0.pc
apt-file search spice-client-gtk-2.0.pc

I installed both of these but now it's got a problem with the version
of spice-client I have installed. This is easier to fix. Thanks guys.

from
MIck

Philipp Huebner

unread,
Nov 7, 2013, 7:35:21 AM11/7/13
to mlu...@googlegroups.com
Hi,

I suggest you take a look at the build dependencies of virt-viewer in
Debian unstable (it's 0.5.6 instead of 0.5.7 but already has spice
support) :
http://packages.debian.org/source/sid/virt-viewer

You'll see some gtk 3.0 build deps.

Regards,
--
.''`. Philipp Huebner <deba...@debian.org>
: :' : pgp fp: 6719 25C5 B8CD E74A 5225 3DF9 E5CA 8C49 25E4 205F
`. `'`
`-

signature.asc
Reply all
Reply to author
Forward
0 new messages