Install Virtualbox on SLES 11 SP3


Bicycle

I had some trouble installing VirtualBox on SLES 11 SP3, so here are some notes on what you want to do

Prepare the Build Environment

The VirtualBox rpm needs to compile and install kernel modules. We have to ensure that every dependency for that process is ready. Versions are very important here

uname -a
Linux dq1bc01b08 3.0.76-0.11-default #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990) x86_64 x86_64 x86_64 GNU/Linux

Now we now that we have to install version 3.0.76-0.11 of the kernel-default-devel package which will install the correct kernel-source package as a dependency:

zypper in kernel-default-devel-3.0.76-0.11.1.x86_64

To be able to compile the module we need some additional packages installed

zypper in autoconf bison flex gcc gcc-c++ make m4

Next we need to use the same config our kernel was build the last time. If you did not do anything special you have to use the matching config which is stored in /boot/

cp -f /boot/config-$(uname -r) /usr/src/linux/.config
cd /usr/src/linux
make prepare
make modules_prepare

Install VirtualBox

Next we need to download the SLES packages for VirtualBox. At the time of writing I got this versions:

http://download.virtualbox.org/virtualbox/4.3.8/VirtualBox-4.3-4.3.8_92456_sles11.0-1.x86_64.rpm
http://download.virtualbox.org/virtualbox/4.3.8/Oracle_VM_VirtualBox_Extension_Pack-4.3.8-92456.vbox-extpack

Now we are ready to install VirtualBox

zypper install VirtualBox-4.3-4.3.8_92456_sles11.0-1.x86_64.rpm

To use PXE booting we need to install the extpack

VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.8-92456.vbox-extpack

Additional Notes

If anything goes wrong start over by at least

  • copy the kernel config
  • uninstall the kernel-sources
  • uninstall the Virtualbox package

I got bitten by "install the latest package version" of the kernel-source package.

zypper rm kernel-default-devel
zypper rm kernel-source
zypper rm VirtualBox

References

Go Back explore our courses

We are here for you

You are interested in our courses or you simply have a question that needs answering? You can contact us at anytime! We will do our best to answer all your questions.

Contact us