Page 1 of 1

Install of guest additions fails every time

Posted: 11. May 2013, 02:19
by xucaen
I am following the instruction at virtualbox (dot) org (slash) manual (slash) ch04 (dot) html (pound) idp12039536

the above link notation was required due to the forum's limitations.

I have windows 7 64 host
Kubuntu 13.04 guest

I have installed, uninstalled, purged, reinstalled headers

I have installed, uninstalled, purged, reinstalled dkms

I have installed, uninstalled, purged, reinstalled virtualbox-guest-additions-iso

I have installed, uninstalled, purged, reinstalled autoconf

I have installed, uninstalled, purged, reinstalled make, gcc, g++

I have installed, uninstalled, purged, reinstalled linux-headers-3.2.0-41-generic-pae (this is the result of uname -r as well as uname -a)

and if you are familiar with apt-get it installed all dependencies too so please assume installing these packages also installed their respective dependencies. If I need to do something based on the information below please let me know.

But I am leaning towards a bug in the vbox source code as per this line from the log:

/tmp/vbox.0/utils.c:112:9: error: assignment of read-only member ‘i_nlink’



Thanks!


root@defiant:~# /etc/init.d/vboxadd setup
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.

Building the main Guest Additions module ...done.
Building the shared folder support module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
root@defiant:~#

Attaching the vboxadd-install.log

Re: Install of guest additions fails every time

Posted: 11. May 2013, 04:10
by loukingjr
make sure no other headers are installed other than linux-headers-3.2.0-41-generic-pae.

Re: Install of guest additions fails every time

Posted: 12. May 2013, 22:07
by xucaen
I did: apt-get --purge remove linux-header*


The following packages will be REMOVED:
linux-generic* linux-headers-3.2.0-41* linux-headers-3.2.0-41-generic* linux-headers-3.2.0-41-generic-pae*
linux-headers-generic*
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
After this operation, 78.9 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 127715 files and directories currently installed.)
Removing linux-generic ...
Removing linux-headers-3.2.0-41-generic-pae ...
Removing linux-headers-generic ...
Removing linux-headers-3.2.0-41-generic ...
Removing linux-headers-3.2.0-41 ...



Then I tried to reinstall the correct headers but somehow virtualbox is interfering with the install. Here is the output:


root@defiant:# uname -r
3.2.0-41-generic-pae
root@defiant:# apt-get install linux-headers-3.2.0-41-generic-pae
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
linux-headers-3.2.0-41
The following NEW packages will be installed:
linux-headers-3.2.0-41 linux-headers-3.2.0-41-generic-pae
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/12.7 MB of archives.
After this operation, 67.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously unselected package linux-headers-3.2.0-41.
(Reading database ... 96965 files and directories currently installed.)
Unpacking linux-headers-3.2.0-41 (from .../linux-headers-3.2.0-41_3.2.0-41.66_all.deb) ...
Selecting previously unselected package linux-headers-3.2.0-41-generic-pae.
Unpacking linux-headers-3.2.0-41-generic-pae (from .../linux-headers-3.2.0-41-generic-pae_3.2.0-41.66_i386.deb) ...
Setting up linux-headers-3.2.0-41 (3.2.0-41.66) ...
Setting up linux-headers-3.2.0-41-generic-pae (3.2.0-41.66) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-41-generic-pae /boot/vmlinuz-3.2.0-41-generic-pae
ERROR (dkms apport): binary package for vboxguest: 4.1.2 not found
Error! Bad return status for module build on kernel: 3.2.0-41-generic-pae (i686)
Consult /var/lib/dkms/vboxguest/4.1.2/build/make.log for more information.

The instruction on the VirtualBox web site did not account for this and does not provide accurate instructions for this scenario. This is a bug and should either be corrected or have a work around. Has either of these options been explored yet?


I hope this is helpful. It seems I am going to have to try a different virtual machine until VirtualBox is fixed.

Re: Install of guest additions fails every time

Posted: 12. May 2013, 22:11
by xucaen
I am attaching /var/lib/dkms/vboxguest/4.1.2/build/make.log

Re: Install of guest additions fails every time

Posted: 12. May 2013, 23:06
by loukingjr
if I remember correctly, and I may not, any Ubuntu based distro since 12.04 needs VirtualBox 4.2.* to run. I'm sure someone will correctly me if I'm wrong :)

edit: just for your info, VirtualBox 4.1.2 was released nearly two years ago and there have been something like a dozen releases since.

Re: Install of guest additions fails every time

Posted: 13. May 2013, 23:35
by xucaen
I don't think I have a choice. This is the virtual box version that came with this distro of linux. I'll just go with another virtual machine. All I want is to set up Eclipse and compile some socket source code.

Re: Install of guest additions fails every time

Posted: 13. May 2013, 23:40
by noteirak
We do not support any other version than the official one, available here.

Re: Install of guest additions fails every time

Posted: 14. May 2013, 00:35
by loukingjr
xucaen wrote:I don't think I have a choice. This is the virtual box version that came with this distro of linux. I'll just go with another virtual machine. All I want is to set up Eclipse and compile some socket source code.
Well, I'm running Kubunru 13.04 as a guest in VirtualBox 4.2.12 so I guess you do have a choice. I don't know what version of VirtualBox you are running Kubuntu in or even if you are running it in VirtualBox. I just checked the repos for Kubuntu 13.04 and the version of VirtualBox and the guest additions in the repos is 4.2.10. I haven't a clue where you got VB 4.1.2 from.

Re: Install of guest additions fails every time

Posted: 18. May 2013, 01:09
by xucaen
I have 4.2.12 r84980 copyright 2013. I believe as you suggested that the problems I am having stem from the fact that Ubuntu is not providing the correct nor the official versions of the guest additions. I would wholeheartedly enjoy using the official and latest versions. Can you please provide a direct link to the offical linux version of the virtualbox-guess-additions.iso? I don't want to use unsupported packages.

thank you.

Re: Install of guest additions fails every time

Posted: 18. May 2013, 01:43
by Perryg
http://download.virtualbox.org/virtualbox/4.2.12/

Be sure to purge the guest additions that are already installed. It will get worse if you don't.

BUT! Since you must be running the VirtualBox from VirtualBox.org since you are running Windows as host, the guest additions are already there in your install. Start the guest and click the devices tab at the top and then click the install guest additions. See these instructions for further information.

This should help Howto: Install Linux Guest Additions

Re: Install of guest additions fails every time

Posted: 18. May 2013, 16:09
by xucaen
I got everything up and running now, thank you! Unfortunately I had to create a new virtual machine and install a fresh linux into it. All of my mucking around literally broke the linux build I was using.. At any rate, It is working now

I think the confusion was that all the instructions I had been reading never mentioned the Device menu option. So those instructions I had been reading must have been out dated or something.

Thanks!