VBoxLinuxAdditions won't install properly

Discussions related to using VirtualBox on Mac OS X hosts.
imagineer
Posts: 10
Joined: 7. Jul 2010, 06:59
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 LTS

VBoxLinuxAdditions won't install properly

Post by imagineer »

First virtualbox, thanks a bundle for a brilliant program!
No matter how I try to install "VBoxLinuxAdditions-x86.run" I end up with a failed installation that includes this note:-
"Your system does not seem to be set up to build kernel modules"
I was told to look here (below) to see what went wrong, it looks like wallpaper to me.
Does anyone out there have a clue what's going on here?

Thanks!!

cat /var/log/vboxadd-install.log
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.32-21-generic/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/vbox.0
gcc -Wp,-MD,/tmp/vbox.0/.test.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.4.3/include -Iinclude -I/usr/src/linux-headers-2.6.32-21-generic/arch/x86/include -include include/linux/autoconf.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -I/lib/modules/2.6.32-21-generic/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 -DIN_SUP_R0 -DVBGL_VBOXGUEST -DVBGL_HGCM -DVBOX_WITH_HGCM -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(test)" -D"KBUILD_MODNAME=KBUILD_STR(vboxadd_test)" -c -o /tmp/vbox.0/.tmp_test.o /tmp/vbox.0/test.c
cc1: error: unrecognized command line option "-fno-omit-frame-pointer"
cc1: error: unrecognized command line option "-fno-optimize-sibling-calls"
make[2]: *** [/tmp/vbox.0/test.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxadd_test] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBoxLinuxAdditions won't install properly

Post by Perryg »

imagineer
Posts: 10
Joined: 7. Jul 2010, 06:59
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 LTS

Re: VBoxLinuxAdditions won't install properly

Post by imagineer »

Thanks Perryg, followed "Howto: Install Linux Guest Additions + Xorg config" to the letter, left our the Xorg, I'm not configuring a server.

Code: Select all

sudo apt-get install build-essential linux-headers-generic[sudo] password for imagineer: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
linux-headers-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 214 not upgraded.
-Installed new DKMS fro Synaptic Manager
-Reboot
-Then running

Code: Select all

sudo sh ./VBoxLinuxAdditions-x86.run

Code: Select all

sudo mount /dev/scd0 /media/cdrom
[sudo] password for imagineer: 
mount: mount point /media/cdrom does not exist
imagineer@UbuntuHD:~$ cd ..
imagineer@UbuntuHD:/home$ cd ..
imagineer@UbuntuHD:/$ cd /media
imagineer@UbuntuHD:/media$ ls
VBOXADDITIONS_3.2.6_63112
imagineer@UbuntuHD:/media/VBOXADDITIONS_3.2.6_63112$ ls
32Bit        VBoxLinuxAdditions-amd64.run    VBoxWindowsAdditions.exe
64Bit        VBoxLinuxAdditions-x86.run      VBoxWindowsAdditions-x86.exe
AUTORUN.INF  VBoxSolarisAdditions.pkg
autorun.sh   VBoxWindowsAdditions-amd64.exe
imagineer@UbuntuHD:/media/VBOXADDITIONS_3.2.6_63112$ sudo sh ./VBoxLinuxAdditions-x86.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.2.6 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing installed version 3.2.6 of VirtualBox Guest Additions...
tar: Record size = 8 blocks
Building the VirtualBox Guest Additions kernel modules ...fail!
Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong.  Once you have corrected it, you can
Run /etc/init.d/vboxadd setup to build them.
Doing non-kernel setup of the Guest Additions ...done.
Installing the Window System drivers
Installing X.Org Server 1.7 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.
Installing graphics libraries and desktop services components ...done.
imagineer@UbuntuHD:/media/VBOXADDITIONS_3.2.6_63112$ 
I'm a newbie at this and can't get any further, I must have googled 100 pages upward...
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBoxLinuxAdditions won't install properly

Post by Perryg »

Let's try this step-by-step then.
  • Start the Ubuntu guest. (I am assuming that you have the desktop version).
    Open a terminal.
    Type sudo -i <press enter> (enter your password) <press enter>
    type apt-get update <press enter>
    type apt-get upgrade <press enter>
    after this reboot
    Open the terminal again.
    Type sudo -i <press enter> (enter your password) <press enter>
    Type apt-get install linux-headers-generic <press enter>
    Type apt-get install build-essential <press enter>
    Now look up at the top left of the VBox window and click devices then click install guest additions.
    If they do not show on the desktop then click devices and unmount CD, then click install guest additions again.
    At this point they should be on your desktop. Dbl click to open the CD.
    Look for the Linux Guess Additions that fits you install. More than likely the VBoxLinuxAdditions-x86.run
    Position the terminal windows and the opened file system to where you can see them both.
    Click and drag the right additions file and drop it on the terminal window.
    Click on the terminal window to get focus and hit enter.
    Watch for any errors that show and when they are complete reboot.
    Let me know if you encounter any errors. If all is well you use the click drag to make the window bigger or use the host+F toggle to go in and out of full screen
