Page 1 of 2

Problem (auto)mounting share in openSUSE 11.3 with VB4

Posted: 17. Jan 2011, 14:44
by thecodejunkie
Hi,

I'm trying to setup openSUSE 11.3 32-bit in my VirualBox 4.0.0.r69151, running on Windows 7 64-bit. From what I understand, openSUSE detects that it's being installed in VirtualBox and sets up the Guest Additions at install time (I wasn't aware of that at first, so when I tried to install it manually it informed me it was already available), so I should not have to do that.

So what I did was
  • Add a shared folder in the VM setting for D:\Foo it was setup as Auto Mount and folder name Foo
  • Start my openSUSE VM and check under /media (also checked under /mnt) but could not see it anywhere
  • I also tried adding "mount -a" in my /etc/init.d/boot.local file, but there was no different
I'm a complete linux noob so take that into consideration when you post a reply! Thanks

Re: Problem (auto)mounting share in openSUSE 11.3 with VB4

Posted: 17. Jan 2011, 16:30
by Perryg
You need to uninstall the openSUSE guest additions and then install the VBox 4.0.0 guest additions.
After that you need to add your user name to the vboxsf group in the guest to be able to use the auto mount share.

Re: Problem (auto)mounting share in openSUSE 11.3 with VB4

Posted: 17. Jan 2011, 16:32
by thecodejunkie
Thank you! So the guest additions that are in openSUSE 11.3 is too old then... makes sense

any advice on how to

(a) uninstall the current one (I think I know how to install the new one)
(b) add the user to the group?

Complete linux noob =)

Thanks again!

Re: Problem (auto)mounting share in openSUSE 11.3 with VB4

Posted: 17. Jan 2011, 17:23
by Perryg
Use the package manager to remove the openSUSE GAs. You should be able to find it.

Look in users/groups in the system control center. Once you have the 4.0.0 guest additions installed you should see the vboxsf group.

Re: Problem (auto)mounting share in openSUSE 11.3 with VB4

Posted: 17. Jan 2011, 18:00
by thecodejunkie
Thanks.. just to be sure before I do anything stupid.. could it be the "virtualbox-ose-guest-tools v3.2.6-2.1.1" (found in the openSUSE YaST) that I should remove before installing the ones for 4.0.0? Thanks!

Re: Problem (auto)mounting share in openSUSE 11.3 with VB4

Posted: 17. Jan 2011, 18:08
by thecodejunkie
I took a change an uninstalled it, and then proceeded to execute

Code: Select all

sh ./VBoxLinuxAdditions.run
however there was one step that failed

Code: Select all

Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
The missing package can be probably installed with
zypper install kernel-2.6.34-12-default
                                                                     failed
Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong.
Once you have corrected it, you can run

  /etc/init.d/vboxadd setup

to build them.
if I check the contents of the /var/log/vboxadd-install.log file it says

Code: Select all

Makefile:23: *** Error: unable to find the sources of your current Linux kern$
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
:D

Re: Problem (auto)mounting share in openSUSE 11.3 with VB4

Posted: 17. Jan 2011, 18:16
by Perryg
In a terminal as su run the following

Code: Select all

zypper install kernel-devel kernel-syms
Then install the GAs again.

Re: Problem (auto)mounting share in openSUSE 11.3 with VB4

Posted: 17. Jan 2011, 18:24
by thecodejunkie

Code: Select all

Loading repository data...
Reading installed packages...
'kernel-devel' is already installed.
No update candidate for 'kernel-devel-2.6.34.7-0.7.1.noarch'. The highest available version is already installed.
'kernel-syms' is already installed.
No update candidate for 'kernel-syms-2.6.34.7-0.7.1.i586'. The highest available version is already installed.
Resolving package dependencies...

Nothing to do.
followed by

Code: Select all

sh ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.0.0 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing installed version 4.0.0 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules                                   done
Removing existing VirtualBox non-DKMS kernel modules                               done
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
The missing package can be probably installed with
zypper install kernel-2.6.34-12-default
                                                                                   failed
Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong.
Once you have corrected it, you can run

  /etc/init.d/vboxadd setup

to build them.

Doing non-kernel setup of the Guest Additions                                      done
Installing the Window System drivers
Installing X.Org Server 1.8 modules                                                done
Setting up the Window System to use the Guest Additions                            done
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services components                      done
EDIT: I should note that I had already run "zypper install gcc make automake autoconf kernel-source kernel-syms" based on a blogpost

Re: Problem (auto)mounting share in openSUSE 11.3 with VB4

Posted: 17. Jan 2011, 18:38
by Perryg
Yes but they indicate that they are out of sync.
run a zypper update

Re: Problem (auto)mounting share in openSUSE 11.3 with VB4

Posted: 17. Jan 2011, 19:08
by thecodejunkie
The update pulled down 250mb worth of package updates and installed them. Unfortunately still can't install GA =( trying to run your cmd again (just to get the version numbers) I still get

Code: Select all

Loading repository data...
Reading installed packages...
'kernel-devel' is already installed.
No update candidate for 'kernel-devel-2.6.34.7-0.7.1.noarch'. The highest available version is already installed.
'kernel-syms' is already installed.
No update candidate for 'kernel-syms-2.6.34.7-0.7.1.i586'. The highest available version is already installed.
Resolving package dependencies..
Really appreciate your help.. never thought it would be this "hard" =/

Re: Problem (auto)mounting share in openSUSE 11.3 with VB4

Posted: 17. Jan 2011, 19:18
by Perryg
post the results of id from the terminal

Re: Problem (auto)mounting share in openSUSE 11.3 with VB4

Posted: 17. Jan 2011, 19:22
by thecodejunkie

Code: Select all

uid=0(root) gid=0(root) groups=0(root)

Re: Problem (auto)mounting share in openSUSE 11.3 with VB4

Posted: 17. Jan 2011, 19:56
by Perryg
So you run in root? Do you have a normal login that you might have used to install VBox?
post the results of uname -r from terminal.

Re: Problem (auto)mounting share in openSUSE 11.3 with VB4

Posted: 17. Jan 2011, 20:04
by thecodejunkie
uname -r

Code: Select all

2.6.34-12-default
uname -a

Code: Select all

Linux linux-hfbx 2.6.34-12-default #1 SMP 2010-06-29 02:39:08 +0200 i686 i686 i386 GNU/Linux
When installing openSUSE i was asked to provide a username as password.. I think also the option to always login as system admin (not sure) that I ticked. Since it's suppose to be a dev machine, running in a VM, I thought
I'd save myself to work

appart from that I haven't created any other accounts

Re: Problem (auto)mounting share in openSUSE 11.3 with VB4

Posted: 17. Jan 2011, 20:12
by thecodejunkie
I haven't read it all yet but this sounds like my problem
http://forums.opensuse.org/english/get- ... found.html

will read it in details in a bit