Page 1 of 1

Guest Additions installation problem

Posted: 1. Oct 2010, 11:40
by ahaider7
Hi guyz,

I have installed Fedora 13 as a guest OS in virtualbox, on a windows host. I need to share files between host and the guest. For this purpose, i first tried to install Guest Additions in linux but I am stuck at this step.

While installing the Guest Additions, I get this message

Code: Select all

Building the VirtualBox Guest Additions kernel modules     [FAILED]
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              [  OK  ]
Looking at the file /var/log/vboxadd-install.log, here is the error message

Code: Select all

Makefile:23: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again..  Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
How can I remove this error. I have these packages already installed (all of same version)
kernel
kernel-devel
kernel-headers

Re: Guest Additions installation problem

Posted: 1. Oct 2010, 12:18
by fixedwheel

Re: Guest Additions installation problem

Posted: 1. Oct 2010, 12:21
by ahaider7
fixedwheel wrote:its all in the Forums HowTo
I am already following this guide but my problem is not mentioned there. I have no issue with X server, rather I am stuck at stage of Install the GA.

Re: Guest Additions installation problem

Posted: 1. Oct 2010, 12:23
by fixedwheel
post the output of:

Code: Select all

rpm -qa|grep kernel

Re: Guest Additions installation problem

Posted: 1. Oct 2010, 12:34
by ahaider7
fixedwheel wrote:post the output of:

Code: Select all

rpm -qa|grep kernel
Thanks for you help. Here it the output

Code: Select all

abrt-addon-kerneloops-1.1.13-2.fc13.i686
kernel-2.6.34.7-56.fc13.i686
kernel-devel-2.6.34.7-56.fc13.i686
kernel-PAE-2.6.33.3-85.fc13.i686
kernel-headers-2.6.34.7-56.fc13.i686
kernel-PAE-2.6.34.7-56.fc13.i686

Re: Guest Additions installation problem

Posted: 1. Oct 2010, 13:24
by fixedwheel
... and please:

Code: Select all

uname -r
i think you are running one of:
kernel-PAE-2.6.33.3-85 (no matching ...-headers and ...-devel package)
... or kernel-PAE-2.6.34.7-56 (no matching kernel-PAE-devel package)

anyway, just do:

Code: Select all

yum install kernel-PAE-devel
if you are running the 2.6.33 PAE kernel: reboot; otherwise go ahead w/ the next try to install GA

Posted: 2. Oct 2010, 06:31
by ahaider7
Thanx a lot man. Installing kernel-PAE-devel does the job. Guest Additions is successfully installed.

But my problem is still not solved completely :( . Next step is mounting the shared folder in linux host. I tried the command

Code: Select all

mount -t vboxsf share /mnt/win
but it results in

Code: Select all

/sbin/mount.vboxsf: mounting failed with the error: Protocol error
Any Idea whats going on?

Re: Guest Additions installation problem

Posted: 2. Oct 2010, 11:27
by Sasquatch
The error is noted in my Howto: Use Shared Folders. It can also mean that you're trying to share a private folder, like My Documents or your profile folder and that Windows is not allowing access. Share a different folder, like a subfolder.

Re: Guest Additions installation problem

Posted: 2. Oct 2010, 12:40
by ahaider7
Thanx. I found it was naming problem.