You probably don't need to do everything but it will not hurt it will just say it is already installed.
imagineer
Posts: 10
Joined: 7. Jul 2010, 06:59
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 LTS

Re: VBoxLinuxAdditions won't install properly

Post by imagineer »

Hi PerryG
Thanks for your time on this.
Done everything you suggested, full upgrade, update, headers, essentials -only the VBA installer WILL not install onto the desktop (tried 5 x), installs in "Places" under the Computer Icon. When I double click that it puts an icon on the desktop and opens a VBox File Browser.
Installed as to your recommendations. (x-86)
Same old same old again.
No screen resize, same scroll bars.

Code: Select all

$ sudo -i 
[sudo] password for imagineer: 
root@UbuntuHD:~# apt-get install linux-headers-generic 
Reading package lists... Done 
Building dependency tree       
Reading state information... Done 
linux-headers-generic is already the newest version. 
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 
root@UbuntuHD:~# apt-get install build-essential 
Reading package lists... Done 
Building dependency tree       
Reading state information... Done 
build-essential is already the newest version. 
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 
root@UbuntuHD:~# '/media/VBOXADDITIONS_3.2.6_63112/VBoxLinuxAdditions-x86.run' 
Verifying archive integrity... All good. 
Uncompressing VirtualBox 3.2.6 Guest Additions for Linux......... 
VirtualBox Guest Additions installer 
Removing installed version 3.2.6 of VirtualBox Guest Additions... 
tar: Record size = 8 blocks 
Building the VirtualBox Guest Additions kernel modules ...fail! 
Your system does not seem to be set up to build kernel modules. 
Look at /var/log/vboxadd-install.log to find out what went wrong.  Once you have corrected it, you 
can 
run 
  /etc/init.d/vboxadd setup 
to build them. 
Doing non-kernel setup of the Guest Additions ...done. 
Installing the Window System drivers 
Installing X.Org Server 1.7 modules ...done. 
Setting up the Window System to use the Guest Additions ...done. 
You may need to restart the hal service and the Window System (or just restart 
the guest system) to enable the Guest Additions. 
Installing graphics libraries and desktop services components ...done. 
root@UbuntuHD:~# 
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: VBoxLinuxAdditions won't install properly

Post by Sasquatch »

Did you read this part?
Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong.
Find out what is wrong and fix it. If you don't know how to fix it, post the error here.
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.
imagineer
Posts: 10
Joined: 7. Jul 2010, 06:59
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 LTS

Re: VBoxLinuxAdditions won't install properly

Post by imagineer »

Hi Sasquatch - yeah, I did read it, in fact, the var log printed out the same, after all the changes, as in my original post at the top of the page. We appear to have circled the mountain.
I still can't make hide nor hair of it. Forgive my ignorance, I'm new at this.
cat /var/log/vboxadd-install.log
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.32-23-generic/build SUBDIRS=/tmp/vbox.0
SRCROOT=/tmp/vbox.0 modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/vbox.0
gcc -Wp,-MD,/tmp/vbox.0/.test.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.4.3/include
-Iinclude -I/usr/src/linux-headers-2.6.32-23-generic/arch/x86/include -include
include/linux/autoconf.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-
format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-
return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -maccumulate-outgoing-args
-Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-
tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-omit-frame-
pointer -fno-optimize-sibling-calls -pg -I/lib/modules/2.6.32-23-generic/build/include
-I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE
-DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 -DIN_SUP_R0
-DVBGL_VBOXGUEST -DVBGL_HGCM -DVBOX_WITH_HGCM -DMODULE
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(test)"
-D"KBUILD_MODNAME=KBUILD_STR(vboxadd_test)" -c -o /tmp/vbox.0/.tmp_test.o
/tmp/vbox.0/test.c
cc1: error: unrecognized command line option "-fno-omit-frame-pointer"
cc1: error: unrecognized command line option "-fno-optimize-sibling-calls"
make[2]: *** [/tmp/vbox.0/test.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxadd_test] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: VBoxLinuxAdditions won't install properly

Post by Sasquatch »

I just reinstalled the GA on my own 10.04 VM and it does not show any error. It does build the modules using DKMS, it doesn't look like you have it installed. My howto says to install that package. Please do and retry the installation.
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.
imagineer
Posts: 10
Joined: 7. Jul 2010, 06:59
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 LTS

Re: VBoxLinuxAdditions won't install properly

Post by imagineer »

