Aug 092008

VirtualBox is a family of powerful x86 virtualization products for enterprise as well as home use. Not only is VirtualBox an extremely feature rich, high performance product for enterprise customers, it is also the only professional solution that is freely available as Open Source Software under the terms of the GNU General Public License (GPL).

VirtualBox was recently taken over by Sun Microsystems and is available as Sun xVM VirtualBox. The latest stable version of VirtualBox is Sun xVM VirtualBox 1.6.

Install virtualBox in openSUSE

Installation of VirtualBox in openSUSE is made easy through the 1-click installation.

To install VirtualBox

click  1-click install for openSUSE 11.0

click 1-click installfor openSUSE 10.3

click 1-click installfor openSUSE 10.2

[NOTE: Click here to enable 1-click install support in openSUSE 10.2]

This will download the YMP file and open it automatically with YaST Package Manager. The fist screen will prompt you to add the VirtualBox Repositories & openSUSE update repositories. Click Next.

Add repositories

In the next Sofwtare installation window, click Next. And, again click next on the Summary window which informs of you of the addition of repositories and the installation of VirtualBox software. This will download and the repositories, then install VirtualBox software and required dependencies including the kernel module for VirtualBox (virtualbox-ose-kmp-default). Click “Finish” in the final installtion window.

VirtualBox install Install Summary

Add Additional Packages

You may also install the additional packages virtualbox-ose-guest-tools xorg-x11-driver-virtualbox-ose for video and mouse drivers for Xorg X11

To install additional packages,

From Computer, click Install Software and search for virtualbox. This should showup the above packages, select the packages and click Accept to install the packages. That should install all the required packages.

VirtualBox additional Packages

Add user to vboxusers group

If you want to run Virtualbox as a non-root user then you need to add the required users to the group “vboxusers”. The ownership info can be found in

/etc/udev/rules.d/60-vboxdrv.rules file

opensuse11:/etc # cat /etc/udev/rules.d/60-vboxdrv.rules
KERNEL==”vboxdrv”, NAME=”vboxdrv”, OWNER=”root”, GROUP=”vboxusers”, MODE=”0660″

To add user to the group, click Computer –  YaST – Security and Users – User and Group Management.
Users and Group management Edit user
Select the user and click Edit and select the “Details” tab, under additional groups, select “vboxuser” and click OK and click Finish.

Add user to vboxusers group

Failing to add the user to the group may result in the following error

The VirtualBox kernel driver is not accessible to the current user. Make sure that the user has write permissions for /dev/vboxdrv by adding them to the vboxusers groups. You will need to logout for the change to take effect..
VBox status code: -1909 (VERR_VM_DRIVER_NOT_ACCESSIBLE).

Start VirtualBox

VirtualBox should be available under Applications – System  as VirtualBox OSE.
Applications - System - VirtualBox OSE
Starting VirtualBox for the first time will request you to register using Name and email address. Once registered, will lead you to the default VirtualBox Console window. From here you can control the Virtual machines, Virtual Disks, Edit settings of Virtual machines including adding/removing CDROM/images, changing network settings like NAT, memory Hard disk etc.
Virtual machine Registration Registration  Complete
Creating New Virtual machine

To create a new Virtual Machine, click New. This will start the wizard, click Next.

Virtual machine wizard Wizard Welcome
Enter the name for the Virtual machine and select the OS type. Support operating System types include windows, Linux 32/64/intel/amd, popular Linux distributions, Solaris, openSUSE and BSDs. here we choose openSUSE as the type of OS.

VM name and type

Set the memory size for the Virtual machine and click Next.

Set VM Memory
In the next window, click New to create a new Hard Disk (if you copied or already created a Virtual Disk then you may choose to select the disk rather than creating a new one) and click Add. This will start the Virtual Disk wizard. Select the disk type. The type is purely based on your Disk space availability. If you have lots of space then can choose “Fixed-Size image”. This will create a Disk image file with a set size and can improve performance. Alternatively, choosing a Dynamic Expaning image” holds a small amount of local disk space and expands as more space is claimed by the guest OS. We choose a “Dynamic” image here. Enter the image name and set the size of the disk, click Next and Finish. This adds the new disk image.

Set VM Hard Disk Hard Disk Wizard

Hard Disk Wizard Welcome Image type

Hard Disk Size Hard Disk wizard complete

Click Next and Finish on the Virtual machine Wizard to complete adding the Virtual Machine.

VM Wizard VM Summary
To change any of the settings of the VM, click settings and select the relevant option to change it accordingly. For instance, if you wish to change from NAT interface (NATs its IP address to the host IP) to Host interface (connects to the local subnet of the host using the host interface).

VM Created Edit Network Settings

When you start the Virtual Machine, again comes a one time wizard to install and OS on your VM. This is optional. Click Next, Choose between CDROM/Floopy addition option and then CDROM or ISO image if CDROM is selected and click Next and click Finish.

VM First run wizard CDROM Mount


Off you go, your Virtual Machine is up and running.

VM Starts Ready to install