sábado, 14 de diciembre de 2013

How to install spice-xpi in Ubuntu

This post is for those of you who know what actually spice-xpi means and are using a Debian based distribution like Ubuntu.

Spice is the remote access protocol bought by Red Hat as part as the deal made with Qumranet (back in 2008) to absorb the company and all the knowledge and technology embedded with them.

This protocol has pretty solid advantages against other display protocols currently in the market, however and due to the small share that Red Hat has in the Virtualization market its pretty unknown to the public (even the specialized one, which is sad).

Fortunately enough the Red Hat Virtualization platform RHEV is making a small dent an it's gaining traction.  In fact my company (SEAQ) has won several contracts to implement this technology with great success.

I mainly use Ubuntu as my desktop of choice and from time to time I must access VMs Console using Spice, as this is a Red Hat technology it obviously is certified to work with Red Hat and Fedora desktops but is not officially available for Ubuntu, besides the admirable effort made by several people all over the world with some PPAs (Like Jason Brooks' PPA) for diverse reasons not known to me (I suspect lack of traction) it hasn't made to Debian proper and then get this way to Ubuntu universe repositories.

Gladly for us, a guy named Petter Reinholdtsen (thank you Petter) made all the dirty work and sent to the NEW Queue in Debian Unstable a neat Debian package for all of us to consume.  However as the internal approving process may be a little long this is a workaround in the meantime.

1. Grab the Fedora or Red Hat spice-xpi package (You may need a RHN Subscription for the later)

2. Install alien on your Ubuntu machine (sudo apt-get install alien)

3. Convert the RPM package into a Debian one ( sudo alien spice-xpi-2.7-24.el6.x86_64.rpm)

4. Install the converted package (sudo dpkg -i spice-xpi_2.7-25_amd64.deb)

5. Install spice-xpi dependencies (sudo apt-get install spice-client liblog4cpp5 )

6. This is the UGLY part, but it works as long as you don't need debugging.  The spice-xpi package requires de liblog4cpp4 and we just installed the version 5.  We need to "hack" that.

sudo ln -s /usr/lib/liblog4cpp.so.5 /usr/lib/liblog4cpp.so.4
sudo ldconfig

7. An additional hack, Fedora's Firefox build looks for plugins in a different location than Ubuntu's one does.  So we need to correct it.

 sudo ln -s /usr/lib64/mozilla/plugins/libnsISpicec.so /usr/lib/mozilla/plugins/libnsISpicec.so

8. Restart Firefox and take a look:

nice, huh ?

After that you can go to RHEV's interface and give it a test:


No hay comentarios:

Publicar un comentario