OpenSolaris / VirtualBox: Mount Shared Folder

Teknoloji

12 Aug 2009

To mount a shared folder in a OpenSolaris guest in VirtualBox, you have to install the Guest Additions and then mount the file system type vboxfs. The Usage is:

mount -F vboxfs  

If you want to share the filesystem /share from the host to the guest, then first create the share. Go to “Shared Folders” in the Virtual Machine’s Settings and click the little folder with the green plus on the right.
add shared folder icon

Then select the folder to share (/share in the example) and enter a name for the share (share here).

add shared folder dialog

As a result, you will see the folder in the settings:

shared folder settings

Now boot the OpenSolaris, log in and open a Terminal. I assume that you are using the user creates during boot which has the “System Adminitrator” profile. The commands will be executed with the rights given by this profile, so they need to be executes with pfexec.

First, create the mountpoint if it doesn’t exist. You will have to do this only once.

pfexec mkdir /share

Now, mount the share.

pfexec mount -F vboxfs share /share

If you want to have the filesystem mounted on every boot, then add this to the file /etc/vfstab. You can do this by executing pfexec vi /etc/vfstab.

share   -   /share  vboxfs  -   yes -

Source/Kaynak : http://blogs.sun.com/andreashuber/entry/opensolaris_virtualbox_mount_shared_folder

1 Response to OpenSolaris / VirtualBox: Mount Shared Folder

Avatar

psha

June 21st, 2010 at 13:41

doesn’t work

Comment Form

Content In Different Language


Recent Comments


  • Jim Dougherty: You can fix Solaris 8 named_to_major, path_to_inst, drivers_alias errors on boot by simply installin [...]
  • psha: doesn't work [...]
  • Jiji joseph: Can you please let me know how can I get the SRMTools ? [...]
  • Sebastian: Hi, I don't think using a suite will work either. The order is also random. It is just a coincide [...]
  • Henry: Hey, I can't seem to get this working on my mac. The page down works if I put the focus on the wind [...]
  • Our Scores