smb shared folders - FreeBSD Guest, Windows XP Host

Discussions about using non Windows and Linux guests such as FreeBSD, DOS, OS/2, OpenBSD, etc.

smb shared folders - FreeBSD Guest, Windows XP Host

Postby missilesilo » 30. Dec 2008, 05:12

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   Expand viewCollapse view
mount -t smbfs //10.0.2.2/share /mnt/share


But I got this error:
Code: Select all   Expand viewCollapse view
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.
missilesilo
 
Posts: 3
Joined: 23. Dec 2008, 18:51

VirtualBox Guest Additions

Postby leideckn » 30. Dec 2008, 18:18

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   Expand viewCollapse view
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   Expand viewCollapse view
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
leideckn
 
Posts: 3
Joined: 30. Dec 2008, 02:07

Postby missilesilo » 31. Dec 2008, 05:41

I guess Guest additions aren't available for FreeBSD. :( Bummer.
missilesilo
 
Posts: 3
Joined: 23. Dec 2008, 18:51

Postby Raven » 7. Jan 2009, 03:33

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.
Raven
 
Posts: 31
Joined: 2. Oct 2008, 18:27


Return to Other Guests

Who is online

Users browsing this forum: p166 and 5 guests