How to install Virtualbox guest additions on Ubuntu

This is a reminder to myself on how to install guest additions for Ubuntu 9.10 as a guest when using Sun VirtualBox. I’m currently using Sun Virtual Box 3, feel free to use it as is.

Type

sudo -i

This command will prompt you for the root password, please type it in.
Type

apt-get update

Type

apt-get upgrade

At this point if your upgrade has installed a new Linux Kernal then I would reboot. Otherwise don’t reboot and continue with the following instructions.

If you’ve rebooted then open a terminal and Type

sudo -i

other wise continue using your previous terminal.
Type

apt-get install linux-headers-generic

Type

apt-get install build-essential

Now look up at the top left of the VirtualBox window and click devices then click install guest additions.

You’ll notice that a CD icon will appear on your desktop called VBOXADDITION_3 (I’m currently running version 3 of VBOX, yours may be different.)

Use the command prompt you opened earlier
Type

/media/cdrom/autorun.sh

Exit the terminal unmount the CD and reboot your Ubuntu Guest OS. At this point I usually shutdown and take a snapshot but thats entirely up to yourself.

About billy

Senior IT Technician working in Edinburgh, Scotland.
This entry was posted in Computing Tips, Linux and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>