VirtualBox Installation
From openSUSE
How to install VirtualBox depends on your openSUSE version. openSUSE 10.3 has VirtualBox OSE direct available while a repository should be added under openSUSE 10.2.
Contents |
openSUSE 10.3
VirtualBox OSE is available
- in the openSUSE OSS repository
- in the openSUSE Build Service Virtualization:/VirtualBox (more up-to-date)
Ensure that one of these repositories has been added (check in the Community Repositories YaST module).
- Using YaST:
In YaST simply head over to the Software Management module and install the virtualbox package. Or use your own prefered package manager to install VirtualBox OSE with her dependencies.
- virtualbox-kmp that has mandatory vboxdrv kernel driver
- Xalan-c package
- Xerces-c package
Read the Post-Installation section to get VirtualBox running. And read Installation of VirtualBox from VirtualBox home page to install the full version (non-OSE) of VirtualBox.
openSUSE 10.2
VirtualBox OSE is available in the openSUSE Build Service Virtualization:/VirtualBox repository. This repository unfortunately contains bad packages VirtualBox-kmp that are missing mandatory vboxdrv and have one more error.
UseTherefore use home:/dirkmueller which contains a correct version of VirtualBox for openSUSE 10.2.
See the paragraph below how to install VirtualBox non-OSE.
Installation of VirtualBox from VirtualBox home page (OSE and non-OSE)
Since VirtualBox is acquired by SUN, the download page of VirtualBox will redirect to a download page from SUN. From this download site a package or the source code for the latest version of VirtualBox for openSUSE and SLED can be downloaded.
Prerequisites for VirtualBox downloads
Whether you use binaries or installing from source you have to install the following packages first:
- kernel-source
- kernel-syms
- Xalan-c
- Xerces-c
Installing VirtualBox from Binary (non-OSE only)
Simply download the package from the download page of VirtualBox and install it. See Package Management for more information about installing software under openSUSE.
When everything goes well, VirtualBox should be installed in the /opt directory.
Next, create the required kernel module by executing the command:
When VirtualBox is started at this point, expect VirtualBox to give this warning "Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might be not installed on the host computer.". Read enable USB supportin order to activate USB.
Installing from source
Read the build instructions from VirtualBox.
Post-Installation
Though VirtualBox will start after you've just installed it, there are a few other necessary steps to complete before you can really get the most out of VirtualBox. These include:
- Making sure that the vboxdrv driver is loaded.
In the terminal (as root), execute the following command:
- Add your user to the vboxusers group:
Or open YaST -> Security and Users -> UserManagement, and edit your user and add them to the vboxusers group. To do this, select your user name, click on Edit, switch to the Details tab and check the vboxusers check box.
You should then be able to run VirtualBox just fine!
Getting vboxdrv module to auto load (openSUSE OSE package only)
The version of VirtualBox OSE provided in the openSUSE OSS repo comes with its own kernel module so the vboxdrv setup command does not add this. It also does not set up the kernel module to auto load at system start up, if this is how you like it then ignore this section and have fun.
This can be done by one of three ways:
- The first way is by using insserv to add the module
- The second way is by going into system services (runlevel) and enabling vboxdrv
YaST -> System > System Services (runlevel)-> vboxdrv and select the enable button and finish.
- The last way is by adding it to the Modules_loaded_on_boot setting under sysconfig editor
YaST -> System -> /etc/sysconfig editor -> System -> Kernel -> MODULES_LOADED_ON_BOOT and just type in vboxdrv in the input box.
No matter which way you go with this will get the vboxdrv kernel module to auto load on boot of the system.
comment: More complete VirtualBox-on-openSUSE guide exists as part of "Lessons for Lizards" documentation project. Either Install "lessons4lizards.rpm" for offline view, or see it online: http://forgeftp.novell.com/lfl/.html/virtualbox.html

