Ask Your Question
0

ubuntu 12.04.4, is qemu-kvm-spice required when using spice?

asked 2014-04-02 04:57:18 -0500

baboune gravatar image

updated 2014-04-04 02:46:47 -0500

I am using Havana on Ubuntu12.04 and using spice instead of novnc as per [https://ask.openstack.org/en/question/26123/horizon-sends-wrong-rest-request-when-spice-is-enabled/].

Controller:

 apt-get install nova-spiceproxy spice-html5 spice-vdagent

Compute:

apt-get install spice-vdagent

SPICE appears to work (except for QXL not being used for some reason but not in the scope of this question).

When doing

apt-get install qemu-kvm-spice

The installed qemu-kvm module is removed and replaced by qemu-kvm-spice.

The problem is that changing the module to qemu-kvm-spice works for some VMs(default cirros test image for example) but not with ubuntu desktop images (initramfs fails to load hard drive).

At this point, it is unclear to me is whether the qemu-kvm-spice module needs to be used on the compute nodes when using the spice console? There are posts on devstack + ubuntu suggesting to install it. But then why the VM error when launching?

Thanks for help

Adding the dumpxml files link: http://pastebin.com/MTHDY0XC It seems that in my 12.04 environment it is using the following emulator: /usr/bin/kvm-spice

Which might explain why it works when spice is enabled. But without requiring the qemu-kvm-spice package.

root@kds-openstack-05:/home/ericsson# dpkg -l | grep spice
ii  libspice-server1                 0.12.4-0nocelt1ubuntu0.1~cloud0             Implements the server side of the SPICE protocol
ii  spice-vdagent                    0.8.1-1                                     Spice agent for Linux
edit retag flag offensive close merge delete

Comments

I am wondering is there anything different from cirros what works with qemu-kvm-spice ? (F20 for instance)

dbaxps gravatar imagedbaxps ( 2014-04-02 05:04:25 -0500 )edit

when using qemu-kvm-spice, the cirros image boots properly and can be accessed via the spice console or spice client. The ubuntu desktop image does not boot and gets stuck at the initramfs level, and ends up in limited console boot. I compared the libvirt dump files and there is no difference between launching an image with or without qemu-kvm-spice.

baboune gravatar imagebaboune ( 2014-04-02 05:07:21 -0500 )edit

First ) What happens if you won't install qemu-kvm-spice ? Second) . Could you try F20 image or F19 image with qemu-kvm-spice ?

dbaxps gravatar imagedbaxps ( 2014-04-02 10:14:03 -0500 )edit

1) if qemu-kvm-spice is not installed, it works. VMs start. The spice console is available. 2) What is F20 or F19 image?

baboune gravatar imagebaboune ( 2014-04-02 11:10:37 -0500 )edit

I mean Fedora 20

dbaxps gravatar imagedbaxps ( 2014-04-02 12:56:27 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2014-04-02 13:29:56 -0500

dbaxps gravatar image

updated 2014-04-03 05:27:24 -0500

Per the most recent baboune's feedback :- if qemu-kvm-spice is not installed, it works. VMs start. The spice console is available. Hence the answer is qemu-kvm-spice is not required when using spice on Ubuntu 12.04 (Precise) Per my opinion it's also not required due to Bug #998435 It's required starting with version 13.04 Devstack – Replace vnc by spice

edit flag offensive delete link more

Comments

I dont agree to this answer. Using devstack, and spice then it does not work. E.g. ubuntu 13,04 and devstack then qemu-kvm-spice is required. Check this: replace vnc by spice.

devstack + precise -> spice not working

What is qemu-kvm-spice?

baboune gravatar imagebaboune ( 2014-04-02 13:46:11 -0500 )edit

I apologize for misunderstanding your feed. Please, disregard my answer and address your last question to Serge Hallyn @Launchpad, because qemu-kvm-spice has been built by him. My build was focused on USB redirection https://launchpad.net/~bderzhavets/+a... but it's not going to help more then qemu-kvm-spice. But , you wrote :- 1) if qemu-kvm-spice is not installed, it works. VMs start. The spice console is available

    When it works ?. Please , describe in more details the environment when it works, e.g VMs  are running with Qemu Hypervisor  and Spice console in dashboard is in good shape. In general,  any Fedoras (>=15 or 16) Qemu build has spice built-in.  Word  qemu-kvm-spice  exists  only in Ubuntu world  and nowhere else.

Now it sounds for me like replace vnc by spice forces you to upgrade to non-LTS 13.04. Would it be my concern the choice would be Trusty Tahr (rc in a ...(more)

dbaxps gravatar imagedbaxps ( 2014-04-02 14:45:10 -0500 )edit

Baboune wrote I dont agree to this answer. Using devstack, and spice then it does not work. E.g. ubuntu 13,04 and devstack then qemu-kvm-spice is required. Check this: replace vnc by spice. devstack + precise -> spice not working What is qemu-kvm-spice?

Responding this comment

Please , view Bug qemu-kvm-spice doesn't support spice/qxl installs and #9, #5 in particular I don't know was fix in Raring Ringtail (13.04) backported to Precise. Please, contact Serge Hallyn via Launchpad. If answer is "No", then qemu-kvm-spice works only with Cirrus Video Emulation on Precise even in meantime. So, builds Set up Qemu-kvm 1.1 & Spice-gtk 0.12 with USB . . . or Set up Spice-Gtk 0.12 on Ubuntu Precise (v.1) may help. Any of this builds contains Spice enabled version of qemu-kvm working on Precise.

dbaxps gravatar imagedbaxps ( 2014-04-02 22:38:00 -0500 )edit
1

Here is the difference between qemu-kvm-spice and my builds on Precise
Here is feedback from Matt. It' just difficult to remind 2 years old stuff. I believe Matt is referencing build utilizing spice-gtk-0.12 from Debian Unstable Yes, this build was one of the last been done and tested OK at least by Matt ,myself and one person from France, whose concern was virtfs Builds of spice-gtk , mentioned in Bug #998435 are different from Debian Unstable. They had been done by myself, but also tested by several persons.

dbaxps gravatar imagedbaxps ( 2014-04-03 04:43:56 -0500 )edit

View also Set up Qemu-kvm 1.1 & Spice-gtk 0.12 with USB redirection on Ubuntu Precise This build is completely functional on Precise and doesn't involve Debian Unstable packaging for spice-gtk-0.12.

dbaxps gravatar imagedbaxps ( 2014-04-03 14:26:19 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2014-04-02 04:57:18 -0500

Seen: 3,308 times

Last updated: Apr 04 '14