Bug 33445 - gnome-boxes missing require on spice-gtk
Summary: gnome-boxes missing require on spice-gtk
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2024-07-29 19:29 CEST by katnatek
Modified: 2025-02-28 19:36 CET (History)
7 users (show)

See Also:
Source RPM: gnome-boxes-44.2-1.mga9
CVE:
Status comment:


Attachments
gnome-boxes version 45.0 with fix (3.70 KB, text/plain)
2024-07-31 21:35 CEST, katnatek
Details

Description katnatek 2024-07-29 19:29:15 CEST
Description of problem:

gnome-boxes as provided by mageia can't redirect usb devices to guest system


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. open a mageia (and perhaps other guest systems) VM on gnome-boxes
2. plug usb memory device on host system
3. try to redirect the usb in prefrences - > devices
4. get a toast notification about the operation can't be done
5. install spice-gtk on host system now you can redirect the usb (not sure if necessary but I shutdown the VM before install the package and restart after)
Comment 1 Lewis Smith 2024-07-29 20:33:05 CEST
Thank you for the report.

This is strange. Currently, the only thing that requires 'spice-gtk' is 'virt-manager'; which is not only not required by 'gnome-boxes' - but by nothing at all!
The only 'virt' pkgs required by 'gnome-boxes' are:
 libvirt-gconfig
 libvirt-util

Impressed that you found the solution.
Assigning to Gnome people.

Assignee: bugsquad => gnome

