Virtualbox 4.1 Shared folders on Oracle Linux UEK

Recently, while trying to patch my test RAC database I ran into an issue where I couldn't mount the shared folders in the guest VMs. Neither manual mount or automount were working. I would get the following message when trying to mount the shared folder manually:

[root@racnode2 ~]# mount -t vboxsf orasource /mnt/orastage
mount: wrong fs type, bad option, bad superblock on orasource,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

The tail of dmesg showed the following additional errors:
sf_read_super_aux err=-22
sf_read_super_aux err=-22
sf_read_super_aux err=-22


After doing a search on Google I finally found this thread in the Virtualbox tickets. Apparently the problem is with Oracle Linux's unbreakable enterprise kernel  2.6.32-200.13.1.el5uek.

The thread lists several workarounds. I did the following to get things working correctly

[root@racnode2 VBOXADDITIONS_4.1.0_73009]# which gmake
/usr/bin/gmake
[root@racnode2 VBOXADDITIONS_4.1.0_73009]# export MAKE='/usr/bin/gmake -i'
[root@racnode2 VBOXADDITIONS_4.1.0_73009]# sh ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.1.0 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing installed version 4.1.0 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules [ OK ]
Removing existing VirtualBox non-DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module [ OK ]
Building the shared folder support module [ OK ]
Building the OpenGL support module [ OK ]
Doing non-kernel setup of the Guest Additions [ OK ]
You should restart your guest to make sure the new modules are actually used
Installing the Window System drivers
Installing X.Org 7.1 modules [ OK ]
Setting up the Window System to use the Guest Additions [ OK ]
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 componen[ OK ]
[root@racnode2 VBOXADDITIONS_4.1.0_73009]# uname -a
Linux racnode2 2.6.32-200.13.1.el5uek #1 SMP Wed Jul 27 21:02:33 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux


Reboot the guest and shared folders using both automount and manual mount methods worked.

[root@racnode2 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
5.7G 3.6G 1.9G 66% /
/dev/sda1 99M 30M 65M 32% /boot
tmpfs 829M 168M 662M 21% /dev/shm
/dev/mapper/OraVolGroup00-OraVol00
20G 9.6G 9.2G 51% /u01
/dev/mapper/OraVolGroup00-OraVol01
9.9G 1.4G 8.1G 14% /u02
orasource 75G 65G 9.7G 87% /media/sf_orasource


Comments

  1. SUPER !
    same issue and your advice is fine
    I try
    export MAKE='/usr/bin/gmake -i'
    and now I can have a mount point OK
    Thanks a lot, now time to install Oracle11GR2 XE

    ReplyDelete
  2. Thank you!!! :)

    Saved me quite a bit of messing around.

    Cheers

    Tim...

    ReplyDelete
  3. Thanks - worked like a charm.

    ReplyDelete
  4. No problem.
    @Tim happy to know I could help. oracle-base has helped me countless number of times :)

    ReplyDelete
  5. Thanks a bunch buddy!

    ReplyDelete
  6. In Debian

    First, sorry for my bad english.

    There is a symbolic link in /sbin folder, file mount.vboxsf is wrong linked,
    the right link is mount.vboxsf -> /opt/VBoxGuestAdditions-xxxxx/lib/VBoxGuestAdditions/mount.vboxsf

    ReplyDelete

Post a Comment

Popular posts from this blog

Setup a Wordpress site in 10 Minutes using Oracle Container Cloud Service

Oracle Home Cloning: Tools and Techniques

Using XFS on Oracle Linux