Page 1 of 1

Share Host folder with Oracle Enterprise Linux

Posted: 4. Apr 2010, 00:06
by tokesan
Hello
I don't know more that a handful of Linux commands. My goal is to install Oracle EBS R12 on Oracle Enterprise Linux guest on Vista 64 host. I was able to install Virtual Box without issues (3 weeks ago no) Since then I have been trying to share a folder (directory) on Vista host with Linux Guest.

This is what have have done:
1) I have installed Linux Guest additions
2) I tried to use this command to share but it never worked: sudo mount -t vboxsf <folder-name> /media/windows-share
3) The share command that worked (well sort of) for me is this: mount -t vboxsf /mnt/OracleLinux
4) The result of the command is here:

[root@localhost ~]# mount -t vboxsf /mnt/OracleLinux
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
[root@localhost ~]#


I am not able to tell if the mount is successful. But what is going on is that I can see the share folder OracleLinux on the linux guest. BUT it is empty, which is not so, there are a lot of files in there. I have attached the image showing the location of the share in the Linux Guest.
Please help me out. I really don't want to have to download Windows version of Oracle R12. My Internet provider (Comcast) will be mad and It took me a week to download all the 55Gigs.
Thanks
Image

Re: Share Host folder with Oracle Enterprise Linux

Posted: 4. Apr 2010, 03:39
by Perryg
First create a share in the guest settings called "share" and drill to the location you want to use on the host.
Then you must create the mount point on the Linux guest and we will use oraclelinux for the mount point.
As SuperUser or root

Code: Select all

mkdir /mnt/oraclelinux
Then you mount the share with this

Code: Select all

 mount -t vboxsf share /mnt/oraclelinux
For more information see 4.7. Folder sharing in your VirtualBox users guide.

Re: Share Host folder with Oracle Enterprise Linux

Posted: 4. Apr 2010, 21:11
by tokesan
Thanks Perryg
I followed your steps but got unknown filesystem type 'vboxsf' when I tried to mount.

[root@localhost ~]# mkdir /mnt/oraclelinux
[root@localhost ~]# mount -t vboxsf share /mnt/oraclelinux
mount: unknown filesystem type 'vboxsf'
[root@localhost ~]# mount -t vboxfs share /mnt/oraclelinux
mount: unknown filesystem type 'vboxfs'

Re: Share Host folder with Oracle Enterprise Linux

Posted: 4. Apr 2010, 21:41
by Perryg
In a terminal window run uname -a and post the results.
Plus post the log file for the guest (as an attachment)

Re: Share Host folder with Oracle Enterprise Linux

Posted: 5. Apr 2010, 06:18
by tokesan
Hi

I ran the the command and here is the result
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Thu Sep 3 04:15:13 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]#

Also attached is the log. Not sure if I should be getting any log form inside the guest

Many thanks

Re: Share Host folder with Oracle Enterprise Linux

Posted: 5. Apr 2010, 15:05
by Perryg
Are you sure that you have the guest additions installed?
Look in /var/log/ and see if you have:
vboxadd-install.log
VBoxGuestAdditions.log

Also see if /etc/init.d/vboxadd exists

Re: Share Host folder with Oracle Enterprise Linux

Posted: 6. Apr 2010, 17:08
by tokesan
Thanks a lot. Below are my findings.

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Thu Sep 3 04:15:13 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]#

Guest Additions Message while trying to install:

Verifying archive integrity... All good.
Uncompressing VirtualBox 3.1.4 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version of VirtualBox Guest Additions...
Building the VirtualBox Guest Additions kernel modules [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)
Installing the Window System drivers
Installing X.Org 7.1 modules [ OK ]

You appear to be running an older version of the X Window system in your
guest. Seamless mode and dynamic resizing will not work!

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@localhost VBOXADDITIONS_3.1.4_57640]#

var/log/vboxadd-install.log
Makefile:23: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.. Stop.

var/log/VboxGuestAdditions.log
Starting the VirtualBox Guest Additions [60G[ [0;31mFAILED [0;39m]
(modprobe vboxguest failed)
Starting VirtualBox Guest Addition service VirtualBox Additions module not loaded!



Screenshot of init.d
https://docs.google.com/Doc?docid=0AQUg ... tZjI&hl=en

Re: Share Host folder with Oracle Enterprise Linux

Posted: 6. Apr 2010, 17:24
by Perryg
OK the guest additions failed to install because the OS was not prepared to build external modules. Since I don't know what this was built on (it looks like a really old RedHat or CentOS) see the link Howto: Install Linux Guest Additions + Xorg config
In any case you need to install the kernel-headers, and build modules, and they must match your kernel.
Perhaps you should look in the Oracle Forums under the heading enterprise linux and see what they say to do to be able to run this in VirtualBox.

Re: Share Host folder with Oracle Enterprise Linux

Posted: 6. Apr 2010, 17:33
by tokesan
Ok, then. Thanks a lot. Maybe I'll just reinstall from scratch...