Comment 2 katnatek 2024-07-29 21:23:53 CEST
(In reply to Lewis Smith from comment #1)
> Thank you for the report.
> 
> This is strange. Currently, the only thing that requires 'spice-gtk' is
> 'virt-manager'; which is not only not required by 'gnome-boxes' - but by
> nothing at all!
> The only 'virt' pkgs required by 'gnome-boxes' are:
>  libvirt-gconfig
>  libvirt-util
> 
> Impressed that you found the solution.
> Assigning to Gnome people.

A trick that use in this cases see the requirements in archlinux https://archlinux.org/packages/extra/x86_64/gnome-boxes/ ;)

spice-gtk get my attention because was not in my system and this requires other spice packages
Comment 3 Morgan Leijström 2024-07-30 09:53:17 CEST
Watching this to see if something for errata...

If someone like to make a Wiki page for GNOME-boxes, it can be linked from https://wiki.mageia.org/en/Virtualisation#GNOME_Boxes

CC: (none) => fri

katnatek 2024-07-31 21:27:02 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=23261

Comment 4 katnatek 2024-07-31 21:35:15 CEST
Created attachment 14616 [details]
gnome-boxes version 45.0 with fix

I take this spec from cauldron time ago and used to have an updated version of the software , I add the spice-gtk require
Comment 5 katnatek 2025-02-16 19:41:00 CET
@David is good for you if I add this missing require in cauldron and update gnome-boxes to version 45.0 in mageia 9?

CC: (none) => geiger.david68210

Comment 6 David GEIGER 2025-02-16 23:00:54 CET
Yes you can go.
Comment 7 katnatek 2025-02-17 01:06:59 CET
Done in cauldron and mageia 9

I add to papoteur as is my mentor now

David or papoteur please send the builds

CC: (none) => yvesbrungard

katnatek 2025-02-17 01:07:33 CET

Whiteboard: (none) => MGA9TOO
Source RPM: gnome-boxes-44.2-1.mga9 => gnome-boxes
Version: 9 => Cauldron

Comment 8 papoteur 2025-02-17 07:53:42 CET
Submitted for cauldron.
Comment 9 papoteur 2025-02-17 07:55:15 CET
What is the reason to upgrade to 45.0 in Mageia 9?
Comment 10 katnatek 2025-02-17 18:20:24 CET
(In reply to papoteur from comment #9)
> What is the reason to upgrade to 45.0 in Mageia 9?

Upstream perform fixes https://github.com/GNOME/gnome-boxes/compare/44.2...45.0
katnatek 2025-02-18 18:16:38 CET

Version: Cauldron => 9
Whiteboard: MGA9TOO => (none)

Comment 11 papoteur 2025-02-19 11:39:54 CET
Submitted:
SRPMS and RPMS:
 gnome-boxes-45.0-1.mga9

Assignee: gnome => qa-bugs
Source RPM: gnome-boxes => gnome-boxes-44.2-1.mga9

Comment 12 Len Lawrence 2025-02-19 17:21:12 CET
In GNOME right now.  Installed gnome-boxes (125+ packages).
Started boxes but could find no way to open an existing VM.
???
Shall try to launch it outside boxes and then see if it is visible.

CC: (none) => tarazed25

Comment 13 Len Lawrence 2025-02-19 17:34:40 CET
The problem is that boxes launches fullscreen and cannot be resized.
Comment 14 katnatek 2025-02-19 17:47:03 CET
(In reply to Len Lawrence from comment #13)
> The problem is that boxes launches fullscreen and cannot be resized.

I not see that but I not use in gnome, is classic session or wayland?
Comment 15 katnatek 2025-02-19 18:16:32 CET
The main test to do here is with the current version 44.2, open/create a VM
Once the Guest system is ready 

Plug usb memory in th host system

Click in the "⁝" symbol select preferences, click on devices⁝ tab toggle the selector for you usb device

That should fail, shutdown the guest system and close the application

Update to testing package
Then repeat the test, this time you can work with the usb memory 
in the guest system
Comment 16 Len Lawrence 2025-02-19 18:35:28 CET
By VM I meant virtual machine, Vbox or vdi.  Not sure what type of session.  I switched from Mate to GNOME to see what all this is about.  Have to log out to check.

And yes, I understood the point of the test.  I do not see any way to manage an existing virtual machine via gnome-boxes.

Note that VboxManager says "cannot enumerate USB devices".
Comment 17 katnatek 2025-02-19 18:45:08 CET
(In reply to Len Lawrence from comment #16)
> By VM I meant virtual machine, Vbox or vdi.  Not sure what type of session. 
> I switched from Mate to GNOME to see what all this is about.  Have to log
> out to check.
> 
> And yes, I understood the point of the test.  I do not see any way to manage
> an existing virtual machine via gnome-boxes.
> 
> Note that VboxManager says "cannot enumerate USB devices".

Virtual Machine created by gnome-boxes, I not think can handle VM from other managers
Comment 18 Len Lawrence 2025-02-19 19:15:15 CET
(In reply to katnatek from comment #17)
Thanks.  I could not see a USB drive from VirtualBox either - I have always had trouble with them.
This is GNOME Wayland I think.  This could take some time then if it involves an installation from scratch.  Have to make sure that the iso is still available on this machine and that there is room for another virtual disk.
Comment 19 katnatek 2025-02-19 19:24:50 CET
(In reply to Len Lawrence from comment #18)
> (In reply to katnatek from comment #17)
> Thanks.  I could not see a USB drive from VirtualBox either - I have always
> had trouble with them.
> This is GNOME Wayland I think.  This could take some time then if it
> involves an installation from scratch.  Have to make sure that the iso is
> still available on this machine and that there is room for another virtual
> disk.

I use 20 Gb for my test VM but is mageia, other systems could need more
Comment 20 Jani Välimaa 2025-02-19 20:31:15 CET
(In reply to papoteur from comment #11)
> Submitted:
> SRPMS and RPMS:
>  gnome-boxes-45.0-1.mga9

In generally we should not mix Gnome versions in stable releases. Mageia 9 was released with Gnome 44, and we should stay on 44.x releases.
Comment 21 Len Lawrence 2025-02-19 22:26:26 CET
In reply to katnatek from comment #19:
This is becoming bizarre.
Decided to allow 40GB to be used for the new box.
Ran gnome-boxes in GNOME Classic Wayland.
The installation process for the Mageia9 64-bit iso started OK;
allocated 20GB to the system, 4GB to swap, and the rest to home.
Next stage: "EXT4 formatting failed".

Backed out and went back to Mate to nurse my wounds.

/home/lcl/.local/share/gnome-boxes/images

$ ll
total 624720
-rwxr--r-- 1 lcl lcl 639762432 Feb 19 20:54 boxes-unknown*
$ file boxes-unknown
boxes-unknown: QEMU QCOW Image (v3), 42949672960 bytes (v3), 42949672960 bytes

Out of my depth now.
Comment 22 Brian Rockwell 2025-02-19 23:09:16 CET
I have Gnome configured on a box, but gnome boxes ... never got it working.  I guess I can try something with this update.  It'll be this weekend though.

CC: (none) => brtians1

Comment 23 Thomas Andrews 2025-02-19 23:21:11 CET
After watching a couple of Youtube demonstration videos, I decided to give it a shot. I got farther than Len, but I'm working in a Plasma host - not that that should make a difference.

Installed gnome-boxes and dependencies, 144 packages in all, with no issues. Rebooted, for no good reason other than having just installed so many packages.

I created a Mageia 9 VM using the netinstall iso and the math.princeton mirror. I ran it, adjusted display resolution to 1920x1080, installed hardinfo. Inserted a usb stick, which was detected by the host, but not the Boxes guest. Hardinfo didn't show it, confirming that the guest isn't detecting it.

I was about to update gnome-boxes, but then I read comment 20. Waiting now to see what happens because of that.
Comment 24 katnatek 2025-02-20 00:21:20 CET
(In reply to Jani Välimaa from comment #20)
> (In reply to papoteur from comment #11)
> > Submitted:
> > SRPMS and RPMS:
> >  gnome-boxes-45.0-1.mga9
> 
> In generally we should not mix Gnome versions in stable releases. Mageia 9
> was released with Gnome 44, and we should stay on 44.x releases.

This mean I must revert to 44 version? is needed ask to remove this packages and then send the updated spec or can proceed for this time with the 45 version ?

CC: (none) => jani.valimaa

Comment 25 Len Lawrence 2025-02-20 00:53:20 CET
Note that I have been testing this before updating in order to generate the image file.  Perhaps it would work after the update.  Shall have a go tomorrow.
Comment 26 Thomas Andrews 2025-02-20 17:05:33 CET
One of these days I will remember the value of RTFM.

It went right over my head that the usb drive had to be "redirected" from the host to the guest, the same as has to be done in VirtualBox. Had I read comment 0 more closely, I wouldn't have wasted my time with what I did in comment 23.

After accessing the Devices tab under the guest's Preferences, I saw 2 devices under usb. One was my generic card reader, the other the usb stick I had plugged in and mounted on the host. Neither one would switch from host to guest, and I got the error message described in comment 0. So, finally, I accurately reproduced the fault.

But I didn't stop there. I can confirm that simply installing spice-gtk on the host does indeed make the issue go away. I removed it again, and the issue returned. I await the update, so I can confirm that it does indeed draw in spice-gtk as a new dependency.

CC: (none) => andrewsfarm

Comment 27 katnatek 2025-02-20 17:15:19 CET
(In reply to Thomas Andrews from comment #26)
> One of these days I will remember the value of RTFM.
> 
> It went right over my head that the usb drive had to be "redirected" from
> the host to the guest, the same as has to be done in VirtualBox. Had I read
> comment 0 more closely, I wouldn't have wasted my time with what I did in
> comment 23.
> 
When I start to use gnome-boxes, I also did not understand how it works, a few net searching help me
papoteur 2025-02-22 08:00:14 CET

Assignee: qa-bugs => j.alberto.vc
Status comment: (none) => feedback

katnatek 2025-02-23 20:30:03 CET

CC: jani.valimaa => (none)
Status comment: feedback => (none)

Comment 28 katnatek 2025-02-23 20:30:58 CET
Reverted to version 44.2
Comment 29 papoteur 2025-02-24 07:21:59 CET
Submitted:
RPMS and SRPMS: gnome-boxes-44.2-1.1.mga9

Assignee: j.alberto.vc => qa-bugs

katnatek 2025-02-24 19:43:40 CET

Keywords: (none) => advisory

Comment 30 Thomas Andrews 2025-02-24 20:06:03 CET
Installing the update drew in spice-gtk, as expected. No installation issues.

I started my Mageia 9 guest. Then I inserted a usb stick with 185 vacation photos on it, and mounted it. Going to the preferences menu of the guest, I told Boxes to redirect that stick, and the guest's device notifier immediately detected it. I mounted it, and copied the folder with all photos to the guest's desktop. Afterward, I changed the guest's wallpaper to one of the photos from the middle of the folder, to be sure the photo had transferred without corruption. Finally, I shut down the guest, whereupon the usb stick became available to the host once more.

There were no issues. This is OK for me in my Plasma system, but What about Len's issues from inside Gnome-Wayland?
Comment 31 katnatek 2025-02-24 20:57:24 CET
(In reply to Thomas Andrews from comment #30)
> Installing the update drew in spice-gtk, as expected. No installation issues.
> 
> I started my Mageia 9 guest. Then I inserted a usb stick with 185 vacation
> photos on it, and mounted it. Going to the preferences menu of the guest, I
> told Boxes to redirect that stick, and the guest's device notifier
> immediately detected it. I mounted it, and copied the folder with all photos
> to the guest's desktop. Afterward, I changed the guest's wallpaper to one of
> the photos from the middle of the folder, to be sure the photo had
> transferred without corruption. Finally, I shut down the guest, whereupon
> the usb stick became available to the host once more.
> 
> There were no issues. This is OK for me in my Plasma system, but What about
> Len's issues from inside Gnome-Wayland?

Perhaps run 

GDK_BACKEND=x11 gnome-boxes

Can help
Comment 32 Thomas Andrews 2025-02-26 23:04:27 CET
I installed plasma-workspace-wayland and dependencies, then rebooted into a wayland session. I ran Boxes, and was able to redirect a usb stick with no issues.
Comment 33 Thomas Andrews 2025-02-28 18:03:57 CET
Moved to a different system, different hardware. Started with MGA9-64 Plasma, and installed task-gnome-minimal, then installed gnome-boxes and dependencies. Rebooted into "Gnome on Wayland" and ran Boxes.

Created a MGA9-64 Plasma guest, using the netinstall iso and the math.princeton mirror. There were no issues with the guest creation. Plugged in a usb stick, and attempted to redirect it to the guest, which failed.

Updated gnome-boxes, using qarepo and urpmi, which drew in spice-gtk. Ran Boxes again, and this time the usb stick was redirected successfully. Copied photos from the stick to the guest desktop, then set one up as Plasma wallpaper. 

I had no issues at all. I don't know how to reproduce Len's issue with creating the guest. It looks to me like that would be beyond the scope of this bug, anyway. This bug is for the missing dependency that allows usb redirection, and that appears to be solved.

I'm going to validate the update. If Len still has issues with creating a guest, that should be addressed in another bug.

Keywords: (none) => validated_update
Whiteboard: (none) => MGA9-64-OK
CC: (none) => sysadmin-bugs

Comment 34 Mageia Robot 2025-02-28 19:36:24 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2025-0023.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


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