VirtualBox how to mount share folder

Installing and upgrading FreeBSD.

VirtualBox how to mount share folder

Postby a129878 » 19 Mar 2010, 13:36

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
a129878
Junior Member
 
Posts: 27
Joined: 18 Jan 2010, 11:05
Location: UK

Postby Zare » 19 Mar 2010, 14:52

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: Select all
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.
Zare
Member
 
Posts: 385
Joined: 16 Nov 2008, 23:05
Location: Split, Dalmatia

Postby SirDice » 19 Mar 2010, 15:17

Zare wrote:FreeBSD doesn't have guest additions drivers.

Then I wonder what these are: [port]emulators/virtualbox-ose-additions[/port].
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16194
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby a129878 » 19 Mar 2010, 16:35

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.
a129878
Junior Member
 
Posts: 27
Joined: 18 Jan 2010, 11:05
Location: UK

Postby a129878 » 19 Mar 2010, 17:02

Well - all that went OK till I got:-
Code: Select all
 mount_smbfs: cant get server address: syserr=Op TO.

My command line:-
Code: Select all
 mount_smbfs //a129878@xp/Rt /mnt

'xp' pings OK
'Rt' is from VBoxMange show info:-
Shared folders:
Code: Select all
  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.
a129878
Junior Member
 
Posts: 27
Joined: 18 Jan 2010, 11:05
Location: UK

Postby vermaden » 20 Mar 2010, 10:09

@a129878

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

[CMD="#"]mount -t vboxsf VBoxSharedFolderName /mnt[/CMD]
Religions, worst damnation of mankind.
"FreeBSD has always been the operating system that GNU/Linux should have been." Frank Pohlmann, IBM
[FILE][color="DarkSlateBlue"]http://vermaden.blogspot.com[/color][/FILE]
User avatar
vermaden
Giant Locked
 
Posts: 2317
Joined: 16 Nov 2008, 19:37
Location: pl_PL.lodz

Use the Tools

Postby rossiya » 11 Apr 2010, 01:19

How about using builtins tar and nc?
rossiya
Junior Member
 
Posts: 32
Joined: 19 Mar 2010, 01:40

vermaden, what's the magic

Postby rden » 13 May 2010, 10:30

vermaden wrote:@a129878

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

[CMD="#"]mount -t vboxsf VBoxSharedFolderName /mnt[/CMD]


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?
rden
Junior Member
 
Posts: 38
Joined: 07 Jan 2010, 02:26
Location: Singapore

Postby a129878 » 14 May 2010, 20:32

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.
a129878
Junior Member
 
Posts: 27
Joined: 18 Jan 2010, 11:05
Location: UK

Postby rden » 15 May 2010, 04:44

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
rden
Junior Member
 
Posts: 38
Joined: 07 Jan 2010, 02:26
Location: Singapore


Return to Installing & Upgrading

Who is online

Users browsing this forum: pathiaki, SirDice, Yahoo [Bot] and 0 guests