Installing VirtualBox on openSUSE 11.3 has similar method as on openSUSE 11.2 with only a few changes : VirtualBox on openSUSE 11.3 need openSSL and PNG library as dependencies package.
I’m using VirtualBox 3.2.6 64 bit on openSUSE 11.3 64 bit on this article. You may also use this guide for installing VirtualBox 32 bit, there is no major difference between 2 version.
- Install required library and package : kernel-source, make, gcc, gcc-c++, pam-devel, kernel-syms by using YAST | Software | Software Management or Zypper package manager :
[code language=’cpp’]
zypper in kernel-source make gcc gcc-c++ pam-devel kernel-syms
[/code]
` - Download VirtualBox binary installer. Choose an appropriate version whether 32 bit or 64 bit depending your processor.
- Install VirtualBox using Zypper with the following command (I’m using /opt as base folder, adjust with your download folder) :
[code language=’cpp’]
cd /opt
zypper in ./VirtualBox-3.2-3.2.6_63112_openSUSE111-1.x86_64.rpm
[/code]
` - Add your user as VirtualBox group member by using YAST | Security & User | User & Group Management. Choose user name, click Edit and then move to Details tab and give a mark on vboxusers checkbox, cdrom and disk.
- Logout re-login so new group will be updated to your profile
- Run VirtualBox from system menu or by using konsole/terminal : VirtualBox (case sensitive)
NOTE :
- Installation process may failed while compiling VirtualBox module for kernel. Check the version of your running kernel and kernel source using uname -r and zypper if kernel-source as below :
[code language=’cpp’]
vavai:/home/vavai # zypper if kernel-source
Loading repository data…
Reading installed packages…Information for package kernel-source:
Repository: @System
Name: kernel-source
Version: 2.6.34-12.3
Arch: noarch
Vendor: openSUSE
Installed: Yes
Status: up-to-date
Installed Size: 334.4 MiB
Summary: The Linux Kernel Sources
Description:
Linux kernel sources with many fixes and improvements.
Source Timestamp: 2010-06-29 02:39:08 +0200
GIT Revision: 7a744773dd7c2539b7757435d0108cb701dd0165
GIT Branch: openSUSE-11.3
[/code]
[code language=’cpp’]
vavai:/home/vavai # uname -r
2.6.34-12-desktop
[/code]
See that I’m using same version for both running kernel and kernel-source. If you found different version, try to updating the lower version to be same version as another one. - VirtualBox will automatically remove old package if found previous installation without deleting your existing image but it’s highly recommended to create a backup before installing and updating VirtualBox.
Or.. you could simply add virtualbox repo in yast or smart.
http://download.virtualbox.org/virtualbox/rpm/opensuse/11.3/
I’m using 3.2.8, all you have to do after install:
/etc/init.d/vboxdrv setup.
Think this is the easy way
Or.. you could simply add virtualbox repo in yast or smart.
http://download.virtualbox.org/virtualbox/rpm/opensuse/11.3/
I’m using 3.2.8, all you have to do after install:
/etc/init.d/vboxdrv setup.
Think this is the easy way
To get VirtualBox 3.2 to work on openSUSE 11.3, here’s what I had to do:
The first thing is to make sure you have the kernel-devel, gcc, and make packages installed. They’re needed to compile the modules later on. I did not need the other mentioned packages on this article.
Then I added the openSUSE 11.3 repository using the directions from virtualbox.org.
Then I went into YaST > Software Management and installed VirtualBox 3.2.8.
After it installed, I added my user to the vboxusers group with YaST > Users and Group Management
I compiled the kernel modules with this single command in the terminal, logged in as root:
# rcvboxdrv setup
The last thing I had to do was fix the file permissions. This was all done in a terminal, logged in as root:
# echo /usr/lib/virtualbox/VirtualBox root:vboxusers 4750 >> /etc/permissions.local
# echo /usr/lib/virtualbox/VBoxHeadless root:vboxusers 4750 >> /etc/permissions.local
# echo /usr/lib/virtualbox/VBoxNet root:vboxusers 4750 >> /etc/permissions.local
# echo /usr/lib/virtualbox/VBoxNetAdpCtl root:vboxusers 4750 >> /etc/permissions.local
# echo /usr/lib/virtualbox/VBoxNetDHCP root:vboxusers 4750 >> /etc/permissions.local
# echo /usr/lib/virtualbox/VBoxSDL root:vboxusers 4750 >> /etc/permissions.local
# SuSEconfig
Hope this helps! If there’s anything wrong, just correct me in your reply below. Thanks, for this post Masim, and everyone have lots of fun on openSUSE!
To get VirtualBox 3.2 to work on openSUSE 11.3, here’s what I had to do:
The first thing is to make sure you have the kernel-devel, gcc, and make packages installed. They’re needed to compile the modules later on. I did not need the other mentioned packages on this article.
Then I added the openSUSE 11.3 repository using the directions from virtualbox.org.
Then I went into YaST > Software Management and installed VirtualBox 3.2.8.
After it installed, I added my user to the vboxusers group with YaST > Users and Group Management
I compiled the kernel modules with this single command in the terminal, logged in as root:
# rcvboxdrv setup
The last thing I had to do was fix the file permissions. This was all done in a terminal, logged in as root:
# echo /usr/lib/virtualbox/VirtualBox root:vboxusers 4750 >> /etc/permissions.local
# echo /usr/lib/virtualbox/VBoxHeadless root:vboxusers 4750 >> /etc/permissions.local
# echo /usr/lib/virtualbox/VBoxNet root:vboxusers 4750 >> /etc/permissions.local
# echo /usr/lib/virtualbox/VBoxNetAdpCtl root:vboxusers 4750 >> /etc/permissions.local
# echo /usr/lib/virtualbox/VBoxNetDHCP root:vboxusers 4750 >> /etc/permissions.local
# echo /usr/lib/virtualbox/VBoxSDL root:vboxusers 4750 >> /etc/permissions.local
# SuSEconfig
Hope this helps! If there’s anything wrong, just correct me in your reply below. Thanks, for this post Masim, and everyone have lots of fun on openSUSE!
As a follow up, other users have said you need to uninstall virtualbox-ose and other virtualbox-ose related packages, or you will bump into problems with the Oracle, non-OSE edition.
To list these installed packages, run:
# rpm -qa | grep virtualbox-ose
Then uninstall them with the following command as root:
# zypper remove packagename1 packagename2 packagename3 …
Now you can try again resuming from the “rcvboxdrv setup” step if it did not work the first time.
As a follow up, other users have said you need to uninstall virtualbox-ose and other virtualbox-ose related packages, or you will bump into problems with the Oracle, non-OSE edition.
To list these installed packages, run:
# rpm -qa | grep virtualbox-ose
Then uninstall them with the following command as root:
# zypper remove packagename1 packagename2 packagename3 …
Now you can try again resuming from the “rcvboxdrv setup” step if it did not work the first time.
Hi there I tried all of the above but still gives me this msg 1st:
Failed to open a session for the virtual machine xxx
The virtual machine ‘xxxx’ has terminated unexpectedly during startup with exit code 1.
then followed by this msg :
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
‘/etc/init.d/vboxdrv setup’
as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
and when i go to terminal as a root and i type : /etc/init.d/vboxdrv setup
it gives me this:
Stopping VirtualBox kernel module done
Recompiling VirtualBox kernel module failed
(Look at /var/log/vbox-install.log to find out what went wrong)
i tried the command sudo
linux-369r:/home/ga # sudo /etc/init.d/vboxdrv setup
but still the same result
I solved the issue by
1-uninstalling the VBox
2- i added the repositories to /etc/zypp/repos.d/.
3- i downloaded and installed the program again but from the repo this time
it was the OSE version but it worked eventualy
I solved the issue by
1-uninstalling the VBox
2- i added the repositories to /etc/zypp/repos.d/.
3- i downloaded and installed the program again but from the repo this time
it was the OSE version but it worked eventualy