FS#11528 - [virtualbox-ose 2.0.2-1] can't run VirtualBox-ose
Attached to Project:
Community Packages
Opened by Jaime Oyarzun Knittel (mitoyarzun) - Friday, 19 September 2008, 16:06 GMT
Last edited by Geoffroy Carrier (gcarrier) - Monday, 29 September 2008, 02:26 GMT
Opened by Jaime Oyarzun Knittel (mitoyarzun) - Friday, 19 September 2008, 16:06 GMT
Last edited by Geoffroy Carrier (gcarrier) - Monday, 29 September 2008, 02:26 GMT
|
Details
Description:
I updated VirtualBox-ose to 2.0.2-1 a few days ago, but it doesn't run, it throws the following errors (as normal user): VirtualBox: SUPR3HardenedMain: effective uid is not root (euid=1000 egid=100 uid=1000 gid=100) And with sudo (or as root): VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: /usr/lib/virtualbox/VirtualBox.so: cannot open shared object file: No such file or directory Additional info: * This didn't happen with 1.6 Steps to reproduce: 1. Execute /usr/bin/VirtualBox |
This task depends upon
Closed by Geoffroy Carrier (gcarrier)
Monday, 29 September 2008, 02:26 GMT
Reason for closing: Fixed
Additional comments about closing: Yipee! Applauses go to mitoyarzun for figuring it out!
Monday, 29 September 2008, 02:26 GMT
Reason for closing: Fixed
Additional comments about closing: Yipee! Applauses go to mitoyarzun for figuring it out!
There is a report for the "new" bug in http://www.virtualbox.org/ticket/2305 .
What happens if this is a bug in upstream? We'll have to downgrade to 1.6?
Really sorry. If nobody gets a solution until tomorrow, I'll downgrade to 1.6 :(
What I did was:
1. Add the --disable-hardening flag in virtualbox-modules PKGBUILD.
2. makepkg --nobuild
3. Remove the flag -DVBOX_WITH_HARDENING from the variable KFLAGS in
virtualbox-modules/src/VirtualBox-2.0.2/src/VBox/HostDrivers/Support/linux/Makefile
4. makepkg --noextract -i
5. Reload the module (modprobe -vr vboxdrv && modprobe -v vboxdrv).
6. chmod 666 /dev/vboxdrv.
The last step is a bit ugly, but works. I don't know why am I not
allowed to use /dev/vboxdrv with 660 persmissions, even if I belong to
the vboxusers group.
the following forum thread discusses this problem and a possible solution for building from source code can be found in the following post:
http://bbs.archlinux.org/viewtopic.php?pid=424218#p424218
Just uploaded a new version of virtualbox-modules with mitoyarzun's fix.
I'm REALLY, REALLY sorry for the looong week with a broken package.
Please note that /dev/vboxdrv should be 0660 root vboxusers. Users of testing/udev might experience problems, as rules are moving from /etc/udev to /lib/udev; they might want to try 'chmod 660 /dev/vboxdrv;chown root:vboxusers /dev/vboxdrv' and add their user to the vboxdrv group.
[FOR NEWCOMERS] By the way, it's Linux dudes; groups information is set on logins. Try 'groups' and if vboxusers doesn't appear, use 'su $USER -c VirtualBox'. You won't need it on next session.
Disabling hardening is considered WRONG by the packagers, as expressed during the compilation procedure.
I will work on that later, but I might spend days/weeks investigating on x86_64 support before. There are big chances I will give up on this, archlinux isn't designed for this kind of 32/64bits melting pots.