Symlinks to Shared Folders from Host System

Discussions about using Linux guests in VirtualBox.
Post Reply
Trysis
Posts: 51
Joined: 12. Apr 2013, 22:06
Primary OS: MS Windows 8
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, assorted; Windows 7; Windows 8.1

Symlinks to Shared Folders from Host System

Post by Trysis »

I use virtual hosts on my Apache servers to test websites on my local system. I would like to work on them on my Linux (& other) VM's as well, but to differentiate them I would like to call them by different names (repos, fedora_www, mac_sites, etc). Instead of replicating the repos folder several times & wasting hundreds of MB's of space I would rather hard link to the folders I will use as the shared folders (link will be shared folder, target will be some folder somewhere else on the computer). However, after some experimenting I learned that using mklink on my Windows host, when I share the folder I can not mount it, with junction points or symbolic links. It fails with the error "Protocol error". Is there a way to use mklink or some other symlinking or hardlinking?

tl;dr: Is there a way to use mklink or something else on Windows (or any system) to create a folder through symlinking that can be used as a shared folder? The link will be the shared folder, target will be somewhere else on the host.
Post Reply