I originally built the modules using DKMS, following your HOW TO, but not after the later update and upgrade. Just reinstalled DKMS with the Synaptic Manager, reinstalled GA, ran, same old same old. I can't get past that "Your system does not seem to be set up to build kernel modules. "
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: VBoxLinuxAdditions won't install properly

Post by Sasquatch »

Then post the output of the following commands:

Code: Select all

dpkg -l linux-headers* linux-image*
uname -r
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.
imagineer
Posts: 10
Joined: 7. Jul 2010, 06:59
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 LTS

Re: VBoxLinuxAdditions won't install properly

Post by imagineer »

Code: Select all

~$ dpkg -l linux-headers* linux-image* uname -r
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
un  linux-headers  <none>         (no description available)
un  linux-headers- <none>         (no description available)
un  linux-headers- <none>         (no description available)
un  linux-headers- <none>         (no description available)
ii  linux-headers- 2.6.32-21.32   Header files related to Linux kernel version
ii  linux-headers- 2.6.32-21.32   Linux kernel headers for version 2.6.32 on i
ii  linux-headers- 2.6.32-21.32   Linux kernel headers for version 2.6.32 on x
ii  linux-headers- 2.6.32-23.37   Header files related to Linux kernel version
ii  linux-headers- 2.6.32-23.37   Linux kernel headers for version 2.6.32 on x
ii  linux-headers- 2.6.32.23.24   Generic Linux kernel headers
un  linux-image    <none>         (no description available)
un  linux-image-2. <none>         (no description available)
ii  linux-image-2. 2.6.32-21.32   Linux kernel image for version 2.6.32 on x86
ii  linux-image-2. 2.6.32-23.37   Linux kernel image for version 2.6.32 on x86
ii  linux-image-ge 2.6.32.23.24   Generic Linux kernel image
No packages found matching uname.
No packages found matching -r.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: VBoxLinuxAdditions won't install properly

Post by Sasquatch »

That's too bad, we can't see which kernel versions you have installed. I was wondering if you have any other kernel than -generic installed and which one you are running. As for the kernel you're running, you just run 'uname -r', you didn't have to run 'dpkg -l uname -r', else I would've put that in the post. They were two separate commands, one showing the installed kernel packages, the other showing the running kernel.
Can you post it again with a wider terminal?
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.
imagineer
Posts: 10
Joined: 7. Jul 2010, 06:59
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 LTS

Re: VBoxLinuxAdditions won't install properly

Post by imagineer »

Is this any better?

Code: Select all

dpkg -l linux-headers* linux-image*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                    Version                 Description
+++-=======================-=======================-==============================================================
un  linux-headers           <none>                  (no description available)
un  linux-headers-2.6       <none>                  (no description available)
un  linux-headers-2.6-686   <none>                  (no description available)
un  linux-headers-2.6-amd64 <none>                  (no description available)
ii  linux-headers-2.6.32-21 2.6.32-21.32            Header files related to Linux kernel version 2.6.32
ii  linux-headers-2.6.32-21 2.6.32-21.32            Linux kernel headers for version 2.6.32 on i386
ii  linux-headers-2.6.32-21 2.6.32-21.32            Linux kernel headers for version 2.6.32 on x86/x86_64
ii  linux-headers-2.6.32-23 2.6.32-23.37            Header files related to Linux kernel version 2.6.32
ii  linux-headers-2.6.32-23 2.6.32-23.37            Linux kernel headers for version 2.6.32 on x86/x86_64
ii  linux-headers-generic   2.6.32.23.24            Generic Linux kernel headers
un  linux-image             <none>                  (no description available)
un  linux-image-2.6         <none>                  (no description available)
ii  linux-image-2.6.32-21-g 2.6.32-21.32            Linux kernel image for version 2.6.32 on x86/x86_64
ii  linux-image-2.6.32-23-g 2.6.32-23.37            Linux kernel image for version 2.6.32 on x86/x86_64
ii  linux-image-generic     2.6.32.23.24            Generic Linux kernel image
root@UbuntuHD:/home/imagineer# uname -r
2.6.32-23-generic
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: VBoxLinuxAdditions won't install properly

Post by Sasquatch »

Barely, just enough to know what I needed to know. You do have the same kernel image and headers installed as you are running. That's good. Then it's really odd that you can't create kernel modules. The package 'build-essential' is installed too? It pretty much has to, as dkms depends on a lot of the packages that build-essential depend on too.
If it's not too much trouble, can you reinstall the Guest OS?
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.
imagineer
Posts: 10
Joined: 7. Jul 2010, 06:59
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 LTS

Re: VBoxLinuxAdditions won't install properly

Post by imagineer »

Yeah, I reinstalled updated build essentials yesterday following PerryG's instructions. Will reinstall guest OS.
That'll give you some peace for a while. Dank U wel en tot siens voor nu.
Post Reply