Summary: | app-emulation/virtualbox: Can't launch VMs using after switching from app-emulation/virtualbox-bin | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Lori <lori> |
Component: | Current packages | Assignee: | Viorel Munteanu <ceamac> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hmun, proxy-maint |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/27132 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Lori
2020-10-15 11:37:13 UTC
I have exactly the same problem. Just to add from the VBoxSVC.log: 00:00:00.148170 nspr-2 Loading settings file "/opt/nc/vbox/New group/Test/Test.vbox" with version "1.16-linux" 00:00:00.148497 nspr-2 VirtualBox: object created 00:00:00.705486 nspr-2 Failed to open "/dev/vboxdrvu", errno=13, rc=VERR_VM_DRIVER_NOT_ACCESSIBLE 00:00:17.366679 nspr-4 Failed to open "/dev/vboxdrvu", errno=13, rc=VERR_VM_DRIVER_NOT_ACCESSIBLE 00:00:22.398594 nspr-5 Failed to open "/dev/vboxdrvu", errno=13, rc=VERR_VM_DRIVER_NOT_ACCESSIBLE 00:00:27.389504 nspr-2 Failed to open "/dev/vboxdrvu", errno=13, rc=VERR_VM_DRIVER_NOT_ACCESSIBLE 00:00:27.873538 Watcher ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={5047460a-265d-4538-b23e-ddba5fb84976} aComponent={MachineWrap} aText={The virtual machine 'Test' has terminated unexpectedly during startup with exit code 1 (0x1)}, preserve=false aResultDetail=0 00:00:28.408704 nspr-4 Failed to open "/dev/vboxdrvu", errno=13, rc=VERR_VM_DRIVER_NOT_ACCESSIBLE 00:26:25.870447 main VirtualBox: object deletion starts the kernel modules are loaded and the devices exist: crw------- 1 root root 10, 60 Oct 18 10:14 /dev/vboxdrv crw------- 1 root root 10, 59 Oct 18 10:14 /dev/vboxdrvu crw------- 1 root root 10, 58 Oct 18 10:14 /dev/vboxnetctl Kernel version is also 5.4.66-gentoo The issue persists with the newly released 6.1.14 version. (In reply to Lori from comment #2) > The issue persists with the newly released 6.1.14 version. Sorry, I meant 6.1.16 I solved the issue on the one of my machines that had this problem. It was a problem with the ownership of the directories where the VirtualBox binaries reside. The have to belong to root:root I fixed this with: # chown root:root /usr # chown root:root /usr/lib64 # chown root:root /usr/lib64/virtualbox The binary version used to install in /opt/VirtualBox/ and therefore I did not notice the problem. According to https://www.virtualbox.org/ticket/16759 the parent folders of the virtualbox binaries have to belong to root:root since 5.1.20 Maybe this could be checked by the ebuild? (In reply to Hermann Mundprecht from comment #4) > I solved the issue on the one of my machines that had this problem. [...] I can confirm that this solution fixes the issue on my machine as well. For some unknown reason, both /usr and /usr/lib64 (and /usr/lib64/kde4) were owned by UID 1002 GID 1002, which no longer exists on my system. (Perhaps a legacy of some past installation?) Resetting the ownership of these directories to root:root fixed the issues with running virtualbox as a normal user. Thank you! I confirm that I needed to change my /usr folder ownership to root and that fixed the issue. VirtualBox could really improve their error dialogs... The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6abf35b9907a61390aef371e6ead261ef036ab1d commit 6abf35b9907a61390aef371e6ead261ef036ab1d Author: Viorel Munteanu <ceamac.paragon@gmail.com> AuthorDate: 2022-09-04 08:28:24 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-09-05 01:19:03 +0000 app-emulation/virtualbox: add check to pkg_pretend Check /usr, /usr/lib are owned by root. Closes: https://bugs.gentoo.org/749273 Signed-off-by: Viorel Munteanu <ceamac.paragon@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> app-emulation/virtualbox/virtualbox-6.1.38.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) |