Virtual Box install help needed

Please please be easy on me, I’m very much a noobe.

I did a fresh default install of 11.1 on a newer compaq AMD 2gb machine and weening off of Windows.

Suse seemed to install ok from the disk and the first program I need to get running is Virtual Box.

I downloaded VB and installed the package “Panam” or similar name KDE requested and VB installed alright.

I created the XP Pro machine within VB. The XP machine appears in the list window.

When I click Start within VB to begin the XP installation I get the message

"The VirtualBox Linux Kernel Driver (Vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Re-setup the kernel module by executing
/etc/init.d/vboxdrv setup "

So I open a console terminal,log in as root (SU) and type the said command.

It fails and directs me to the vbox-install.log.

That log says:

“Makefile:172: **Error: unable to find the include directory for your current Linux Kernel. Specify KERN_INCL=<directory> and run make again. Stop.”

I used the default Suse setup so I guess what it’s asking for would also be in a “typical” setup location.

Is it possible for anyone to know where the information it’s asking for is located and exactly what I should type in the terminal console window to compile this correctly?

You can see I’m quite new to this and any help is very much appreciated. Thank you.

Steve Fury

make sure you have these packages

make
gcc
kernel-source

then run

/etc/init.d/vboxdrv setup

This guide is for the OSE version but it’s helpful
VirtualBox Installation - openSUSE

Thank you Caf for that great solution. It compiled successfully.

Now it seems the drive isn’t accessible as I get this message when I try and install XP into VB:

Failed to start the virtual machine XP Pro.
Cannot open host device ‘/dev/sr1’ for readonly access. Check the permissions of that device (’/bin/ls -l /dev/sr1’): Most probably you need to be member of the device group. Make sure that you logout/login after changing the group settings of the current user (VERR_ACCESS_DENIED).
Unknown error creating VM (VERR_ACCESS_DENIED).

I did a search in the forum and found a couple relevant hits but nothing about how to gain access to the drive.

I was hoping I could plug in my external HP DVD drive for a work around. I was delighted 11.1 detected the drive and made it ready, but I still get the same error when I select it in VB.

Any ideas how to make my drive or drive(s) availabe to VB?

Thanks again !

Hi,
Where did you download VirtualBox from? Have you accessed the VirtualBox website yet?

SteveFury wrote:

>
> Thank you Caf for that great solution. It compiled successfully.
>
> Now it seems the drive isn’t accessible as I get this message when I
> try and install XP into VB:
>
> Failed to start the virtual machine XP Pro.
> Cannot open host device ‘/dev/sr1’ for readonly access. Check the
> permissions of that device (’/bin/ls -l /dev/sr1’): Most probably you
> need to be member of the device group. Make sure that you logout/login
> after changing the group settings of the current user
> (VERR_ACCESS_DENIED).
> Unknown error creating VM (VERR_ACCESS_DENIED).
>
> I did a search in the forum and found a couple relevant hits but
> nothing about how to gain access to the drive.
>
> I was hoping I could plug in my external HP DVD drive for a work
> around. I was delighted 11.1 detected the drive and made it ready, but I
> still get the same error when I select it in VB.
>
> Any ideas how to make my drive or drive(s) availabe to VB?
>
> Thanks again !
>
Did you go to settings in the manager and enable mounting of the CD/DVD
drive.
/dev/sr1 is a cd/dvd drive. you can also mount it thru the devices menu
once you get Windows, but you need it for install so I would suggest
enabling it in the setting menu.

Hope this helps.


