VirtualBox Installation on Ubuntu

Installing VirtualBox for any given Linux release (provided that VirtualBox dev have tested it for that release).

Okay straight to the point. Given any host as Linux release (e.g., 3.2.2), one can get VirtualBox up and running using the following method. The reason I write this is so that users also get that *aha!* and at the same time I also get that aha! without bothering to use search engine as I often use VirtualBox (almost exclusively sometimes). Just so you know, Host OS is what *hosts* Virtual Machines (known as guests). So, in this small note, I am trying to run VirtualBox 4.1.8 (latest stable release at the time of writing) on Linux 3.2.2 Host.

 
1. Become root, z master of the universe.
$ su -
 
2. Get the latest and greatest Linux from http://kernel.org/. Don't
install it just yet.
$ tar xf linux-3.2.2.tar.bz2
$ cd /tmp/linux-3.2.2/
   
3. Get the latest and greatest VirtualBox package for your distribution
from https://www.virtualbox.org/wiki/Linux_Downloads. Don't install it
just yet.
 
4. Copy the existing kernel ".config" to youand make modifications to
suit your need.
$ cp /boot/config-<some.kernel.version> /tmp/linux-3.2.2/.config
 
5. Make kernel packages (I am on Ubuntu)
$ cd /tmp/linux-3.2.2/
$ fakeroot make-kpkg --initrd --append-to-version=-3-2-2-kernel \
kernel-image kernel-headers
[...make yourself a coffee...]
 
6. Two debian packages kernel-image kernel-headers will be created in
the parent directory of your Linux source directory which can be
installed like this:
$ dpkg -i /tmp/linux-headers-<some.version>.deb
$ dpkg -i /tmp/linux-image-<some.version>.deb
 
7. Install VirtualBox package (I am on Ubuntu) making sure you uninstall
any old version.
$ dpkg -r <existing.virtualbox.if.any>
$ export KERN_DIR=/tmp/linux-3.2.2/
$ dpkg -i /tmp/virtualbox-4.1_4.1.8-75467~Ubuntu~natty_i386.deb
 
8. Reboot into the new kernel
9. Become root. Then setup VirtualBox kernel module:
$ su -
$ /etc/init.d/vboxdrv setup
$ /etc/init.d/vboxdrv restart
 
10. Fire up the latest and greatest VirtualBox.
$ VirtualBox (or even VBoxHeadless :-)


Jotted by ishwor Feb. 2, 2012
Bookmark and Share

Comments

No comment posted yet

Trackbacks

No trackbacks yet

Leave a Reply/Discuss







Spam Prevention: To post your comment without previewing it you need to complete the captcha below, type the words you see or hear into the box below. This helps stop spam from being posted to the site.
A Django site. Powered by Python.
Developed using djangle