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

Discussions related to using VirtualBox on Linux hosts.
Post Reply
herrmeier
Posts: 18
Joined: 20. Nov 2008, 01:15

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

Post 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
Kubuntu 13.10 - raspbian - Windows 7 - ubuntu server 13.10 - virtualbox 4.3.10
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
stringaling
Posts: 1
Joined: 23. Jan 2009, 07:29

Post 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
herrmeier
Posts: 18
Joined: 20. Nov 2008, 01:15

Post 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
Kubuntu 13.10 - raspbian - Windows 7 - ubuntu server 13.10 - virtualbox 4.3.10
rschaffter
Posts: 11
Joined: 1. Dec 2007, 16:29

Post 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
udo131
Posts: 2
Joined: 24. Jan 2009, 20:06

Post 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
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
udo131
Posts: 2
Joined: 24. Jan 2009, 20:06

Post 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.
rnsc
Posts: 4
Joined: 25. Jan 2009, 22:59

2.1.2 VirtualBox will not run due to executable mode vs GID

Post 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
rnsc
Posts: 4
Joined: 25. Jan 2009, 22:59

Fix: Works

Post 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
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post 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
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply