Art of BI: OBI 11g SampleApp v107 VirtualBox – Host Shared Folders Mount

The new Oracle BI 11g Sample is amazing and has a lot of features.  It is quite perfect for a sandbox testing environment (with the main exception being that the Admin Tool is still MS Windows-based and not available in this Linux OS VM Image).

One question that gets passed around quite a bit is how to transfer files between the SampleApp VM Image guest (VirtualBox VM Image OS) and the host machine (Your laptop or workstation main OS).  There are really only two core answers to this.

  1. FTP
  2. Shared Folders

FTP

The file transfer protocol is nothing new to you I am sure.  However, what can be confusing is the virtual FTP’ing of files basically within your same machine, i.e.: your host machine to your guest VM Image (all from the same machine if testing on your laptop or local workstation).  To achieve this you need to set your VirtualBox VMImage (or VMWare image is you are clever enough to convert the base SampleApp VM Image) Network Adapter to one that can communicate with the host OS.  My favorite is just to used the “Bridged” network adapter configuration from my home office as I have a DHCP router which will automatically assign my VM Image OS an IP on my LAN.   After restarted the VM Image to take the network adapter configuration, run an /sbin/ifconfig -a from the terminal window to show the IP address that was assigned to the virtual machine. Got it? Good!

Now from your host OS, open up your favorite FTP client and FTP to that IP address.  You can use the oracle/oracle credentials or the root/oracle credentials.  Be sure to list port 22 not port 21. You should be able to connect with no problem as by default the folks at Oracle have disabled the firewall and SELinux on the SampleApp VM Image.  Once connected, you can transfer files as you normally would from your local machine to any other remote server; it’s just all virtual now. Sweet!

Shared Folders

The other option is a bit more complex when running a Linux OS as the VM Image guest machine but the ability to have a local reference to the host OS’s folder/directory of your choosing can be very beneficial.   Unlike a MS Windows guest OS, which if using Shared Folders will automatically assign a driver letter, etc. to the shared folders, the Linux OS, which is what we are dealing with for the SampleApp VM Image requires a “mount”.  That’s right, you still have to break out your Linux command-line expertise and run the “mount” command after using the VirtualBox Shared Folder settings (Devices > Shared Folders…).

Fortunately the VirtualBox documentation provides a great step-by-step section to walk you through creating the mount.  This was quite handy since the mount requires a file-system type reference specific to VirtualBox.

One thing I did notice though was that after the mount of the shared folder to local folder that I instantiated, the mount folder ultimately ended up in the /media/ folder with a prefix of “sf_”.  I thought this strange but really didn’t care too much as long as I could get at the data transfer files and location I need I was happy.

References:

http://www.virtualbox.org/manual/ch04.html#sharedfolders

Contact Us
Christian Screen
Christian is an innovator in analytics and data warehousing design, best practices, and delivery. With more than fifteenyears of decision support and data warehousing with key experiences at Office Depot HQ, Sierra-Cedar, and Capgemini, he oversees the Oracle Analytics Practice which includes the technical development and delivery of Oracle BI collaboration software, data warehouse solutions, Oracle BI/EPM projects, and packaged analytics solutions at Datavail.

Leave a Reply

Your email address will not be published.
Required fields are marked (*).

2 thoughts on “Art of BI: OBI 11g SampleApp v107 VirtualBox – Host Shared Folders Mount”
  1. Christian,nnNo need to bother with mounting (I don’t, because then I’d have to remember all the options for the mount command).nnBefore you start it up, go to settings for your VM (VirtualBox) – Shared Folders and you can set them to auto mount.nnAlso, you can change the prefix to whatever you want (default is “sf_”) by digging into the config files (it’s in the help files somewhere). I ran into this “new” feature a few months back.nnchet