What is VirtualBox?
VirtualBox is a general purpose cross-platform virtualizer. It can be run on Linux, Mac, Windows and Solaris systems.
Purpose of VirtualBox
- Simultaneously run multiple Operating Systems in a single machine
- No hardware virtualization needed
- Test systems, software without effecting your running system
- Pack complete solutions as a virtual image to save the burden on configuring systems from scratch
- Save cost on hardware, power and other infrastructure needs to run multiple systems to achieve a purpose.
- Host OS : The system that runs the VirtualBox application
- Guest OS : Systems run inside VirtualBox application
- Virtual Machine (VM) : This is the environment which your Guest OS is running
- Guest additions: Some features to improve the functionality of VMs running in VirtaulBox
- Java Runtime Environment
- Several packages and libraries for the Linux distribution
- Subversion client
- Installing necessary packages
If you run on 64bit machine (As I'm now) you'll have to install the following 32bit packages too.
$ sudo apt-get install ia32-libs libc6-dev-i386 lib32gcc1 gcc-multilib lib32stdc++6
(Note:I've copied the packages from VirtualBox web site but practically I've installed them one by one checking what that package really does. And some times the packages are named differently in other systems.)
- Install and setup Java RE 1.6.x
$ sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-bin sun-java6-plugin
- Setup the Java home in your system into environment variable.
Checkout the source code from VirtualBox SVN
$ svn co http://www.virtualbox.org/svn/vbox/trunk vbox
Building the VirtualBox
1. Navigate to vbox directory and run configure script
$ ./configure --disable-hardening
2. To build the VBox you need to source the generated environment script
$ source ./env.sh
3. Build the package
$ kmk all
4. Build and install the VirtualBox kernel module
$ cd out/linux.x86/release/bin/src
$ sudo make install
$ sudo modprobe vboxdrv
$ sudo chown user:group /dev/vbodrv
Once the kernel module is installed and loaded in to the kernel, navigate to "/vbox/out/linux.amd64/release/bin" and you can run the VirtualBox by issuing the following command.
That way you can build the Oracle's VirtualBox from source. For the easy of running you may create a local alias or a menu icon to run VBox.