Bug 23261 - Impossible to redirect USB ports to Gnome Boxes
Summary: Impossible to redirect USB ports to Gnome Boxes
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal major
Target Milestone: Mageia 8
Assignee: GNOME maintainers
QA Contact:
URL:
Whiteboard:
Keywords: NEEDTEST
Depends on:
Blocks:
 
Reported: 2018-07-01 16:32 CEST by Cyril Levet
Modified: 2020-09-04 23:14 CEST (History)
3 users (show)

See Also:
Source RPM: gnome-boxes-3.32.1-1.mga7.src.rpm
CVE:
Status comment:


Attachments
Boxes internal log (740.74 KB, text/plain)
2018-07-01 16:35 CEST, Cyril Levet
Details
Troubleshooting Log of Mageia 7 guest (22.80 KB, text/plain)
2019-09-15 11:53 CEST, Cyril Levet
Details

Description Cyril Levet 2018-07-01 16:32:31 CEST
Description of problem:

When trying to redirect USB ports from host (Mageia 6) to guest (Mageia Caudron) a message indicating that port forwarding has failed is displayed by Boxes and nothing happen. Messages in the terminal are not useful : 

(gnome-boxes:7246): Boxes-WARNING **: libvirt-broker.vala:66: Failed to update domain 'mageia-unkno': Failed to set domain configuration: XML error: there is no hub at port 1 in USB address bus: 0 port: 1.1

(gnome-boxes:7246): GSpice-CRITICAL **: cursor_handle_set: assertion 'c->init_done == TRUE' failed


Version-Release number of selected component (if applicable):
gnome-boxes-3.24.0-1
qemu-2.8.1.1-7

How reproducible:

Always


Steps to Reproduce:
1. In Mageia 6 host, open Mageia Cauldron Guest in gnome-boxes
2. Open the properties panel 
3. Try to forward any of your USB port
Comment 1 Cyril Levet 2018-07-01 16:35:25 CEST
Created attachment 10266 [details]
Boxes internal log

This is my Boxes log.
Comment 2 Kristoffer Grundström 2018-07-01 17:15:33 CEST
There's a newer version of gnome-boxes in Cauldron:


https://mageia.pkgs.org/cauldron/mageia-core-release-x86_64/gnome-boxes-3.28.4-1.mga7.x86_64.rpm.html

Try to rebuild the src.rpm and see if we have a possible fix.

CC: (none) => hamnisdude

Marja Van Waes 2018-07-02 06:53:52 CEST

CC: (none) => marja11
Assignee: bugsquad => gnome

Comment 3 Thierry Vignaud 2018-07-03 04:39:59 CEST
That's likely b/c gnome-boxes wasn't linked against libusb, which I fixed in Cauldron:
http://svnweb.mageia.org/packages/cauldron/gnome-boxes/current/SPECS/gnome-boxes.spec?r1=1208864&r2=1208865

CC: (none) => thierry.vignaud

Comment 4 Thierry Vignaud 2018-07-03 08:12:17 CEST
Nope, it looks like mga6 build does be linked with libusb even if not directly BR-ed
Comment 5 Cyril Levet 2018-07-07 20:22:11 CEST
I'm not a specialist of building src.rpm packages but I try to rebuild Cauldron Boxes package. However it seems that some packages are required by gnome-boxes in Cauldron but not exist in Mageia 6.

libosinfo-vala doesn't exist in Mageia 6. It requires osinfo-db which itself not exists in Mageia 6. And osinfo-db requires osinfo-dbtools which doesn't exist in Mageia 6. I build osinfo-db-tools-1.2.0-1 from Cauldron in Mageia 6 but it takes me some times to rebuild all necessary packages.
Comment 6 Cyril Levet 2018-11-02 16:07:25 CET
I try to rebuild the src.rpm from Cauldron. Unfortunately gtk+-3.0 version is too old on Mageia 6. It is 3.22.16 and gnome-boxes 3.28 and newer needs at least version 3.22.20.
Comment 7 Cyril Levet 2019-09-15 11:53:04 CEST
This bug is still present in Mageia 7 and gnome-boxes-3.32.1-1. 
I have tried to delete gnome-boxes and reinstall it but my USB ports cannot be connected to my VM. Same thing happen with a Fedora 30 Workstation guest.
I join the troubleshooting log of the Mageia-7 VM.

Source RPM: gnome-boxes-3.24.0-1.mga6.src.rpm => gnome-boxes-3.32.1-1.mga7.src.rpm
Version: 6 => 7

Comment 8 Cyril Levet 2019-09-15 11:53:26 CEST
Created attachment 11282 [details]
Troubleshooting Log of Mageia 7 guest
Aurelien Oudelet 2020-09-04 23:14:19 CEST

Target Milestone: --- => Mageia 8
Keywords: (none) => NEEDTEST


Note You need to log in before you can comment on or make changes to this bug.