Page 1 of 1

line 72: exec: /usr/lib/virtualbox/VirtualBox: cannot execu

Posted: 22. Jan 2009, 17:45
by herrmeier
Hello,

Right now I'm running openSUSE 11.1.
But Virtualbox won't work.
Any ideas?

user@pc:~> VirtualBox
/usr/bin/VirtualBox: line 72: /usr/lib/virtualbox/VirtualBox: Keine Berechtigung
/usr/bin/VirtualBox: line 72: exec: /usr/lib/virtualbox/VirtualBox: cannot execute: Erfolg
insgesamt 24592
drwxr-xr-x 3 root root 4096 22. Jan 15:58 .
drwxr-xr-x 223 root root 102400 22. Jan 15:58 ..
drwxr-xr-x 2 root root 4096 22. Jan 15:58 components
-rwxr-xr-x 1 root root 405732 21. Jan 22:23 kchmviewer
-rwxr-xr-x 1 root root 95556 21. Jan 22:23 VBoxDbg.so
-rw-r--r-- 1 root root 15881 21. Jan 22:19 VBoxDD2GC.gc
-rw-r--r-- 1 root root 15881 21. Jan 22:19 VBoxDD2R0.r0
-rwxr-xr-x 1 root root 181640 21. Jan 22:23 VBoxDD2.so
-rw-r--r-- 1 root root 98913 21. Jan 22:19 VBoxDDGC.gc
-rw-r--r-- 1 root root 97230 21. Jan 22:19 VBoxDDR0.r0
-rwxr-xr-x 1 root root 1798156 21. Jan 22:23 VBoxDD.so
-rwxr-xr-x 1 root root 158316 21. Jan 22:23 VBoxDDU.so
-rwxr-xr-x 1 root root 34236 21. Jan 22:23 VBoxGuestPropSvc.so
-rwsr-x--- 1 root root 22192 21. Jan 22:23 VBoxHeadless
-rwxr-xr-x 1 root root 50616 21. Jan 22:23 VBoxHeadless.so
-rwxr-xr-x 1 root root 53628 21. Jan 22:23 VBoxKeyboard.so
-rwxr-xr-x 1 root root 493628 21. Jan 22:23 VBoxManage
-rwxr-xr-x 1 root root 124260 21. Jan 22:23 VBoxOGLhostcrutil.so
-rwxr-xr-x 1 root root 84096 21. Jan 22:23 VBoxOGLhosterrorspu.so
-rwxr-xr-x 1 root root 96524 21. Jan 22:23 VBoxOGLrenderspu.so
-rwxr-xr-x 1 root root 168616 21. Jan 22:23 VBoxPython.so
-rwxr-xr-x 1 root root 445256 21. Jan 22:23 VBoxREM32.so
-rwxr-xr-x 1 root root 506696 21. Jan 22:23 VBoxREM64.so
-rwxr-xr-x 1 root root 13692 21. Jan 22:23 VBoxREM.so
-rwxr-xr-x 1 root root 495220 21. Jan 22:23 VBoxRT.so
-rwsr-x--- 1 root root 22188 21. Jan 22:23 VBoxSDL
-rwxr-xr-x 1 root root 128464 21. Jan 22:23 VBoxSDL.so
-rwxr-xr-x 1 root root 67000 21. Jan 22:23 VBoxSettings.so
-rwxr-xr-x 1 root root 34184 21. Jan 22:23 VBoxSharedClipboard.so
-rwxr-xr-x 1 root root 647188 21. Jan 22:23 VBoxSharedCrOpenGL.so
-rwxr-xr-x 1 root root 30084 21. Jan 22:23 VBoxSharedFolders.so
-rwxr-xr-x 1 root root 1398300 21. Jan 22:23 VBoxSVC
-rwxr-xr-x 1 root root 1271320 21. Jan 22:23 VBoxVMM.so
-rwxr-xr-x 1 root root 162504 21. Jan 22:23 VBoxVRDP.so
-rwxr-xr-x 1 root root 5380660 21. Jan 22:23 vboxwebsrv
-rwxr-xr-x 1 root root 22372 21. Jan 22:23 VBoxXPCOMIPCD
-rwxr-xr-x 1 root root 977716 21. Jan 22:23 VBoxXPCOM.so
-rwsr-x--- 1 root root 22192 21. Jan 22:23 VirtualBox
-rwxr-xr-x 1 root root 3466976 21. Jan 22:23 VirtualBox.so
-rw-r--r-- 1 root root 416033 21. Jan 22:19 VMMGC.gc
-rw-r--r-- 1 root root 543611 21. Jan 22:19 VMMR0.r0
-rwxr-xr-x 1 root root 9640 21. Jan 22:23 VRDPAuth.so
-rwxr-xr-x 1 root root 4786204 21. Jan 22:23 webtest

Posted: 22. Jan 2009, 22:51
by Sasquatch
So what is your setup? What are you doing to get this error? You don't say much, but expect all the more from us. Please provide more info, as we ask in the Forum Posting Guide.

Posted: 23. Jan 2009, 07:46
by stringaling
I have the same problem, so perhaps I can provide some more details:

I am running open suse 11.1, with virtualbox 2.1.2

