6

I have a Windows host and a Linux guest. I can easily use the "shared folders" functionality to mount a windows directory inside the guest using the Virtualbox Guest Addons.

I would like to, instead, mount a guest directory inside Windows.

Does Virtualbox give us anything here? Or is the only possibility to install Samba on the guest and mount it as usual (i.e., without Virtualbox in the mix)?

AnoE
  • 933

2 Answers2

1

It turns out that Virtualbox has no such provisions, and thinking about it, it would not make sense to expect this feature. Virtualbox is the host, it is living on the host, it has no idea about the guest. I could not elicit access from the guest in any way.

Possible they could, in the future, add a new guest helper (like the display/drag&drop etc. helpers) that could do that. But this is a) obviously not in, right now, and b) would be incredibly more complex, so it would be very unlikely to do so.

kenorb
  • 26,615
AnoE
  • 933
1

Inside your Linux guest you can "export" a folder, then mount it in the Windows host. For this to work, the guest and host would need to see each other, i.e. they would need to be on the same IP network, or a route would need to exist between their IT networks. If you export it as CIFS (SAMBA), it will appear in Windows with standard UNC path: \\server\share where server would be the hostname and share would be the exported folder name. If you export it as NFS, and your version of Windows has NFS for Windows available, you'll be able to access/map through UNC path.

HOWEVER there is an easier way. Mount a host directory in the guest and put the files you want to transfer in that directory. Additionally, if you have any sort of NAS or file server on your network, you could mount a folder from it on host and guest and use it as a drop box.