smb shared folders - FreeBSD Guest, Windows XP Host

Discussions about using non Windows and Linux guests such as FreeBSD, DOS, OS/2, OpenBSD, etc.
Post Reply
missilesilo
Posts: 3
Joined: 23. Dec 2008, 18:51

smb shared folders - FreeBSD Guest, Windows XP Host

Post by missilesilo »

Hi All,

I am trying to access a Windows XP share on FreeBSD 7.0. I added the share named "share" under Shared Folders. (Shared Folders work fine with my Windows XP Guest machine.)

I tried to mount it by typing this command:

Code: Select all

mount -t smbfs //10.0.2.2/share /mnt/share
But I got this error:

Code: Select all

mount_smbfs: can't get server address: syserr = Operation timed out
I'm not sure if 10.0.2.2 is the right IP to use, but I can ping it. I tried vboxsrv and that didn't work under FreeBSD.

Any help would be appreciated.
leideckn
Posts: 3
Joined: 30. Dec 2008, 02:07

VirtualBox Guest Additions

Post by leideckn »

Hi missilesilo,

I think you missed to install the VirtualBox Guest Additions on the FreeBSD virtual machine.

Then you can mount a share with

Code: Select all

mount -t vboxsf VBoxSharedFolderName /mnt/WhatEver -orw
or you can setup automatic mount during the guest system startup. This is my /etc/fstab entry on a Debian Guest machine.

Code: Select all

VBoxSharedFolderName  /mnt/vboxshare  vboxsf  uid=33,gid=33,rw  0  0
Take care of vboxSF !! NOT vboxFS ... it's SharedForlder and not FileSystem ... I searched for this little typo one week :D

Cheers, Nils
missilesilo
Posts: 3
Joined: 23. Dec 2008, 18:51

Post by missilesilo »

I guess Guest additions aren't available for FreeBSD. :( Bummer.
Raven
Posts: 54
Joined: 2. Oct 2008, 18:27

Post by Raven »

Your virtual NIC needs to be set to Host Interface, not to NAT. Then set up your guest with a static IP unless the host or someplace else on the LAN has a DHCP server. And don't forget to open ports on the guest. Then you should be able to mount Samba shares.
Post Reply