Can't access shared folder with Virtual Box

8

I have Windows 10 and Virtual Box 5.1.4. I need to create a shared folder which would be shared between Windows and the MSDOS used in Virtual Box. So I used the shared folder option to setup a folder on Windows. The instructions said to then type "net use x \vboxsvr\share" but that gives an error:

C:\Users\eddyq>net use e \\vboxsvr\share
System error 67 has occurred.
The network name cannot be found.

Assuming the "vboxsvr" is to be substituted with the actual host name, I could not find an option in Virtual Box that allows me to type the host name.

So I checked the server list on Windows using Map Network Drive and the server called vboxsf is not there. Searching this forum, I found someone that says there is a group called vboxsf but it is not clear how to use that.

user215779

Posted 2016-08-23T13:33:30.890

Reputation: 330

Answers

6

Install the VirtualBox Guest Additions Plug in.

From Console File → Device → Insert Guess Additions Image CD.

Install and reboot.

Overlord

Posted 2016-08-23T13:33:30.890

Reputation: 61

1Nice answer, but it doesn't work – Devolus – 2018-04-24T08:22:52.830

1Worked for me, although I did install them before. – code2be – 2018-07-24T11:59:20.653

3

Well, I had the same issue, mounting my host Documents and Pictures folder. Things I did (I cannot regress, if one of them is superficious)

  • Install matching Guest Additions again (I did so earlier in setup, well...)

  • Hint 1: The .iso can directly be downloaded here (precisely match your virtual box version, as shown in the about menu)

  • Hint 2: If you are to lazy to re-add a CD Drive with all the rebooting, you can unpack that iso in your (Ubuntu) Host for example (remove anything x86/OS2/sun... if you like), and drag that folder onto your guest desktop. (Kinda proof that I had pre-existing guest additions, if I think about it. Otherwise, dragging would not be possible). And install the VBoxWindowsAdditions-amd64.exe there.

  • Also another nasty problem VirtualBox problem of mine instantly went away. Not related, but kinda proof that some features of GuestAddition can somehow get swept away, perhaps by further Win10 Updates or such.

  • I turned off the windows firewall, suddenly I could see my shared drives! (I then turned it on again. Yes, I could still see them. Yes, the old joke...). Since everything is hard to find in Win10 settings, here's what I mean: enter image description here

Btw: My checkbox on the shared folders look like so: enter image description here

Btw: Before I had named them Documents and Pictures, perhaps that was too generic and caused trouble, perhaps not.

Well, yeah, reboot, and things work... I could see, work with and permanently map them...

Frank Nocke

Posted 2016-08-23T13:33:30.890

Reputation: 597

1Indeed the tip that Windows Update might cause some feature to not work and require re installation of VirtualBox Guest Additions. – Royi – 2019-02-03T19:49:50.063

1

you can find the host name by going to:

WindowsKey + Type "System" + Followed by Enter

That should bring up the "System properties". Your host name is your computer name. Once you have your host name then you can do exactly as you did

\\hostname\whateverfolder\

Alternately, you could do it by IP address

WindowsKey + type "cmd" + Enter

That brings up the cmd prompt

type ipconfig

A list of network adapters and their IP will appear. The ip you are looking for likely starts with 192.168.x.x

\\192.168.x.x\whaterverfolder

Don't forget, you must query ipconfig and/or system properties from the GUEST OS, not the HOST. Also remember the type of Network connection you set in VirtualBox(NAT, Bridged, and so on) for that specific Guest OS will impact the visibility of your Guest OS on your network.

blaze_125

Posted 2016-08-23T13:33:30.890

Reputation: 141

Thanks, the "net use" works now but in the MSDOS window of Virtual Box I don't see the mapping. Have you used Virtual Box to do this? – user215779 – 2016-08-23T16:33:33.650

The guest is MSDOS and that does not have ipconfig. This works perfectly with vmware and I was told that Virtual Box has the same features. – user215779 – 2016-08-23T16:35:08.833

I do use Virtual Box every day. So lets clarify your setup first and what you want to achieve, because although it's not impossible, I find it improbable that you'd be running a MSDOS Guest OS. If your guest OS is Windows, that Windows Guest will have its own "cmd prompt" (aka ~ms dos for some). Even if this sounds like a redundant question, could you confirm whether you're running a MSDOS Guest, or if you are running a Windows Guest in which you are trying to use "cmd prompt" to run the "net use" command? Where is the folder you want to share? Does it live on the guest or the host? – blaze_125 – 2016-08-23T17:12:28.740

Furthermore, since the "net use" works now, what happens if you cd e: in cmd prompt? Does that take you to your shared folder? I'm pointing you to the E drive because this net use e \\vboxsvr\share would assign \\vboxsvr\share to e. Net use Documentation

– blaze_125 – 2016-08-23T17:15:24.850

Virtual Box is a virtualization system. It would not use MSDOS to access the drives. This is because it emulates the drives. Think of it this way, if you have an external disk then you connect it and MSDOS can see it. So under virtualization the system doing the virtualization will simulate a drive. Under Vmware (another virtual system) it is the same way. MSDOS does not know where the "drive" came from ... it is just there. The same is true with virtualized floppies, CD roms, optical readers, etc.

This is how you use a foreign system on most systems today (Windows, Linux, NetBSD, etc). – user215779 – 2016-08-23T18:29:57.490

Sorry, a comment is limited. I gave the configuration above but here it is again: Under Shared Folders, I have specified a share called W_DRIVE and it is shared as w:. – user215779 – 2016-08-23T18:36:46.170

If you setup your "share" from within the VirtualBox interface, then your share is named W_DRIVE, and it shares your Host path "w:". That's fine. So you have VirtualBox exposing a "shared folder" to your Guest OS. Now lets get to the bottom of what Guest OS you are running. If you are indeed running MS DOS, I'm afraid I can't help you. Last time I booted into DOS was well before puberty. But like I said previously, I highly doubt you're actually running a MS DOS Guest. – blaze_125 – 2016-08-23T18:57:21.140

On my side of the fence, my host is Windows 10, and my Guests are mostly all Windows Guest OS. I setup the shared folder the same way you did yours, from within the VirtualBox interface. When I boot the Guest OS, the shared drive simply appears in "My Computer" as a network share. But yeah, I'm running mostly Windows guests, not MS DOS guests. – blaze_125 – 2016-08-23T19:01:55.007

I think the problem is that a driver is required on the guest and Oracle has not written a driver for MSDOS. – user215779 – 2016-08-24T16:20:41.787