Using Samba to share a folder from a Linux guest with a Windows host in VirtualBox

Posted by AmV on Super User See other posts from Super User or by AmV
Published on 2011-03-15T20:20:15Z Indexed on 2011/03/16 0:12 UTC
Read the original article Hit count: 230

Filed under:
|
|

I would like to share a folder from a Linux Guest with a Windows host (with read and write access if possible) in VirtualBox.

I read in these two links: here and here that it's possible to do this using Samba, but I am a little bit lost and I need more information on how to proceed.

So far, I managed to set up two network adapters (one NAT and one host-only) and install Samba on the Linux guest, but now I have the following questions:

  1. What do I need to type in samba.conf to share a folder from the Linux guest? (the tutorial provided in one of the links above only explains how to share home directories)
  2. Are there any Samba commands that need to be executed on the guest to enable sharing?
  3. How do I make sure that these folders are only available to the host OS and not on the Internet?
  4. Once the Linux guest is setup, how do I access each of the individual shared folders from the Windows host? I read that I need to mount a drive on Windows to do this, but do I use Samba logins, or Linux logins, also do I use localhost? or do I need to set up an IP for this?

Thanks!

© Super User or respective owner

Related posts about linux

Related posts about virtualbox