Shared folder as local drive

Discussions about using Windows guests in VirtualBox.
Post Reply
theWeird
Posts: 1
Joined: 14. Apr 2010, 20:15
Primary OS: Debian Lenny
VBox Version: OSE Debian
Guest OSses: SuSE, Debian, WindowsXP

Shared folder as local drive

Post by theWeird »

Hey there.
Is there a way to connect a shared folder as local drive instead of network drive?
I'd like to create further network shares on the shared folder's contents, but as far as I know windows is not able to share folders from network drives.
Host is Debian Lenny and Guest is WinXP Pro
Regards, Michael
ahznb
Posts: 64
Joined: 7. Feb 2010, 13:39
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Win98, XP, Win7, Ubuntu

Re: Shared folder as local drive

Post by ahznb »

Create a batch file and put in it the commands to map the shared folders to drive letters. For example:

subst E: \\vboxsvr\yourshare

and put the batch file in Start->All Programs->Startup, or add it in the registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run.
pancho
Posts: 7
Joined: 5. Nov 2009, 21:55
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: none

Re: Shared folder as local drive

Post by pancho »

How did you map the shared file. I have listed as a share in VM, but the guest cant see it. How did you do yours?
Host xp home, Guest xp professional.
ahznb
Posts: 64
Joined: 7. Feb 2010, 13:39
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Win98, XP, Win7, Ubuntu

Re: Shared folder as local drive

Post by ahznb »

Install guest additions, it should show up in Explorer->'My Network Places'.
mathew42
Posts: 3
Joined: 1. May 2011, 13:02
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: WinXP

Re: Shared folder as local drive

Post by mathew42 »

I don't consider that the questions so far have answered the original question.

I have a Windows 7 guest that is a member of a domain. If I map a drive to a shared folder (e.g. map s: to \\VBOXSRV\Software) the drive is treated as a network share. This has the following issues:
  • Cannot run programs (likely to be a domain security setting)
  • Cannot use t: as a temp drive (in this case the shared folder is a ram disk)
Any thoughts on how to resolve this?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Shared folder as local drive

Post by Perryg »

http://www.virtualbox.org/manual/ch04.h ... unt_manual

But if you really want to use the features you request you should use a true network share. In either case you need to map the share to give it a drive letter.
mathew42
Posts: 3
Joined: 1. May 2011, 13:02
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: WinXP

Re: Shared folder as local drive

Post by mathew42 »

The manual explains how to mount the shared folder as a network drive in windows.
Perryg wrote:But if you really want to use the features you request you should use a true network share.
I don't want a network share. I want the shared folder to appear as a local drive. The host VM is not a member of the domain so I cannot create a "true" network share.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Shared folder as local drive

Post by Perryg »

Then you only option is to use the VBox shared folder and map that as a drive.
Post Reply