Guest Additions installation error

Discussions about using Linux guests in VirtualBox.
Post Reply
parnmatt
Posts: 2
Joined: 16. Jul 2010, 23:42
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Ubuntu Server

Guest Additions installation error

Post by parnmatt »

I have no idea what I'm doing, I've chosen to give a pure CLI guest ago, I've tried ArchLinux, but I ended up going with Ubuntu Server purely because I'm more familiar with Ubuntu.

I've followed the instructions to the letter, on different sites, including the documentation on these forums and on the site proper.

I keep getting an error —I believe understand the problem, but have no idea what I need to do.

The error was located:

Code: Select all

/var/log/vboxadd-install.log
and contains this information (hand-typed from what I saw in vim):

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.
Is there any suggestions on how to get Guest Additions installed and working? …I need them for mounting (via Share Folder) my home directory on from my host.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Guest Additions installation error

Post by Perryg »

This should help Howto: Install Linux Guest Additions + Xorg config
Keep in mind that since this is a server and you do not have xserver you will need to use the switch nox11.
Use the --help after the command to see all of the switches.
Hanzerik
Posts: 5
Joined: 29. Jun 2010, 20:31
Primary OS: Linux other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows/Linux

Re: Guest Additions installation error

Post by Hanzerik »

Log into your Ubuntu Server VM and type:
sudo apt-get install linux-headers-`uname -r` build-essential dkms

That should install everything your guest will need to compile and load 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: Guest Additions installation error

Post by Sasquatch »

Hanzerik wrote:Log into your Ubuntu Server VM and type:
sudo apt-get install linux-headers-`uname -r` build-essential dkms

That should install everything your guest will need to compile and load kernel modules.
Oh please, don't give just one command when there is an extensive howto about it explaining everything he/she needs to know to get it to work properly. Your command is even ambiguous, you don't need to specify the linux headers when you're going to install build-essential and dkms.
You make it appear that you know it better than a moderator (two actually, you ignore my howto too).
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.
Hanzerik
Posts: 5
Joined: 29. Jun 2010, 20:31
Primary OS: Linux other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows/Linux

Re: Guest Additions installation error

Post by Hanzerik »

Well, He obviously knows how to get the Additions ISO mounted, so he can skip that part of the How-To, He is not installing the Additions on a system with Xorg so he can skip that part of the How-To also. He is just having a problem with installing the additions...so my one line command will work for him/her without having to sort through that How-to. And what is the problem with using linux-headers-`uname -r` ...That will fetch the headers of his current running kernel...nothing wrong with that command.

Not sure why you are getting upset for me posting a simple one liner to get what he needs to get the Additions installed. It's not rocket science.
parnmatt
Posts: 2
Joined: 16. Jul 2010, 23:42
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Ubuntu Server

Re: Guest Additions installation error

Post by parnmatt »

I already used that guide, and followed it too as best I can and that's why I turned to asking this forum
Hanzerik wrote:Log into your Ubuntu Server VM and type:
sudo apt-get install linux-headers-`uname -r` build-essential dkms

That should install everything your guest will need to compile and load kernel modules.
Actually this was just what I needed, thank you.
As for everyone else, thank you for your insights.

Thanks again
Hanzerik
Posts: 5
Joined: 29. Jun 2010, 20:31
Primary OS: Linux other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows/Linux

Re: Guest Additions installation error

Post by Hanzerik »

Your Welcome
pariksheetsharma
Posts: 1
Joined: 5. Nov 2010, 23:00
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: ubuntu

Re: Guest Additions installation error

Post by pariksheetsharma »

The one line did the magic. Actually the `uname -r` thing is not so visible in search results. Good job! :D
Post Reply