Russ [openSUSE 11.1 (2.6.27.21-0.1-default [x86_64) KDE 4.2.4 release 2,
Intel DX48BT2 Core 2 Dual E7200. 4 GB DDR III GeForce 8400 GS, 320GB Disc
(2)]

Where did you download VirtualBox from?

Linux_Downloads - VirtualBox

Did you go to settings in the manager and enable mounting of the CD/DVD
drive.

If you mean on the VB GUI itself:
Settings > CD/DVD-ROM > Mount CD/DVD Drive the answer is yes I did put a check in the box.

I was able to log out > back in as Root, run VB and successfully install the other OS … but I’ll need access for general users.

A solution is use k3b to create an .iso image of the xp disc and use that.

But it should work from the actual cd too.

CD pic
http://thumbnails18.imagebam.com/3825/e604f338246640.gif](http://www.imagebam.com/image/e604f338246640/)

Your general user(s) is a member of the vboxusers group, right?

A solution is use k3b to create an .iso image of the xp disc and use that.

I tried running K3b but it did not recognize any optical drive attached.

Your general user(s) is a member of the vboxusers group, right?

I apologize but I’m really an (almost) green noobe. How or where can I get the group information or change it?

Given the path the error message suggests:

bin/ls -l /dev/sr1

I logged in a GUI session of Root, used Dolphin and navigated to the file Bin/LS and selected Properties.

I put checks in all the access boxes, reboot and still had the VB error. I logged back in as root and undone the checks I previously made and tried to set the group name to “me”, which is the user login name. (Thinking “me” might be the group name)

It always tried to enter “Messagebus” in the field so I set it back where it was to “root”.

I logged back out of the Root account and back into the user “Me” account and ran VB …

I ran VB again and to my astonishment I have the other OS installing as I type.
I have no idea what the heck I did.

I did so many logins-log outs switching accounts and I’m pretty sure I’m not in Root anymore but honestly I’m a bit confused myslelf

LOL

Anyway this is a fresh install so it won’t be too hard to reinstall 11.1 if I screw things up too badly and get back to where I was.

If you login as root your desktop is usually a Bomb! Wallpaper. It was at one time, but I never go there.
Make sure you have run

zypper up

from a su terminal. Maybe you have not updated? There was a bug in the shipped system which was repaired with a patch.

Ok, I’m logged in as “me” according to the top of the “Leave” screen.

XP finished installing and starting Vista install while the gittin’ is good.

If you are wondering why I’m sticking all that Window$ OS in there, I’m not ready yet to make the final switch and have MS apps that don’t run (or easily) under Wine.

The Vista is just to poke around in.

I’m also cramming Ubuntu and Debian in VB for the same reasons.

Maybe you have not updated?

It did update but had some warnings which looked like authenticity mismatches that said my security might be at risk and do I want to install it anyway?

At first I choose “no” but then on next boot the updates ran again with the same questions so I choose “Yes” which stopped the messages.

But I get this error running YaST > Software Management:

There was an error in the repository initialization.
‘repo-update’: |] Failed to cache repo (4).
History:

  • ‘repo2solv.sh’ ‘-o’ ‘/var/cache/zypp/solv/repo-update/solv’ ‘/var/cache/zypp/raw/repo-update’

gzip: deltainfo.xml.gz: invalid compressed data–format violated
repo_updateinfoxml: not well-formed (invalid token) at line 3333:5

I was going to treat that as a seperate issue to resolve once I was finished with my current problem.

Start a new thread with the update issue. Post your repo’s when you do:

zypper lr --details

And the info you quoted.

Completely new to openSUSE? If so, I suggest you familiarize yourself with the distro before using an application such as VB. You should find links to useful information for newbies, pinned in posts at the start of help forums.

At least, you will need to know your way around the configuration tools in YaST (accessible from the applications menu of your desktop) . That is where you will find information about your user(s) and the groups they are members of. VirtualBox should have added a special group called vboxusers to the system when you installed it. If you installed it from your normal user, it should have made that user a member of that group. However as you had a problem, it may not. Using Yast you can add the user to the group. If there is no “vboxusers” group, you can add it using Yast, and then make your user a member.

VirtualBox looks (and is) relatively simple to operate, that is until something doesn’t work. It offers a very good user manual from its website. You should familiarize yourself with the basic concepts from the early chapters and how to setup and use VirtualBox under linux. Just note where the more advanced stuff is, so that later on you can find it. :slight_smile:

Thanks for all the help and great tips.

I’m used to the VB GUI, I have a netbook running XP with VB that contains 11.1 and Ubuntu.

I definetly have some research to do.

Ok. I haven’t used VB running under XP. There must be some important differences, as the VB manual has separate sections for Linux and Windows in relevent chapters.

Good luck with the research.