12755 VirtualBox how to mount share folder - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old March 19th, 2010, 14:36
a129878 a129878 is offline
Junior Member
 
Join Date: Jan 2010
Location: UK
Posts: 27
Thanks: 5
Thanked 0 Times in 0 Posts
Default VirtualBox how to mount share folder

XP Host - FreeBSD_8 Guest
How can I mount my XP shared folder in the FreeBSD guest ?
Most every thing else works in this set up.
XP = Uptodate
VBx = 314
FreeBSD = 8.0-RELEASE #0 Nov 21 15:48:17
Reply With Quote
  #2  
Old March 19th, 2010, 15:52
Zare Zare is offline
Member
 
Join Date: Nov 2008
Location: Split, Dalmatia
Posts: 360
Thanks: 26
Thanked 50 Times in 41 Posts
Default

FreeBSD doesn't have guest additions drivers. Here's an simple workaround which basically does what "shared folders" do when you have guest additions installed;

- make sure that your VirtualBox network is in bridge mode for FreeBSD guest.
- make sure that your FreeBSD can ping Windows XP.
- make sure that it can resolve XP's hostname, try pinging it by hostname
- if not, add an entry into /etc/hosts
- add another user in your XP system, grant him some privileges on the directory you want to share,

now, as root on your FreeBSD guest do something like this

Code:
mount_smbfs //user@xp_box/SHARED /mnt/xp
...where of course, user is XP user that has some rights on the share, SHARED is the windows share name, and /mnt/xp is target directory. It will ask you for your user password, and that should be it.

Basically, when in bridge networking mode, vbox host and guests are like computers on the same physical network.
Reply With Quote
The Following User Says Thank You to Zare For This Useful Post:
a129878 (March 19th, 2010)
  #3  
Old March 19th, 2010, 16:17
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,852
Thanks: 48
Thanked 2,061 Times in 1,890 Posts
Default

Quote:
Originally Posted by Zare View Post
FreeBSD doesn't have guest additions drivers.
Then I wonder what these are: emulators/virtualbox-ose-additions.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #4  
Old March 19th, 2010, 17:35
a129878 a129878 is offline
Junior Member
 
Join Date: Jan 2010
Location: UK
Posts: 27
Thanks: 5
Thanked 0 Times in 0 Posts
Default

I did go through all that, but erroneously dismissed it as FreeBSD hosting VBx.
Now comes the problem I have not cracked yet with FreeBSD.
My FreeBSD's have no access to the internet (Corporate policy, not mine)
Klik the ref of "virtualbox-ose-additions-3.1.51.r25618_2 " and then I am stuck, as this seems to present just change history and not the iso/whatever.

I find this a more general problem in knowing how to take a port element and put it on my FreeBSD system as though the internet were there.
Reply With Quote
  #5  
Old March 19th, 2010, 18:02
a129878 a129878 is offline
Junior Member
 
Join Date: Jan 2010
Location: UK
Posts: 27
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Well - all that went OK till I got:-
Code:
 mount_smbfs: cant get server address: syserr=Op TO.
My command line:-
Code:
 mount_smbfs //a129878@xp/Rt /mnt
'xp' pings OK
'Rt' is from VBoxMange show info:-
Shared folders:
Code:
  Name: 'Rt', Host path: 'C:\Documents and Settings\A129878\My Documents\Rt' (machine mapping), writable
The man pages look horrrrific !

Boy - the cutting edge or what.

Last edited by DutchDaemon; March 19th, 2010 at 18:15.
Reply With Quote
  #6  
Old March 20th, 2010, 11:09
vermaden's Avatar
vermaden vermaden is offline
Giant Locked
 
Join Date: Nov 2008
Location: pl_PL.lodz
Posts: 2,210
Thanks: 60
Thanked 637 Times in 352 Posts
Default

@a129878

After You install the guest additions in your FreeBSD guest system, You will be able to use vboxsf:

# mount -t vboxsf VBoxSharedFolderName /mnt
__________________
Religions, worst damnation of mankind.
"FreeBSD has always been the operating system that GNU/Linux should have been." Frank Pohlmann, IBM
http://vermaden.blogspot.com
Reply With Quote
  #7  
