Filesharing with FreeBSD 10.x as Virtualbox Guest on Win7-64bit Host

After several days of trial and error, reading dozens of hints I am not able to solve my challenge.
The challenge
Getting filesharing to work between a:
win7-64 Home Premium host (4 CPU / 8GB)
and a virtualized FreeBSD 10.1 64 bit Guest
using Virtualbox 4.3.26

In addition Copy & Paste between the host and the Guest Console (not GUI) would be helpful as well.
Drag & Drop would be just nice add-on.

To save me further searching without any success I would like to you could help me clarifying
My Questions:
  1. Is this possible at all?
    1. With 10.x
    2. if not: with 9.3+
  2. What needs to be done (Step by step HOW TO would be nice)
    1. Using the standard tools/extensions (Guest Extensions (OSE), etc)
    2. An alternative with Samba
    3. Other alternatives giving file sharing locally (means within my machine; No Dropbox, Cloud, etc.)
  3. How to do copy & paste from the host to the console (keystrokes, etc.)
What I don't need:
  1. Hints to use different Virtualisation, OS's, etc.
  2. Manual solutions (winscp, GUI based, etc.)
  3. Assumptions, but not proven solutions
What have I done so far:
  • I used a 10.1 FreeBSD package from OSboxes
  • Have VB OSE-Additions installed (pkg add)
  • Followed various installation instructions like those

Any help appreciated.
Thanks
 
File sharing through VirtualBox virtual folders is not yet supported on FreeBSD guests.

However, you can use Samba for these purposes:
  • Ensure that you have configured sharing on the Windows folder to the user you wish to use to share on FreeBSD.
  • First test mounting the folder:
Code:
mount_smbfs -I ip_address //username@nameofwindowsbox/foldername /mnt

For example, my Windows host has IP address 192.168.200.50, the user name is bsd777, the Windows computer name is W530 and the name of share on Windows computer is repos. I would mount the shared folder by typing the below command:
Code:
mount_smbfs -I 192.168.200.50 //bsd777@W530/repos /mnt

If everything is correct you'll be prompted for the Windows user password.

Please note that you might have to add some firewall rules on your Windows box to allow incoming connections from your FreeBSD guest.
  • To make it mount on boot add the following to /etc/fstab:
Code:
//username@nameofwindowsbox/foldername  /mnt smbfs  rw,-N,-f660  0 0
It should now be mounted every time you boot.

If you don't want to be prompted for password add the below in /etc/nsmb.conf:

Code:
[default]
[NAMEOFWINDOWSBOX]            
addr=192.168.200.50
[NAMEOFWINDOWSBOX:USERNAME]
password=myPassword
Please note that NAMEOFWINDOWSBOX and USERNAME should be always typed in capital letters.

For example:
Code:
[default]
[W530]            
addr=192.168.200.50
[W530:BSD777]
password=myPassword
 
Back
Top