Symlinks in shared folder of virtual box with Windows 10 host

强颜欢笑 提交于 2020-01-14 13:59:08

问题


I am running a linux (ubuntu) system within a virtual box container. I used symlinks in the shared directory, which needed some extra work as described here: https://www.virtualbox.org/ticket/10085

This worked very well for my requirements running a Windows 8 host. Now, I switched to Windows 10 and the symlinks do not work any more. I am still able to create symlinks, but the correct path cannot be resolved.

Using readlink, I can see that the created symlink is wrong. If I create a symlink with

ln -s /media/data/jquery.js /media/data/test.js 

the returned value with readlink is

\media\data\jquery.js

Obviously, the directory separator is incorrect. If I create a symlink outside the shared directory (to the same file on the shared directory), the path is correct.

Does anyone have an idea how to fix the incorrect directory separator?

Mathias

来源:https://stackoverflow.com/questions/31830915/symlinks-in-shared-folder-of-virtual-box-with-windows-10-host

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!