[SOLVED] Shared clipboard stopped working on openSUSE TW

Discussions about using Linux guests in VirtualBox.
Post Reply
ajgringo
Posts: 31
Joined: 11. Aug 2022, 01:45
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Arch, Debian, Fedora, Gentoo, openSUSE, Ubuntu, Windows

[SOLVED] Shared clipboard stopped working on openSUSE TW

Post by ajgringo »

After my last update, kernel v6 was installed. I started getting this notification pop-up after logging in:
VBoxClient: Vgb1R3InitUser failed: VERR_ACCESS_DENIED

While the screen auto-resize still works, the shared clipboard does not. I then tried to reboot into the previous v5.19 kernel - it now is also experiencing this error. None of my other VMs are doing this, including both Fedora Rawhide (on kernel v6.1) and Debian Sid. All systems are running VirtualBox v6.1.38.

Attached is the last VBox.log.
Attachments
opensuse-tw-2022-10-10-12-27-14.log.zip
(46.5 KiB) Downloaded 2 times
Last edited by ajgringo on 12. Oct 2022, 01:47, edited 1 time in total.
[host: EndeavourOS, VB 7.0.2, Ryzen 7 2700x, GTX 1070, 32 GB RAM]
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Shared clipboard stopped working on openSUSE Tumbleweed

Post by fth0 »

The opensuse-tw-2022-10-10-12-27-14.log file indicates that you're using Linux kernel 5.19 on the host, but Linux kernel 6.0 in the guest, and VBoxClient runs in the guest OS. ;)

Generally speaking, the problem can be on the host, in the guest, and of course inside VirtualBox. In the end, it's the collaboration of all three sides.
ajgringo
Posts: 31
Joined: 11. Aug 2022, 01:45
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Arch, Debian, Fedora, Gentoo, openSUSE, Ubuntu, Windows

Re: Shared clipboard stopped working on openSUSE Tumbleweed

Post by ajgringo »

I should have been clearer that the kernel upgrade was on the guest, not the host. I run many VMs with testing repos enabled, so I'm seeing the v6 kernel branch start to pop up more. That being said, this problem is only affecting openSUSE Tumbleweed. I believe that this is mostly an openSUSE issue, as I had similar problems with the shared clipboard with VMware before switching to VB; no pop-up messages, but inconsistent clipboard access.

Remember, this is also happening on the original 5.19 kernel as well.
[host: EndeavourOS, VB 7.0.2, Ryzen 7 2700x, GTX 1070, 32 GB RAM]
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Shared clipboard stopped working on openSUSE Tumbleweed

Post by fth0 »

The error message probably means that the VBoxClient cannot open /dev/vboxuser, so I'd suggest to check or compare the owner, group and access rights of /dev/vboxuser. If you provide ls -l /dev/vbox*, I'll have a look.
ajgringo
Posts: 31
Joined: 11. Aug 2022, 01:45
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Arch, Debian, Fedora, Gentoo, openSUSE, Ubuntu, Windows

Re: Shared clipboard stopped working on openSUSE Tumbleweed

Post by ajgringo »

fth0 wrote:The error message probably means that the VBoxClient cannot open /dev/vboxuser, so I'd suggest to check or compare the owner, group and access rights of /dev/vboxuser. If you provide ls -l /dev/vbox*, I'll have a look.
Good news: running

Code: Select all

sudo setfacl -m u:ajgringo619:rw /dev/vboxuser
fixes the problem (matches my openSUSE LEAP VM)

Code: Select all

$ getfacl /dev/vboxuser
# file: dev/vboxuser
# owner: root
# group: root
user::rw-
user:ajgringo619:rw-
group::rw-
mask::rw-
other::---
Bad news: the change does not survive a reboot, so I'll need to create a workaround
[host: EndeavourOS, VB 7.0.2, Ryzen 7 2700x, GTX 1070, 32 GB RAM]
ajgringo
Posts: 31
Joined: 11. Aug 2022, 01:45
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Arch, Debian, Fedora, Gentoo, openSUSE, Ubuntu, Windows

Re: Shared clipboard stopped working on openSUSE Tumbleweed

Post by ajgringo »

I checked one of my Arch-based systems, and the permissions were 666 on both of the /dev/vbox* devices. I tried setting that on the offending VM, but again the permissions were reset.
[host: EndeavourOS, VB 7.0.2, Ryzen 7 2700x, GTX 1070, 32 GB RAM]
ajgringo
Posts: 31
Joined: 11. Aug 2022, 01:45
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Arch, Debian, Fedora, Gentoo, openSUSE, Ubuntu, Windows

Re: Shared clipboard stopped working on openSUSE Tumbleweed

Post by ajgringo »

I posted a thread on openSUSE's forums as this seems like their problem: https://forums.opensuse.org/showthread. ... ost3165541

@fth0 - thanks for the help.
[host: EndeavourOS, VB 7.0.2, Ryzen 7 2700x, GTX 1070, 32 GB RAM]
ajgringo
Posts: 31
Joined: 11. Aug 2022, 01:45
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Arch, Debian, Fedora, Gentoo, openSUSE, Ubuntu, Windows

Re: Shared clipboard stopped working on openSUSE Tumbleweed

Post by ajgringo »

For anyone else affected by this bug, the solution is here: https://bugzilla.opensuse.org/show_bug.cgi?id=1204019
[host: EndeavourOS, VB 7.0.2, Ryzen 7 2700x, GTX 1070, 32 GB RAM]
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Shared clipboard stopped working on openSUSE Tumbleweed

Post by fth0 »

You're welcome, and thanks for reporting back! :)
Post Reply