Virtualbox Installation

Introduction

VirtualBox allow you to run any OS you want on your Linux or Windows Box. But of course, I will only be focused to use it on a Linux host !
It can help you to not use anymore windows by instance, by installing windows on a guest system. You would probably ask me why not use Xen instead ? To do that in Xen, you need a special CPU, I means :

to do this kind of virtualization, and as I don't have a recent enough cpu, I haven't got these technologie. And, I prefer to first use only open source software.
By the way, if you want more information about x86 virtualization, go here.

Installation

Installation of the software on a ubuntu 7.10 is really easy. I follow the step provided by the first links in external links.
I will put it again, if the links goes down, just in case of a disaster…
The package and commands that needs to be done are these one :

# sudo apt-get install virtualbox-ose virtualbox-ose-source
# sudo module-assistant prepare
# sudo module-assistant update
# sudo module-assistant unpack virtualbox-ose
# sudo module-assistant auto-install virtualbox-ose

The next step is to check if the new module for virtualbox is properly installed, so :
# ls -l /dev/vboxdrv
crw-rw---- 1 root vboxusers 10, 62 2008-05-17 17:44 /dev/vboxdrv

and if the group is not set to :
vboxuser
reload the module with these command :
# rmmod vboxdrv
# modprobe vboxdrv

You can add yourself to set up any installation of a guest system with virtualbox :
# gpasswd -a `whoami` vboxusers

And finally, to get this modules be loaded each you boot your system, add it to these file :
/etc/modules
with this command :
# echo "vboxdrv" | tee -a /etc/modules

Please now log out of your session, and log in again to get all theses changes working.

External links

  1. https://help.ubuntu.com/community/VirtualBox
  2. http://www.virtualbox.org/
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License