Specialized IT Services focused on Data Management | Speak with Us 877-634-9222
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.
- Shared Folders
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!
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.