Technology Musings
I’ve written about enabling Guest Additions on Windows 7 Beta 1 in VirtualBox. While most items work, such as mouse integration and Auto-resize Guest Display, one of the items that still doesn’t correctly function is Shared Folders. Fret not, because there is a simple workaround that can provide basic functionality. Also note, that this method works for any Windows guest, and could be adapted for a variety of other guests.
First, a quick word about the host OS: It must be running some implementation of Microsoft Windows network file system (SMB/CIFS) networking to work. If the host OS is Windows, you’re all set. If you’re on a Mac or Linux host environment, you’ll need to use Samba. Fortunately, Samba is nicely integrated with modern Mac and Linux releases. As for the guest OS, you’ll need to have some sort of networking enabled. With the revamped host networking in 2.1, I highly recommend you use that if at all possible.
As long as the above requirement is met, you may share the folder you want to access. I say “may” only because if your host OS is Windows, you can access the hidden drive shares directly. If this is the case, skip the next section and head right for the next paragraph. If you’re new to sharing a folder, here are the steps to accomplish it.
Windows
Ubuntu
Mac
You should then be able to access the share by browsing “\\localhost\sharename”. If you opted to skip creating a share, and want to use the built-in hidden shares, specify “C$” as the share name. Authenticate if necessary and you should be browsing your shared folder locally.
A new window should open with your new share. You can also minimize this window – exposing the underlying Computer window. A new drive letter under Network Location should be available.
That’s it, you’re done. Windows shares don’t always behave as easily as they should, so if you encounter an error, don’t give up. Keep trying and post the error in the comments.
16 Responses to Windows 7 in VirtualBox: Shared Folders workaround
Installing Windows 7 Beta 1 in VirtualBox 2.1.0 | Idea Excursion
January 15th, 2009 at 6:11 pm
[...] Update: Currently, shared folders don’t work, but I’ve posted a workaround. [...]
francis
January 19th, 2009 at 9:04 am
I’ve tried my best but i cannot possibly figure out what it is i am doing wrong… Shared folders + vBOx = never a good combo
VirtualBox 2.1.2 released | Idea Excursion
January 22nd, 2009 at 10:25 am
[...] Windows 7 is now a supported OS (see Installing Windows 7 Beta 1 in VirtualBox 2.1.0 and Windows 7 in VirtualBox: Shared Folders workaround) [...]
David Gerard
January 25th, 2009 at 9:17 am
@Francis – works perfectly for an XP guest. It’s just Windows 7 being, uh, beta.
Darran
May 11th, 2009 at 12:07 am
I made a web account with 110mb.com and im using ftp to transfer my files, its free and simple, i use filezilla to transfer my files.
Its very simple try it if you want
heather
May 20th, 2009 at 6:27 pm
@francis – try putting \\vboxsvr\ when you map the network drive. it worked fine for me
Jeff
June 26th, 2009 at 11:06 pm
Windows 7 RC Guest on Mac OSX 10.5.6 Host.
Shared Desktop (/Users/username/Desktop).
In Windows 7, Map Network Drive Z: to \\vboxsrv\Desktop
voila, no additions, easy
alan
July 5th, 2009 at 8:23 pm
that \\vboxsrv really works, how silly!!
make a share folder in vbox
save something from win 7 in it
rifht click network – map net drive
use the point name above hehe, and u see your file ;9
nicholas
July 12th, 2009 at 9:03 pm
uh, vboxsrv or vboxsvr? both give me “network error: windows cannot access \\___”.
nicholas
July 12th, 2009 at 9:11 pm
heather is right, it’s vboxsvr, but apparently mine wasn’t scanning the shared folders for the machine, so \\vboxsvr\sharename worked while \\vboxsvr didn’t.
luis vaca
July 16th, 2009 at 4:59 pm
If you map a general linux location such as “\\vboxsrv\media” you should have access to USB, CD-DVD, all linux media….IT REALLY WORKS
Marcio Henrique
July 25th, 2009 at 7:48 pm
OK, tks guys!!
The “\\vboxsvr\shared_folder” really did the trick!!! After spent 2 hours, that was my redemption!
Tks again!
SeaGrizzly
August 14th, 2009 at 5:34 pm
Seems that you have to do the full path as well, not just \\vboxsvr
King321
November 13th, 2009 at 10:43 am
\\vboxsvr\Name work awsome, must set it up to share in virtualbox first then map it in the host OS
malibusurfer
December 7th, 2009 at 2:59 pm
One minor note: \\vboxsrv\Temp to link/share a folder called Temp in Ubuntu to Windows 7 in VirtualBox. Would not work if I tried to Map drive in Win 7 as \\vboxsrv\myname\Temp or \\vboxsrv\home\myname\Temp (myname is my home’s folder).
I am using Ubuntu 9.04, VirtualBox 3.1.0, and Windows 7 Pro.
Speaker
March 6th, 2010 at 12:59 am
Wasn’t able to understand how to access the shared folder in the quest OS from this tutorial.
Hmmm, I’ll scratch my head and keep reading until it sinks in I think.
Thanks for posting this!