How to install guest additions successfully

Discussions related to using VirtualBox on Windows hosts.
Post Reply
yahoohoo
Posts: 6
Joined: 17. Jan 2009, 18:17

How to install guest additions successfully

Post by yahoohoo »

I got VirtualBox installed on WinXP. The guest os is Fedora 8 with following kernel:

[root@localhost VBOXADDITIONS_2.1.0_41146]# rpm -qa | grep kernel
kernel-headers-2.6.26.8-57.fc8
kernel-xen-2.6.21.7-5.fc8
kernel-debug-2.6.26.8-57.fc8
kernel-debug-2.6.26.6-49.fc8
kernel-PAE-2.6.26.6-49.fc8
kernel-devel-2.6.26.6-49.fc8
kernel-devel-2.6.26.8-57.fc8
kernel-PAE-2.6.26.8-57.fc8
kernel-2.6.26.6-49.fc8
kernel-2.6.26.8-57.fc8

When installing guest additions, I got the following hint:
[root@localhost VBOXADDITIONS_2.1.0_41146]# sh ./VBoxLinuxAdditions-x86.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 2.1.0 Guest Additions for Linux installation.......................................................................................................................................................................................................
VirtualBox 2.1.0 Guest Additions installation
Please install the build and header files for your current Linux kernel.
The current kernel version is 2.6.26.8-57.fc8
Problems were found which would prevent the Guest Additions from installing.
Please correct these problems and try again.

Anyone help me? Thanks!
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

RTFM.

One of the most discussed topics. Read the Installation chapter for the guest additions in the manual.
yahoohoo
Posts: 6
Joined: 17. Jan 2009, 18:17

Post by yahoohoo »

I did follow the instruction on the manual. But it did not work.
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

Say exact what you have done.

Post output from

rpm -qa | grep gcc
rpm -qa | grep make
rpm -qa | grep kernel
yahoohoo
Posts: 6
Joined: 17. Jan 2009, 18:17

Post by yahoohoo »

install dkms

sh ./VBoxLinuxAdditions-x86.run


[hu@localhost VBOXADDITIONS_2.1.0_41146]$ rpm -qa | grep gcc
gcc-c++-4.1.2-33
gcc-4.1.2-33
gcc-java-4.1.2-33
gcc-gfortran-4.1.2-33
libgcc-4.1.2-33
compat-gcc-34-g77-3.4.6-8
compat-gcc-34-3.4.6-8
[hu@localhost VBOXADDITIONS_2.1.0_41146]$ rpm -qa | grep make
texmaker-1.8-1.fc8
make-3.81-11.fc8
[hu@localhost VBOXADDITIONS_2.1.0_41146]$ rpm -qa | grep kernel
kernel-headers-2.6.26.8-57.fc8
kernel-xen-2.6.21.7-5.fc8
kernel-debug-2.6.26.8-57.fc8
kernel-debug-2.6.26.6-49.fc8
kernel-PAE-2.6.26.6-49.fc8
kernel-devel-2.6.26.6-49.fc8
kernel-devel-2.6.26.8-57.fc8
kernel-PAE-2.6.26.8-57.fc8
kernel-2.6.26.6-49.fc8
kernel-2.6.26.8-57.fc8
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

Why are all kernel-packages installed? Nonsense.

What says "uname -r"?
gmendex
Posts: 3
Joined: 18. Jan 2009, 01:52

Post by gmendex »

I have same problem too. I have reisntalled fedora 9 compleate from cd. still got same error as yahoohoo.. I like to install guest additions soft to get access to a windows folder and 1021x768 resolutions. Kernel from cd is 2.6.25-14-fc9.i686 updated/upgraded to 2.6.27.9-73.fc9.i686. Same error with both kernels.

Host: vista 32
Guest: fedora 9
Vbox 2.10

rpm qa | grep kernel
kernel-firmware-2.6.27.9-73.fc9.noarch
kernel-2.6.25-14.fc9.i686
kernel-headers-2.6.27.9-73.fc9.i386
kernel-2.6.27.9-73.fc9.i686
kerneloops-0.12-1.fc9.i386

rpm -qa |grep make
automake14-1.4p6-15.fc7.noarch
automake17-1.7.9-11.noarch
imake-1.0.2-6.fc9.i386
make-3.81-12.fc9.i386
automake16-1.6.3-14.noarch
automake-1.10.1-2.noarch
automake15-1.5-23.noarch

rpm -qa |grep gcc
gcc-java-4.3.0-8.i386
libgcc-4.3.0-8.i386
gcc-gfortran-4.3.0-8.i386
gcc-4.3.0-8.i386
gcc-c++-4.3.0-8.i386

uname -r
2.6.27.9-73.fc9.i686

so, What else to do?
gmendex
Posts: 3
Joined: 18. Jan 2009, 01:52

Post by gmendex »

Please forget my previous post.

I read Section 4.3.1 of manual, after run

yum install dkms

installations of guest additions run without problem.
yahoohoo
Posts: 6
Joined: 17. Jan 2009, 18:17

Post by yahoohoo »

uname -r
kernel-2.6.26.8-57.fc8

I also did as 4.3.1 says. But it didn't work
yahoohoo
Posts: 6
Joined: 17. Jan 2009, 18:17

Post by yahoohoo »

I remove kernel-*, and reinstall dmks and guestadditions. It's OK now.
There seems to be some conflicts between the kernel-* files.
Post Reply