After installing the RPM, and adding the group to my user, followed by logout/login, I am unable to run the VirtualBox script without getting the same error.

It does run if I su to root. It looks like the RPM script wasn't setting the file permission correctly. As documented by herrmeiser.

herrmeiser -- try this. Your Virtualbox doesn't have the 'x' bit set for user.

chmod 4711 /usr/lib/virtualbox/VirtualBox

Posted: 23. Jan 2009, 10:42
by herrmeier
Thanks for replying so fast.
I'll try that. In another opensuse 11, my installation ran smoothly.
A difference was that the following files had different rights.
-rwsr-x--- 1 root vboxusers 22916 19. Dez 10:08 VBoxHeadless
-rwsr-x--- 1 root vboxusers 22912 19. Dez 10:08 VBoxSDL
-rwsr-x--- 1 root vboxusers 22916 19. Dez 10:08 VirtualBox
But changing that didn't work out either. It just told me to run setup
again, which I did.
But then it just told me again:
user@pc:~> VirtualBox
/usr/bin/VirtualBox: line 72: /usr/lib/virtualbox/VirtualBox: Keine Berechtigung
/usr/bin/VirtualBox: line 72: exec: /usr/lib/virtualbox/VirtualBox: cannot execute: Erfolg
Does it make any difference that I have some virtualbox-stuff in my
/tmp - folder?
I could remove that.

@Sasquatch: I've searched the error with google, looked at some threads
in this forum, the system I'm having problems with is the one in my
signature.
What could help?
/var/log/messages? I'm eager to post but I don't want to post too much in order not to bother the reader.

@stringaling:

thanks, I'll try that too.

best regards

herrmeier

Posted: 24. Jan 2009, 03:53
by rschaffter
I had the same problem-It worked last week, but didn't today. I uninstalled it and installed 2.1.2 to no effect.

I fixed it by changing the permissions of /usr/lib/virtualbox/VirtualBox; it was set to 750, so I changed to 755 and reset the advanced permission to enable Set UID and it seems to work.

However, I've no idea what changed to make it a problem.

Cheers,

Rod Schaffter

Posted: 24. Jan 2009, 20:13
by udo131
I also have the same problem. I followed your tip changing the permissions of /usr/lib/virtualbox/VirtualBox to 755, but I have no idea how to reset the advanced permission to enable Set UID.
Please explain to a new user.
Greetings
udo131

Posted: 24. Jan 2009, 20:25
by Sasquatch
udo131 wrote:I also have the same problem. I followed your tip changing the permissions of /usr/lib/virtualbox/VirtualBox to 755, but I have no idea how to reset the advanced permission to enable Set UID.
Please explain to a new user.
Greetings
udo131
To set UID root, run "chmod 4755". Either as root directly, or using sudo.

Posted: 25. Jan 2009, 12:13
by udo131
Hello,
thank you Sasquatch, now its working fine.
I also had to remove a directory from tmp called .vbox-'username'-ipc that was owned by root.
Greetings
udo131
Sasquatch wrote:
udo131 wrote:I also have the same problem. I followed your tip changing the permissions of /usr/lib/virtualbox/VirtualBox to 755, but I have no idea how to reset the advanced permission to enable Set UID.
Please explain to a new user.
Greetings
udo131
To set UID root, run "chmod 4755". Either as root directly, or using sudo.

2.1.2 VirtualBox will not run due to executable mode vs GID

Posted: 25. Jan 2009, 23:11
by rnsc
Problem is that all of the executables are owner:root, group:root and mode 4750.

Only user or group root can run them. Making the vboxusers group would have made sense if the executable group were vboxusers. Then those people would have been able to run the executables with 4750 mode.

You broadened the permissions to let the whole world run them.

So the questions (Is anyone on the Virtual Box team reading?) are:

What is the list of files?

What are the correct owner and group IDs?

What are the correct file modes?

What is the cause - does the installer have a defect that it does not set things, or is there an interaction with our systems that keeps it from working correctly? Let us know if there is any information we can send you.

Then we can fix correctly.

I got this same effect installing on OpenSuse 11.1 with:

Yast2 -i Virtual...rpm
or with:
rpm -ihv Virtual...rpm

--Ray

Fix: Works

Posted: 26. Jan 2009, 00:10
by rnsc
As I said, I think the file modes are as intended and that the file GID is wrong. So I did the following:

chgrp vboxusers VBoxHeadless VBoxSDL VirtualBox

This clears the SetUID bit, so I then had to restore the file modes:

chmod 4750 VBoxHeadless VBoxSDL VirtualBox

So far seems to work. Windows 2K is installing.

--Ray

Posted: 28. Jan 2009, 02:33
by Sasquatch
This is the output on my Ubuntu Host, where it did not have this issue:

Code: Select all

(/home/sasquatch $)-> which VirtualBox
/usr/bin/VirtualBox
(/home/sasquatch $)-> ls -l /usr/bin/VirtualBox 
lrwxrwxrwx 1 root root 4 2009-01-22 18:44 /usr/bin/VirtualBox -> VBox
(/home/sasquatch $)-> ls -l /usr/bin/VBox
-rwxr-xr-x 1 root root 2384 2009-01-21 20:22 /usr/bin/VBox