X

News, tips, partners, and perspectives for the Oracle Solaris operating system

Sharing Folders from VirtualBox on a Mac OS Host

Guest Author

As of VirtualBox 2.0.4, shared folders are still not supported for Solaris guests. However, you can still share data with your host operating system using SMB. In this example I'll explain how to set up the share on Mac OS and access it from OpenSolaris.

Step 1: Configure Mac OS to share files

Open the Sharing system preference and set File Sharing to On:

Click the Options button and select Share files and folders using SMB:


Note down your Mac's IP address, which you can find from the Network Utility. In my case is 10.0.1.186:

Step 2: Access the share from OpenSolaris

Select Network from the Places menu, which will probably only show a Windows Network icon. Click the pencil icon in the Location Bar and enter the following string: smb://<ip address of Mac OS host>. For example:



And you should see your share. Note, unless you've changed the default permissions, you'll only have read access.

Join the discussion

Comments ( 5 )
  • W. Wayne Liauh Tuesday, November 11, 2008

    How did you manage to get the IP address of 10.0.1.186 ?

    Also, did you have to change the VBox networking option from NAT to HIF?


  • W. Wayne Liauh Tuesday, November 11, 2008

    Hi Jim,

    Thanks for the reply.

    Actually I went to your blog first, but was unable to duplicate the result in Vista.

    The following is a summary of what I did:

    In Vista, I first change the sharing option to reader (everyone)

    Then in the os200811.RC1 VM, I entered the location of

    smb://10.0.2.2\\\\HP6K\\user\\hliwin\\shareholder

    but it showed 0 items.

    Same result (i.e., showing 0 items) if I only typed in smb://10.0.2.2

    I think your NAT approach is better, if I can make it to work in Vista, for sharing the OpenSolaris VM with the host, as I don't have to change the VM networking option to the promiscuous mode.


  • Brian Leonard Wednesday, November 12, 2008

    Sorry Jim, I had no idea you had just blogged on this same topic (and you gave me the idea for the blog). With regards to my IP address of 10.0.1.186, that's served up by my router. And I did do everything using NAT.


  • gules Sunday, March 1, 2009

    Hi !!.

    A lot of thanks for posting this.

    I used with Ubuntu and works fine.

    Bye.


  • Piero Thursday, February 25, 2010

    That is fantastic; thanks for the guide. I tried it for Ubuntu and it works perfectly.

    Anyway to make this happen automatically upon starting up Ubuntu?


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.