Search This Blog

2013-06-16

Install VirtualBox 4.2.12 on openSUSE

Download VirtualBox from https://www.virtualbox.org/wiki/Downloads

Install VirtualBox rpm

Install VirtualBox extpack following https://www.virtualbox.org/manual/ch08.html#vboxmanage-extpack
> VBoxManage extpack install /path/to/{filename}.vbox-extpack
> VBoxManage list extpacks

Test VirtualBox
> virtualbox 
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (3.9.2-8.g04040b9-desktop) or it failed to
         load. Please recompile the kernel module and install it by
           sudo /etc/init.d/vboxdrv setup
         You will not be able to start VMs until this problem is fixed.
I tried some ways to solve it, found a solution finally: Re: vboxdrv kernel module is not loaded - Author: Perryg - forums.virtualbox.org
> less /etc/init.d/vboxdrv

> sudo zypper install dkms
If dkms is not found, retry after adding packman repository, or just download dkms from http://software.opensuse.org/package/dkms or http://linux.dell.com/dkms
It installed dkms-2.2.0.3-1.1.noarch, kernel-devel-3.9.5-12.1.g08531e3.noarch, kernel-desktop-devel-3.9.5-12.1.g08531e3.x86_64 on my computer.

If devel kernel version doesn't match kernel version, upgrade kernel, then restart computer. There will be build and source directories in /lib/modules/`uname -r`.
I just upgraded openSUSE to Tumbleweed, the kernel version is 3.9.5-12.g08531e3-desktop, matching.

> sudo /etc/init.d/vboxdrv setup
Done.

Further reading:
* If you want to enable pcipassthrough, see https://www.virtualbox.org/manual/ch09.html#pcipassthrough
* > man dkms
https://wiki.archlinux.org/index.php/Dynamic_Kernel_Module_Support

=Revisions=

20130615

No comments:

Post a Comment