[Solved] XP host to XP guest folder sharing

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Pleek
Posts: 4
Joined: 26. Jul 2009, 00:12
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: XP

[Solved] XP host to XP guest folder sharing

Post by Pleek »

Ok, i need some help. Should be easy to answer. I have an xp host and a xp guest system running. Im trying to set up a shared folder in "shared documents/Machine Shared Files". I followed the network sharing wizard and all, but when I try to add it to the guest system is where my problem is. I browse for the folder but I can't click "OK". Im assuming its something to do with my virtualbox or my host XP. Can somebody run me through it?


thanks, Pleek.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: XP host to XP guest folder sharing

Post by Perryg »

Pleek,

Are you trying a network share or are you trying to setup the VirtualBox shared folder?
For network share we would need more information about the network settings.
For the Shared folder you simply go to the shared folders of the guest settings and select what it is you want to share.
Then you start the guest and open a command window and type the following:

Code: Select all

net use z: \\vboxsvr\<sharename> -p
Replacing <sharename> with the name you gave the share in the settings. This will map the share and it will show up in the file manager as a mapped drive.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: XP host to XP guest folder sharing

Post by Sasquatch »

Keep in mind that names for the Shared Folders in VB cannot contain spaces, these are officially illegal characters in network paths. VB won't let you continue if the name contains a space.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: XP host to XP guest folder sharing

Post by mpack »

Perryg wrote:Then you start the guest and open a command window and type the following:

Code: Select all

net use z: \\vboxsvr\<sharename> -p
Perry, I've seen you offer this advice several times now, but I'm confused because I've never found it to be necessary in any of my XP guest VMs: assuming guest additions are installed, and assuming that I've listed a valid shared folder in the VM settings, then the shared folder works and is visible in the "My Network Places" branch in explorer. Can you expand a bit on why this command may sometimes be necessary, or what feature it enables over and above the functionality I normally see?

Btw, I'm still using VBox 2.1.4 - perhaps you are dealing with some regression in 3.x that I'm not aware of?

Or can this command enable shared folders in a VM that has no GAs installed?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: XP host to XP guest folder sharing

Post by Sasquatch »

Mpack, it's in the manual to use that command. Also, with Windows 7, you can't browse the My Network Places to find the shared folders, but issuing this command will make it work. You can also just enter the UNC path in the address bar (\\vboxsrv\<sharename>) to access the share. And even though you can browse it, not every user sees what we talk about, and after they run the above command, they can see it like any other network mapping in Explorer. We could use something else as answer, like opening Explorer, going to Tools > Map Network Drive and enter the UNC path there, but this involves less steps.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: XP host to XP guest folder sharing

Post by mpack »

Thanks for the info.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: XP host to XP guest folder sharing

Post by Perryg »

Yup!
I find it easier (as I suspect VBox found out early) to show someone the way by using a visual approach instead of a tutorial description of how to use the file manager.
Add to this Windows 7 having a problem it is much easier for me and I suspect the user to show them the way instead of telling them the way.
Then there is the part that being older than dirt this is the way I do it anyway, old habits kind of thing. :wink:

And yes it is the same basic command for standard network shares. If you know the IP address of the VM that you have running and have a share in you can type the command replacing the information and the share will be created. net use x: \\192.168.0.2\Share -p Will map the share of the machine address and the -p makes it persistent.

By the way I have found that the network share is much faster then the shared folder too, so I do use it a lot.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: XP host to XP guest folder sharing

Post by mpack »

Perryg wrote:If you know the IP address of the VM that you have running and have a share in you can type the command replacing the information and the share will be created. net use x: \\192.168.0.2\Share -p Will map the share of the machine address and the -p makes it persistent.
Thanks for the expansion, that is a lot clearer.
Pleek
Posts: 4
Joined: 26. Jul 2009, 00:12
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: XP

Re: XP host to XP guest folder sharing

Post by Pleek »

Perryg wrote:Pleek,

Are you trying a network share or are you trying to setup the VirtualBox shared folder?
For network share we would need more information about the network settings.
For the Shared folder you simply go to the shared folders of the guest settings and select what it is you want to share.
Then you start the guest and open a command window and type the following:

Code: Select all

net use z: \\vboxsvr\<sharename> -p
Replacing <sharename> with the name you gave the share in the settings. This will map the share and it will show up in the file manager as a mapped drive.
Sasquatch wrote:Keep in mind that names for the Shared Folders in VB cannot contain spaces, these are officially illegal characters in network paths. VB won't let you continue if the name contains a space.
Thanks for those two replies. After i removed the spaces in my folder, and ran that command all is working perfectly. Thanks!
Sands
Posts: 14
Joined: 24. Jul 2009, 11:10
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Win7 Build 7232 64bit Asus P5Q3

Re: XP host to XP guest folder sharing

Post by Sands »

Sasquatch wrote:Mpack, it's in the manual to use that command. Also, with Windows 7, you can't browse the My Network Places to find the shared folders, but issuing this command will make it work. You can also just enter the UNC path in the address bar (\\vboxsrv\<sharename>) to access the share. And even though you can browse it, not every user sees what we talk about, and after they run the above command, they can see it like any other network mapping in Explorer. We could use something else as answer, like opening Explorer, going to Tools > Map Network Drive and enter the UNC path there, but this involves less steps.

Also, with Windows 7, you can't browse the My Network Places to find the shared folders, but issuing this command will make it work.


Thanks I have been pulling my hair out trying to get shared VB Folder to work on Win7!

So my only option is use the command line each time.

Before launching the OS in Virtual Box: In settings, I added a folder named shared that I made on my Host.

Then I Launched the Virtual Box Guest OS then used devices/install guest additions.

The I launched Fire Fox Browser In my guest OS and in the browser address bar i used //vboxsvr/shared

Bang There it is!

I can drag an drop the files as needed!

I never could get the command line method to work.

Thanks Sasquatch!
Post Reply