Discussion:
guest addition, bad interpreter permission denied
Umarzuki Mochlis
2009-06-16 12:41:24 UTC
Permalink
I'm using debian lenny amd64 and vbox 2.2.4 r47978

what i did:
i clicked on install guest additon on guest window
cd to /media/cdrom0
Ran as root
# ./VboxLinuxAdditions-x86.run
*the guest is debian sid i386)

and i got this message
./VboxLinuxAdditions-x86.run: /bin/sh: bad interpreter: permission denied

What should i do? Did i missed anything?
--
Regards,

Umarzuki Mochlis
http://gameornot.net
Maciek Kaliszewski
2009-06-16 13:57:16 UTC
Permalink
Post by Umarzuki Mochlis
I'm using debian lenny amd64 and vbox 2.2.4 r47978
i clicked on install guest additon on guest window
cd to /media/cdrom0
Ran as root
# ./VboxLinuxAdditions-x86.run
*the guest is debian sid i386)
and i got this message
./VboxLinuxAdditions-x86.run: /bin/sh: bad interpreter: permission denied
What should i do? Did i missed anything?
What does show:

$ ls -la /bin/sh

$ ldd /bin/sh

$ mount |grep cdrom0

May be /media/cdrom0 is mounted with noexec then as root try

# mount /media/cdrom0 -o remount,exec


Regards
Maciek Kaliszewski
Umarzuki Mochlis
2009-06-16 14:35:43 UTC
Permalink
Post by Maciek Kaliszewski
Post by Umarzuki Mochlis
I'm using debian lenny amd64 and vbox 2.2.4 r47978
i clicked on install guest additon on guest window
cd to /media/cdrom0
Ran as root
# ./VboxLinuxAdditions-x86.run
*the guest is debian sid i386)
and i got this message
./VboxLinuxAdditions-x86.run: /bin/sh: bad interpreter: permission denied
What should i do? Did i missed anything?
$ ls -la /bin/sh
lrwxrwxrwx 1 root root 4 2009-06-15 14:51 /bin/sh -> bash
Post by Maciek Kaliszewski
$ ldd /bin/sh
linux-gate.so.1 => (0xb7f99000)
libncurses.so.5 => /lib/libncurses.so.5 (0xb7f5b000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7f57000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7df8000)
/lib/ld-linux.so.2 (0xb7f9a000)
Post by Maciek Kaliszewski
$ mount |grep cdrom0
/dev/hdc on /media/cdrom0 type iso9660
(ro,noexec,nosuid,nodev,user=umarzuki)
Post by Maciek Kaliszewski
May be /media/cdrom0 is mounted with noexec then as root try
# mount /media/cdrom0 -o remount,exec
this works but then

Please install the build and header files for your current Linux kernel.
The current kernel version is 2.6.29-2-686
Please install the GNU compiler.
This system does not seem to have support for OpenGL direct rendering.
VirtualBox requires Linux 2.6.27 or later for this. Please see the log
file /var/log/vboxadd-install.log if your guest uses Linux 2.6.27 and you
still see this message.
Problems were found which would prevent the Guest Additions from installing.
Please correct these problems and try again.

/var/log/vboxadd-install.log

Installing VirtualBox 2.2.4 Guest Additions, built Fri May 29 19:13:34 CEST
2009

Testing the setup of the guest system

Could not find the Linux kernel header files - the directories
/lib/modules/2.6.29-2-686/build/include and /usr/src/linux/include
do not exist.
Please install the GNU compiler.
Giving up due to the problems mentioned above.

guess i need to install gcc
Post by Maciek Kaliszewski
Regards
Maciek Kaliszewski
--
Regards,

Umarzuki Mochlis
http://gameornot.net
Umarzuki Mochlis
2009-06-16 14:55:54 UTC
Permalink
Finally made it installed by installing build-essential and
linux-headers-`uname -r` first.

thanks everyone.
Post by Umarzuki Mochlis
Post by Maciek Kaliszewski
Post by Umarzuki Mochlis
I'm using debian lenny amd64 and vbox 2.2.4 r47978
i clicked on install guest additon on guest window
cd to /media/cdrom0
Ran as root
# ./VboxLinuxAdditions-x86.run
*the guest is debian sid i386)
and i got this message
./VboxLinuxAdditions-x86.run: /bin/sh: bad interpreter: permission denied
What should i do? Did i missed anything?
$ ls -la /bin/sh
lrwxrwxrwx 1 root root 4 2009-06-15 14:51 /bin/sh -> bash
Post by Maciek Kaliszewski
$ ldd /bin/sh
linux-gate.so.1 => (0xb7f99000)
libncurses.so.5 => /lib/libncurses.so.5 (0xb7f5b000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7f57000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7df8000)
/lib/ld-linux.so.2 (0xb7f9a000)
Post by Maciek Kaliszewski
$ mount |grep cdrom0
/dev/hdc on /media/cdrom0 type iso9660
(ro,noexec,nosuid,nodev,user=umarzuki)
Post by Maciek Kaliszewski
May be /media/cdrom0 is mounted with noexec then as root try
# mount /media/cdrom0 -o remount,exec
this works but then
Please install the build and header files for your current Linux kernel.
The current kernel version is 2.6.29-2-686
Please install the GNU compiler.
This system does not seem to have support for OpenGL direct rendering.
VirtualBox requires Linux 2.6.27 or later for this. Please see the log
file /var/log/vboxadd-install.log if your guest uses Linux 2.6.27 and you
still see this message.
Problems were found which would prevent the Guest Additions from installing.
Please correct these problems and try again.
/var/log/vboxadd-install.log
Installing VirtualBox 2.2.4 Guest Additions, built Fri May 29 19:13:34 CEST
2009
Testing the setup of the guest system
Could not find the Linux kernel header files - the directories
/lib/modules/2.6.29-2-686/build/include and /usr/src/linux/include
do not exist.
Please install the GNU compiler.
Giving up due to the problems mentioned above.
guess i need to install gcc
Post by Maciek Kaliszewski
Regards
Maciek Kaliszewski
--
Regards,
Umarzuki Mochlis
http://gameornot.net
--
Regards,

Umarzuki Mochlis
http://gameornot.net
Frank Mehnert
2009-06-16 13:41:52 UTC
Permalink
Post by Umarzuki Mochlis
I'm using debian lenny amd64 and vbox 2.2.4 r47978
i clicked on install guest additon on guest window
cd to /media/cdrom0
Ran as root
# ./VboxLinuxAdditions-x86.run
*the guest is debian sid i386)
and i got this message
./VboxLinuxAdditions-x86.run: /bin/sh: bad interpreter: permission denied
What should i do? Did i missed anything?
The reason are most probably the permissions the virtual .iso image
is mounted. Try

sh ./VBoxLinuxAdditions-x86.run

Kind regards,

Frank
--
Dr.-Ing. Frank Mehnert Sun Microsystems, Inc. www.sun.com
Loading...