Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am running an Ubuntu Server (12.0.4-beta2; kernel 3.2.0) in VirtualBox (host is Win7) and I want to use shared folders. I've followed the manual to set up vbox guest additions http://www.virtualbox.org/manual/ch04.html#idp5801200 but this error occurs with every startup:

Starting the VirtualBox Guest Additions ...fail!
(modprobe vboxguest failed)
Starting VirtualBox Guest Addition service VirtualBox Additions module not loaded!

When I try it myself:

$ modprobe vboxguest
FATAL: Module vboxguest not found.

Did I do something wrong, what do I need to fix it? Thanks for help.

share|improve this question
    
Put some kmesg on pastebin and post the link? –  billc.cn Apr 15 '12 at 1:25
    
Thanks. How do I do this? cat /proc/kmsg doesn't write anything. –  Andrew123321 Apr 15 '12 at 9:56
    
Sorry, it should be sudo dmesg > file.log –  billc.cn Apr 15 '12 at 9:58
    
Here it is pastebin.com/TNvh9cNQ –  Andrew123321 Apr 16 '12 at 10:44
add comment

2 Answers

up vote 2 down vote accepted

I had this problem today, and solved it by installing the kernel-headers

yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers 

then

yum install kernel-devel

or

yum install kernel-pae-devel

Then re-run VBoxLinuxAdditions.run.

share|improve this answer
    
For people coming across this in the future, this did the trick perfectly for me on a fresh install of CentOS 6.2 –  AndyPerfect May 16 '12 at 23:25
    
This works because VBoxLinuxAdditions.run compiles the VirtualBox kernel modules, but doesn't quite mention this when it fails. –  Piskvor Feb 27 at 16:10
add comment

I had a similar problem today, but it turns out the vagrant-vbguest plugin was not installed. So, in the folder with my Vagrantfile:

vagrant plugin install vagrant-vbguest

That solved it for me.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.