Leap 16 - Spice

I have added the Virtualization repo to install spice. I can install spice-vdagent (zypper in spice-vdagent) but not the whole spice package (zypper in spice).

If I search for the package (zypper search spice) it shows as type “srcpackage” rather than “package”… if that’s relevant.

Can I install this on Leap 16? Thanks.

@KermitXYZ AFAIK, you only need the agent (which is available in the default repos) when connecting to a libvirt machine? I’ve actually opted for the org.virt_manager.virt-viewer to connect. Perhaps describe your end goal here?

Hi Malcolm

Quite simple really, I just want to be able to copy and paste text between the host and (Windows) VM.

Is the Virtualization repo really needed?
libspice-server1 is in the official oss repo. Installing virt-manager automatically pulls it in.

I also have the issue that I can’t get SPICE to work on Leap 16.

I get the following error:

Error connecting to graphical console:
Error opening SPICE console: Namespace SpiceClientGtk not available


Regarding the libspice-server1 it is correct, that this package is automatically installed with virt-manager. Here is an overview of the installed packages:

$ zypper se spice
Loading repository data...
Reading installed packages...

S  | Name                            | Summary                                                                 | Type
---+---------------------------------+-------------------------------------------------------------------------+--------
   | libngspice-devel                | Development files for ngspice                                           | package
   | libngspice0                     | Shared libraries for ngspice                                            | package
   | libspice-client-glib-2_0-8      | Gtk client and libraries for SPICE remote desktop servers               | package
   | libspice-client-glib-helper     | Gtk client and libraries for SPICE remote desktop servers               | package
   | libspice-client-gtk-3_0-5       | Gtk client and libraries for SPICE remote desktop servers               | package
   | libspice-server-devel           | Development files for building SPICE-server                             | package
i  | libspice-server1                | Library for SPICE-server                                                | package
   | ngspice                         | Mixed-level, Mixed-signal Circuit Simulator Based on spice3f5           | package
   | ngspice-doc                     | Documentation for the ngspice Mixed-signal simulator                    | package
   | ngspice-scripts                 | Ngspice init scripts                                                    | package
   | ngspice-xspice-cm               | Xspice code model Plugins                                               | package
i  | qemu-audio-spice                | Spice based audio support for QEMU                                      | package
i  | qemu-chardev-spice              | Spice vmc and port chardev support for QEMU                             | package
   | qemu-spice                      | Modules and packages for SPICE                                          | package
i  | qemu-ui-spice-app               | Spice UI support for QEMU                                               | package
i  | qemu-ui-spice-core              | Core Spice support for QEMU                                             | package
   | remmina-plugin-spice            | SPICE Protocol Plugin for Remmina                                       | package
   | spice-gtk                       | Gtk client and libraries for SPICE remote desktop servers               | package
   | spice-gtk-devel                 | Devel                                                                   | package
   | spice-gtk-lang                  | Translations for package spice-gtk                                      | package
   | spice-html5                     | Pure Javascript SPICE client                                            | package
   | spice-protocol-devel            | SPICE-protocol definitions                                              | package
   | spice-vdagent                   | Agent for Spice guests                                                  | package
   | spice-webdavd                   | Spice daemon for the DAV channel                                        | package
   | spicetify-cli                   | Command-line tool to customize Spotify client                           | package
   | typelib-1_0-SpiceClientGlib-2_0 | Gtk client and libraries for SPICE remote desktop servers - gi-bindings | package
   | typelib-1_0-SpiceClientGtk-3_0  | Gtk client and libraries for SPICE remote desktop servers - gi-bindings | package
   | xorg-x11-server-Xspice          | XSpice is an X server that can be accessed by a Spice client            | package

When searching the web for this litteral error, there is basically one search result pointing to this debian bug report: #1067836 - Error opening SPICE console: Namespace SpiceClientGtk not available - Debian Bug report logs

Which is resolved by installing the debian package gir1.2-spiceclientgtk-3.0

I don’t know what the girl1.2 exactly stands for, but I tried installing the spice-gtk package which also installs the libspice-client-gtk-3_0-5 package:

$ sudo zypper in spice-gtk
Refreshing service 'openSUSE'.
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 7 NEW packages are going to be installed:
  libphodav-3_0-0 libspice-client-glib-2_0-8 libspice-client-glib-helper libspice-client-gtk-3_0-5 libusbredirhost1 spice-gtk spice-gtk-lang

7 new packages to install.

Package download size:   661.3 KiB

Package install size change:
              |       1.7 MiB  required by packages that will be installed
     1.7 MiB  |  -      0 B    released by packages that will be removed

After rebooting, I still have the same issue as above.


When adding a VNC display, I can use the VM from “Virtual Machine Manager”.

But as using SPICE has a much better user experience, I would prefere getting it to work on my leap 16 machine again.

Any thoughts or ideas, how to get SPICE working again?
Does someone know whether the prefix “girl1.2” of the debian package is a different one compared to the openSUSE one?

Cheers
Simon

Try typelib-1_0-SpiceClientGtk-3_0.

1 Like

Yes, that did the trick.
Thank you @arvidjaar

Although the auto-resize feature does currently not work, but I have to check again, whether I need to change a setting for this.

Is this a “bug” in the sense, that this package should be automatically be installed, with either virt-viewer or the spice-gtk ?

Yes. You may consider bug report.

1 Like

I have already found a bug report & added a note:
https://bugzilla.opensuse.org/show_bug.cgi?id=1253100


Regarding the auto-resize feature:

  • I had to manually add a Spice “Channel” to the VM, afterwards the auto-resize feature did work again.

Cheers Simon

One more note:

The installation of the spice-gtk package is not required. To get SPICE working the only additional package I had to install as a workaround was the typelib-1_0-SpiceClientGtk-3_0

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.