Page 1 of 1

Host shared-folder stop working and guest hangs

Posted: 8. Sep 2016, 15:51
by Lalex86
Hi,

i recently experiencied a problem with a virtual machine running Windows 7 as guest on a Windows 10 Host.

An entire drive of the host (DRIVE_D) is shared (permanent, automount) with the guest with full rights. All works fine for some hours (or maybe until there are few accesses) then the shared drive stops working and becomes inaccessible from the guest (it works normally on host side). Then the virtual machine hangs and i can only reset and restart it.

The machine was working fine until recent versions of Virtual Box. THe problem started surely from when i upgraded to 5.1 family, maybe with last updates of the 5.0.x family, too.

In the log i can see only some RESET (i do) due to VM locks.

Thanks Alessandro

Re: Host shared-folder stop working and guest hangs

Posted: 8. Sep 2016, 15:53
by Frykky
I have exactly the same problem!

Re: Host shared-folder stop working and guest hangs

Posted: 8. Sep 2016, 18:00
by mpack
I would suspect that the problem is your host OS. Windows 10 doesn't like people accessing the root folder of a local drive. I suggest that the problem would go away if you confined VM shared access to an actual folder. In fact this would be sensible for many reasons.

Re: Host shared-folder stop working and guest hangs

Posted: 8. Sep 2016, 18:14
by Lalex86
Thanks for the suggestion but it is difficult to apply....all paths would be changed...

Any other method to diagnose if it is that the problem and to say to Windows 10 to "keep calm"?

Alessandro


mpack wrote:I would suspect that the problem is your host OS. Windows 10 doesn't like people accessing the root folder of a local drive. I suggest that the problem would go away if you confined VM shared access to an actual folder. In fact this would be sensible for many reasons.

Re: Host shared-folder stop working and guest hangs

Posted: 8. Sep 2016, 18:35
by mpack
Lalex86 wrote:Thanks for the suggestion but it is difficult to apply....all paths would be changed...
I assume you must mean on the host, since of course the guest doesn't care at all about the host's path to a shared folder.

Re: Host shared-folder stop working and guest hangs

Posted: 9. Sep 2016, 07:35
by JonDo
I have the same problem, my guest is a Windows 7 64bit (Vanilla) and the host is Fedora 24 (64bit)

Re: Host shared-folder stop working and guest hangs

Posted: 9. Sep 2016, 11:01
by Lalex86
mpack wrote: I assume you must mean on the host, since of course the guest doesn't care at all about the host's path to a shared folder.
No i mean on guest side. Now i have shared the whole D:\ drive seen as guest D:\ drive so paths in guest are D:\subfolder.......

If then i share d:\subfolder....as guest D:\ i lost one level in all guest path.

Alessandro

Re: Host shared-folder stop working and guest hangs

Posted: 9. Sep 2016, 11:29
by mpack
You are mistaken. A guest can't access a host drive, so your decision inside the guest to label a network share as "D:" has nothing to do with the actual path on the host.

Re: Host shared-folder stop working and guest hangs

Posted: 11. Sep 2016, 11:53
by Lalex86
mpack wrote:You are mistaken. A guest can't access a host drive, so your decision inside the guest to label a network share as "D:" has nothing to do with the actual path on the host.
Sorry but i don't understand what your saying. Try to explain with a sample:

NOW
Host share D:\ (root) drive
Guest map the share as D:. A file in the host d:\documents\projects\file1.ext is referred in guest with the same pathname that is d:\documents\projects\file1.ext

IF I CHANGE SHARING NOT THE ROOT BUT A SUBFOLDER
Host share a subfolder of d: say D:\documents
Guest map the share as d:. Now the same file is referret on the guest as d:\projects\file\.ext......the all references on the guest are broken....

Right?
Alessandro

Re: Host shared-folder stop working and guest hangs

Posted: 11. Sep 2016, 12:03
by mpack
Lalex86 wrote:Guest map the share as D:
No it doesn't, not unless you assign a drive letter to the share from inside the guest. That drive letter could be assigned to any share, it does not need to be your host drive D.

Simple example: I have a folder on my C: drive, "C:\Shared". I share this with the VM using the network share name "SHARED". The full path of that network share is \\VBoxSVR\SHARED. Inside the guest I assign the drive letter Z to \\VBoxSVR\SHARED, so now the guest can view that folder as Z:\*.

Note that my host does not have a drive Z. Hopefully this makes it obvious to you that a drive letter mapped to a share from inside a Windows guest has nothing whatever to do with the location of the folder on the host. If not then I'm afraid I'll just have to leave you to it, since I don't think I can make it any simpler.