Old April 11th, 2010, 02:19
rossiya rossiya is offline
Junior Member
 
Join Date: Mar 2010
Posts: 28
Thanks: 2
Thanked 5 Times in 4 Posts
Default Use the Tools

How about using builtins tar and nc?
Reply With Quote
  #8  
Old May 13th, 2010, 11:30
rden rden is offline
Junior Member
 
Join Date: Jan 2010
Location: Singapore
Posts: 38
Thanks: 2
Thanked 4 Times in 2 Posts
Question vermaden, what's the magic

Quote:
Originally Posted by vermaden View Post
@a129878

After You install the guest additions in your FreeBSD guest system, You will be able to use vboxsf:

# mount -t vboxsf VBoxSharedFolderName /mnt
Hi vermaden,

I've installed VBox on XP, and followed the wiki instructions to install the guest additions. But there aint no "mount -t vboxsf"

How did you manage it?
Reply With Quote
  #9  
Old May 14th, 2010, 21:32
a129878 a129878 is offline
Junior Member
 
Join Date: Jan 2010
Location: UK
Posts: 27
Thanks: 5
Thanked 0 Times in 0 Posts
Default

I did not bother with trying to get XP hosting FreeBSD guest to see the XP world.
I use the free open source winscp (http://winscp.net/eng/index.php) after setting
'sshd_enable="yes"' in /etc/rc.config.
This works fine and also gives putty (http://putty.very.rulez.org/download.html), ssh, access to the FreeBSD service, so I rearely need to use the console(s).
Another advantage in using Winscp is that I can use the same skills to access a full PC FreeBSD as (and at the saem time) as my Virtual Box.
One big advantage in using Putty is that of coloured windows with much larger screens.
Reply With Quote
  #10  
Old May 15th, 2010, 05:44
rden rden is offline
Junior Member
 
Join Date: Jan 2010
Location: Singapore
Posts: 38
Thanks: 2
Thanked 4 Times in 2 Posts
Default

Depends on needs, for me copying files between platforms has never been an issue.

In my own case I really wanted the ability to open files cross-platform, (mostly files living in Windows world opened with *nix tools) - reducing the need to physically copy the files back and forth.

VirtualBox/VMware (tried both) solved the need to reboot between platforms (on a single laptop) but until recently still needed to copy files back and forth, (via USB stick or similar). (-- Fixed that with smb).

Why? My job (that is the one that feeds my kids) often involves raw data inspection and conversion - you still can't beat 'nixens ability to quickly examine and elegantly modify files of any type. (Yes there are many good win/dos tools out there, but coming from multiple sources are rarely uniform in interface and too often gui-based -- making it hard / sometimes impossible to build an automated sequence of operations as easily as a shell script or quick 'n dirty C-prog).

But also must have the Windows platform for reports, proposals, presentations etc. Ooo still way lags on MS office; and with the bulk of my company being on Win cant be making a doc, usually with embedded items, look good in ooo (or similar including google office for those dumb enough to trust it) only to have it look like crap (or simply fail) when my manager opens it in MSword.

Finally stability: when it comes to virtulisation my own testing proved FreeBSD on XP is the king (1. despite being only 32 bit XP beats W7 under load, 2. as to nix guests (again under load) FBSD thrashed linux). Would like to reverse that but nix (including linux) hosted windows guests (and wine too) is still way too freaky -- having [my] emulation sh_t itself intermittently (or at the tail end) of an allnighter is last thing I need
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I share package files between jails ? Defre Installation and Maintenance of FreeBSD Ports or Packages 0 December 19th, 2009 17:47
[Solved] Macros / variables in /usr/share/skel Seeker General 7 November 19th, 2009 11:59
share library corruption on install mitchmitchell Installing & Upgrading 0 October 5th, 2009 18:44
Permission denied on Samba share paleksic Web & Network Services 4 August 18th, 2009 03:35


All times are GMT +1. The time now is 20:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0