We have multiple Windows systems using Windows 7 (64bit). For web development, we want a project workspace directory that can be shared with a VM (Oracle VirtualBox). The solution included in Virtualbox is Shared Folders, which has been found to be awfully slow. So we are using a Windows share and CIFS.
We have a directory d:\share
. There, our IDEs have their workspace. We want to mount this directory inside the local VM to /mnt/share
. This is, inside the VM, the web root directory, served by an Apache instance.
Inside the virtual machine, we're using git
and modman
to manage the development projects. modman
uses a central directory .modman
, then symlinks the files inside his directory to the appropriate locations.
In our case, all these symlinks stay inside the share on Windows, they do not pass the Host/Guest barrier.
However, trying to create a symlink on the guest inside the share linking to something inside the share itself gives the error message:
ln: Symbolische Verknüpfung „b“ konnte nicht angelegt werden: Die Operation wird nicht unterstützt
(ln: symbolic link 'b' could not be created: Operation not supported)
I've found multiple sites suggesting an alteration in the smb.conf
for a samba instance offering the shares (specifically wide links = yes
and follow symlinks = yes
). However, as these shares are Windows owned, there's no smb.conf
.
I'm aware that NTFS supports symlinks (on Windows side, these are created using mklink
), and some sites seemed to suggest that it's possible to create symlinks that then look like regular files, which would be fine by me. I've tested multiple mounting options, including sfu
and nounix
, on their own and in combination. The error message remains the same.
The mounting is currently done using
//192.168.0.111/share /mnt/share cifs username=tmengelke,noperm,sec=ntlm,iocharset=utf8 0 0
Which side does need tweaking, and what do we need to tweak?