Tuesday Mar 24, 2009

One of the new features of the recently posted VirtualBox 2.2 beta1 is that you are finally allowed to share folders from an OpenSolaris guest to a MacOS host.  This increases the usability of VBox substantially for me because I've been using a workaround for a while.

It's easy to setup the sharing capability in the Virtualbox GUI. With your VM running:

Devices > Shared Folders

Enter the path of a folder on our Mac and the "Share" name that you will be using to reference it on your OpenSolaris system.  The folder name does not need to be related to the actual folder path.

On the OpenSolaris side, you need to mount the file system to make it visible to the user.

bash-3.2$ id
uid=101(jlaurent) gid=10(staff) groups=10(staff)

bash-3.2$ mkdir mac
bash-3.2$ pfexec mount  -F vboxfs -o uid=101,gid=10 jlaurent /export/home/jlaurent/mac

This, however, is annoying to do each time you reboot so it would be nice to have the file system mount on boot up.  Adding a line to /etc/vfstab should help.

 jlaurent    -    /export/home/jlaurent/mac    vboxfs    -    yes    uid=101,gid=10

Unfortunately, in my testing, this prevented the system from booting.  Thanks to Michael, I learned that this is because Solaris process vfstab BEFORE it completes the ZFS mount of my home directory in /export/home.  Changing the line to:

jlaurent    -    /mac    vboxfs    -    yes    uid=101,gid=10

Fixed the problem.  

However, it's not very convenient at /mac.  There are a few other options.

You can also add the line you your .bashrc file but that only takes effect when you start a new terminal window.  The best option for me was to place the line in the Gnome session startup scripts.

System > Preferences > Sessions > Add


There's a little trick, however, that was non-intuitive to me the first time I did this.  My file system was NOT mounting on login and I didn't know why.  I checked into my .xsession-errors file and found the message: mount: command not found.

As you can see in the screen shot above, the absolute pathname is required for commands executed during login.

Issues:

StarOffice and Gedit do NOT want to save data back into this folder even though cp and vi have no problem with it.  I'm still researching this issue.



Comments:

Is this a paid software or a freeware. On windows machine networking with a remote virtual server is straightforward without any extra software. However not to solaris platform. For mounting a drive form solaris on windows can be quite tricky and often requires specialist client software to establish the connection. It a pity this solution will not apply to me as I am not on mac.

Posted by Web designer UK on March 24, 2009 at 03:16 PM EDT #

Thanks for your comment. Perhaps you don't understand what VirtualBox is. VBOX is a free type two hypervisor that allows you to run virtual OS instances (Windows, Linux, Solaris) on top of a wide variety of hosts (Mac, Linux, Solaris or Windows).

In this case, I'm not using exclusively to provide network access (which OpenSolaris has no problem doing using CIFS or NFS) but to use the Shared folders feature in VBOX.

Shared Folders allows my OpenSolaris guest to mount and view folders on my Mac without having to use networking which provides improved performance.

Download VBOX at virtualbox.org for free. You can run it on Windows and then install a Solaris, Windows or other X86 based OS.

Posted by Jim Laurent on March 24, 2009 at 03:34 PM EDT #

Dear Jim,
Thank you for kindly sharing this with us.
I just updated the VirtualBox running on Windows Vista (4GB RAM) as a host with OpenSolaris as guest on VirtualBox. Apparently I hit a glitch and will be very grateful if you can kindly help me out with this:

After starting OpenSolaris on VirtualBox I clicked into Device>Shared Folders

Then, under Add Share, I click Others to do a path selection from existing folders, and then it hanged with
Runtime Error

R6025
- pure virtual function call

I wonder if I have missed some important steps here?

Kindly please advise.

Many thanks

Lin

Posted by lin on April 14, 2009 at 06:55 AM EDT #

Thanks for trying out Virtual Box. I'm sorry that you're having problems. I suggest that you join the community at http://www.virtualbox.org/wiki/Community and post your question there.

Your problem has already been mentioned in this thread but there's no immediate resolution:

http://forums.virtualbox.org/viewtopic.php?f=4&t=16206&start=0

Keep an eye there

Posted by Jim Laurent on April 14, 2009 at 08:26 AM EDT #

As a person who is 100% microsoft free at home and work, I'm not the best resource to help you with this problem. The forums or email lists at the Virtual Box community site, however should be able to help you.
http://www.watchrolexshop.com
http://www.gamegoldme.com
http://www.cheap-lotrogold.com
http://www.globalsale.me/Aion-gold-083.aspx
http://www.cheap-gamegold.org
http://www.gamegoldvip.org

Posted by replica rolex on June 25, 2009 at 12:45 AM EDT #

Post a Comment:
  • HTML Syntax: NOT allowed