Virtual Box (Sun Version) Install HowTo

Virtual Box

**EDIT — Adding the easiest option for 11.4/11.3 **

Add this repo in Yast > Software > Software Repositores

For 11.4

http://download.virtualbox.org/virtualbox/rpm/opensuse/11.4/

For 11.3

http://download.virtualbox.org/virtualbox/rpm/opensuse/11.3/

Then open Software Management and do this:
http://a.imageshack.us/img814/7203/vbox.png
(The Gnome view is a little different)

Next:
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.
Reboot.

Instructions for Virtual Box from Sun Microsystems.

Option 1:
Add the repo in su - terminal: (currently 11.4)

zypper ar -f http://download.virtualbox.org/virtualbox/rpm/opensuse/11.4/ virtualbox

Then in Software Management check to install VirtualBox

Some required Packages for install:

  • kernel-source
  • linux-kernel-headers (linux-glibc-devel)
  • kernel development Eg: kernel-default-devel
  • pam-devel
  • gcc
  • make

Search for these in Yast – Software Management and check to add if necessary. Make sure the kernel source and header packages match your installed kernel.

Post Installation Requirements

From the su - terminal do this: modprobe vboxdrv

Next:
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.
Reboot.

Important

After system kernel updates you need to rebuild the kernel module with this from a su terminal:
/etc/init.d/vboxdrv setup

That’s it. Remember the Manual and User FAQ are available for download at the URL above. It is good documentation.

Links:
Virtual Box - How to Install & Configure in openSUSE | SUSE & openSUSE
openSource Version: SDB:Install guest operating system on Virtualbox - openSUSE

Great guide caf4926! Right on the money. :slight_smile:

Thanks for the vote of confidence!

@caf4926

That’s it. Remember the Manual is available for download at the URL above. It is good documentation.
Can you insert “User FAQ and” “are” so it reads:

That’s it. Remember the User FAQ and Manual are available for download at the URL above. It is good documentation.
Assuming you now have the power to edit. That FAQ is where they “provide common questions and answers not found in the user manual”. It contains current installation issues and temporary fixes for example, which might save a few unnecessary cries for help. :slight_smile:

Oops sorry, you may want to rephrase slightly as the User FAQ is just a linked page, so no need to download it.

Done and Dusted.

Thanks, but too quick for me. I edited my post and switched them round only to follow the sense that they should look at the FAQ first, at installation. We must have crossed in the post as it were.

Beginning with version 3.0.8 of VirtualBox, you can now add a VirtualBox repo to Yast and install/update from there.

  1. Download the key from here: http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc

  2. Import the key:

sudo rpm --import sun_vbox.asc

  1. Add the repo (modify the link below for your version of openSUSE (up to 11.1):
http://download.virtualbox.org/virtualbox/rpm/opensuse/11.1

EDIT: One additional step: make sure you disable or delete any existing Buildservice Virtualbox repo that you have enabled to prevent conflicts.

For more information, see this link: http://www.virtualbox.org/wiki/Linux_Downloads

Thanks for that news. I normally use a local directory containing the downloaded rpm’s, set up as a repo in Yast. It’s useful for keeping the previous version(s) as well. After installing or updating through Yast that way, I have never had to mess around changing permissions, adding the vboxuser group, or using modprobe.

I will give the remote VirtualBox repo a try for 3.0.8. :slight_smile:

Hi, I tried to install according to what you’ve said and in the terminal I got this error message:warning:
" VirtualBox-3.1-3.1.2_56127_openSUSE111-1.i586.rpm: Header V4 DSA signature: NOKEY, key ID 6dfbcbae
Preparing… ########################################### [100%]
1:VirtualBox-3.1 ########################################### [100%]

Creating group ‘vboxusers’. VM users must be member of that group!

No precompiled module for this kernel found – trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Compilation of the kernel module FAILED! VirtualBox will not start until this
problem is fixed. Please consult /var/log/vbox-install.log to find out why the
kernel module does not compile. Most probably the kernel sources are not found.
Install them and execute

/etc/init.d/vboxdrv setup

as root."
When I typed “/etc/init.d/vboxdrv setup” I got this:
“Stopping VirtualBox kernel module done
Recompiling VirtualBox kernel module failed
(Look at /var/log/vbox-install.log to find out what went wrong)”
This is written in the log:"/usr/share/virtualbox/src/vboxdrv/build_in_tmp: line 95: make: command not found"
What can I do now?

Hi,
I’ve done what you said and I got an dependency error but I solved it (I think!!) saying:“zypper in pam-devel”
But while installing I got other messages:"/usr/share/virtualbox/src/vboxdrv/build_in_tmp: line 95: make: command not found"
This is what is written in the log.
I couldn’t make out what to do.
Thanks

Check in Software Management that you have installed the prerequisites listed in my Guide

post result of

cat /var/log/vbox-install.log
you can put this to pastebin - rather than junking up the thread.

Hi,
Here’s what you’ve asked:"/usr/share/virtualbox/src/vboxdrv/build_in_tmp: line 95: make: command not found"
Sure I did the mistake thinking it was one of the "one click install"s, sure wasn’t:shame:
I’m a bit new, here’s what I’ve done:
First I downloaded the rpm in your link. Opened the file and as root tried to install it. When it gave a dependency error I wrote zypper in pam-devel. It started installing until some other error.
I hadn’t added sun virtualbox in the repo list by software management. Will there be any conflict about pam-devel?
I’d be grateful if you found a solution. Thanks.

You don’t want or need the Virtual Box repo. You are installing this manually, though I’m beginning to wonder if you might be better with the Repo version as you don’t seem to be able to grasp this.

All the information you need is here, we just can’t do it for you.

Tired of hearing the same questions I think. But in a few days, it’s not possible to get what you think “should be got”.
Sorry for the trouble, I’ll search a way.
Thanks.

Check this out too
VirtualBox installation - openSUSE

Here is the repo to add for the OSE version
Index of /repositories/Virtualization:/VirtualBox/openSUSE_11.2

I’ll check them, already had read some of them, but can you tell me,
I found kernel-sources etc. (what was listed in your explanation on the first page) by the software management. I have only the 4 repos as recommended. Just selecting what YAST shows when I search by the name, will that be enough?
I have virtualbox already installed, is there a need to uninstall it or can I go on with your explanation?
Thanks

Just selecting what YAST shows when I search by the name, will that be enough?
it should be

I have virtualbox already installed
This is the one direct from VBox? is it?

No harm removing it and trying the repo version.

Hi,
I had subscribed to this thread without noticing “please do not post questions”. I apologize to everybody for the inconvenience and to you especially for the trouble you took.
Thanks again.

Caf…I’m looking for it, but get VirtualBox up and running for USB use, there is a fstab entry required…you should update your how-to with this.

Also, on your how-to, the modprobe comand you give doesn’t work until AFTER your you run /etc/init.d/vboxdrv setup…actually, it’s not even necessary.

have that fstab entry handy?

thanks

Here it is: thought it would round out your how-to:

USB on openSUSE: Add the following entry to /etc/fstab:

none /proc/bus/usb usbfs auto,busgid=XXX,busmode=0775,devgid=XXX,devmode=0664 0 0

Replace XXX by the group ID of the group vboxusers. You can determine this value by executing grep vboxusers /etc/group