Virtual box doesn't want to play with me :(

Hello
I grabbed Virtualbox from Yast today but can’t seem to get it working :frowning:

I set up the machine, disk etc but when I run I am told I need to run “/etc/init.d/vboxdrv setup” as root in a shell.

When I do this I get:-


badger_fruit@bgrmedia01:~> su
Password:
bgrmedia01:/home/badger_fruit # /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module                                    done
Recompiling VirtualBox kernel module, NOT. It has been packaged.     done
Starting VirtualBox kernel module                                    failed
(Kernel module not found)
bgrmedia01:/home/badger_fruit #


I have gone back into yast and ensured i have the vboxkernel stuff and tried again, same thing.

Any ideas please?

I’ve got the same problem …

Do you have kernel-source at the same version of kernel ?

Yeah, if you upgraded your kernel recently, make sure you have the new kernel sources installed.

ok, just been into yast and ‘updated’ kernel-source; tried again, same error :frowning:

is there an alternative to virtualbox?

Go to YaST/System/System Services. There are two drivers that need to be enabled for the host, vboxdrv and vboxnet. Depending on what you’ve installed, there could also be several others which are for a vbox linux guest.

There are two versions of Vbox. One comes from the Sun virtualbox.org site and is the non-OSE version. This one requires the kernel-source to build the vboxdrv module, but can run some proprietary add-ons, including USB support, IIRC. The other is the OSE version which you will find at the OpenSUSE repo. This one will only work for the kernel version it was compiled for. A message like this is the result for the wrong kernel version.

Recompiling VirtualBox kernel module, NOT. It has been packaged.

I use the Sun version. I have to recompile vboxdrv whenever the kernel is updated, but other than that I don’t have problems.

The last time I looked there wasn’t a 11.0 specific rpm on the Sun site. Since I wanted to give VBox a try (was using VMware), I went with what’s in the repos. Have noticed regular patch updates, besides kernel updates. Working excellently with a W$ guest.

While not recommended practice in general, the 10.3 Sun RPM works fine on 11.0.

I have been using the build service repo rather than just from the OSS and via updates
Index of /repositories/Virtualization:/VirtualBox/openSUSE_11.0

Read the help pages here:
VirtualBox Installation - openSUSE

I haven’t tried VBox yet, but this thread contains some good info for new users, so I’m paying close attention.(Thanks mingus725, caf4926, ken_yap et al) I’d like to see a basic wiki page on VBox with this info added.

ken yap schrieb:
> There are two versions of Vbox. One comes from the Sun virtualbox.org
> site and is the non-OSE version.

In fact the OSE version is available from virtualbox.org, too.
But it appears they don’t provide RPMs for it anymore, so you’ll
have to compile it yourself.

HTH
T.

badger fruit schrieb:
> Hello
> I grabbed Virtualbox from Yast today but can’t seem to get it working
> :frowning:
>
> I set up the machine, disk etc but when I run I am told I need to run
> “/etc/init.d/vboxdrv setup” as root in a shell.
>
> When I do this I get:-
>
>
> Code:
> --------------------
>
> badger_fruit@bgrmedia01:~> su
> Password:
> bgrmedia01:/home/badger_fruit # /etc/init.d/vboxdrv setup
> Stopping VirtualBox kernel module done
> Recompiling VirtualBox kernel module, NOT. It has been packaged. done
> Starting VirtualBox kernel module failed
> (Kernel module not found)
> bgrmedia01:/home/badger_fruit #
>
>
> --------------------
>
>
>
> I have gone back into yast and ensured i have the vboxkernel stuff and
> tried again, same thing.
>
> Any ideas please?

Don’t use the openSUSE RPM. The ability to recompile the VirtualBox kernel
module has been deliberately removed from it, so if you need to do that
you’re out of luck.

Use the original source or the non-OSE RPM from Sun instead. They do allow
recompiling the module as needed.

HTH
T.

hmm, thanks for the info guys; so i started to follow the instructions but while it’s downloading, can anyone suggest a reasonable alternative to VBOX that I can just get from the repos?

I refer you to my earlier comments
vbox should work fine:

I have been using the build service repo rather than just from the OSS and via updates
Index of /repositories/Virtualization:/VirtualBox/openSUSE_11.0

Read the help pages here:
VirtualBox Installation - openSUSE

hmm, ok, ill give this a shot later today once the kids are asleep, as it is now, they’re quite enjoying stamping all over me :frowning:

I’m using the VBox repo as well cited above; all is good.

The main alternative is VMware server but not only is that rather more heavyweight on resources, you still have to download it from VMware (?) as it is proprietary. Other than having a somewhat easier network setup (which only needs to be done once anyway), I personally think that VirtualBox is better and I use it for work (I run an XP VM and an OpenSUSE 11.0 development box including LAMP).

I agree with the others here. Grab the latest non-OSS version from Sun, it is trivial to install.

What isn’t quite so trivial is getting USB to work (not available on the OSS version anyway) or Host networking. However, if you follow the link in my sig to my Linux blog, I’ve put the instructions for OpenSUSE there.

Once you’ve got it working, you won’t look back.

Regards,

Hey guys, i’m sorry to bump this thread but just wanted to give you a progress report as such;

so after getting to the point of wanting to give in, i decided to check the GRUB menu, afterall, the error was saying there’s no kernel match; turns out i’ve been running PAE kernel for god-knows how long!

Switched GRUB to load ‘default’, and re-tried.
VBOX then worked straight away!

  • kicks himself but also wonders where the pae kernel came from! *

Hey guys, i’m sorry to bump this thread but just wanted to give you a progress report as such;

so after getting to the point of wanting to give in, i decided to check the GRUB menu, afterall, the error was saying there’s no kernel match; turns out i’ve been running PAE kernel for god-knows how long!

Similar to forgetting to turn the power switch on, or plugging equipment in… lol!