V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
techmoe
V2EX  ›  问与答

VMWare 该如何配置才能正确的在 Ubuntu 虚拟机里正常的使用符号连接( symlink)

  •  
  •   techmoe · Aug 19, 2017 · 2146 views
    This topic created in 3179 days ago, the information mentioned may be changed or developed.

    共享目录设置了整个 D 盘,在 host 中是 NTFS 格式。
    目前我已经做了如下尝试:

    1. 安装好 VMWare Tools
    2. 在虚拟机的配置文件( vmx 文件)中添加sharedFolder0.followSymlinks = "true"这一字段
    3. 使用管理员身份运行 VMWare

    但是依然不行,提示权限不足。
    后来我的尝试:

    1. umount 掉/mnt/hgfs/,然后手动用 vmhgfs-fuse 重新手动 mount,uid 和 gid 都给了我当前登陆的用户

    依然没有效果 图: http://imgur.com/KsQSZ9z

    有人说 VMWare 没有办法做到共享目录内使用 symlink,但是官方知识库里却有对 followsymlink 的说明:
    https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2045026

    不知道有没有人研究过相同的问题?我已经折腾好几天没有头绪了。。
    如果不能用 symlink 的话意味着以共享文件夹为工作目录时一些东西会工作得非常异常,现在我已经发现 npm 在共享目录里跑 install 时最后有时会报错了。。
    求指教

    1 replies    2017-08-19 23:10:50 +08:00
    Judoon
        1
    Judoon  
       Aug 19, 2017 via iPhone
    这该是文件系统的原因,ntfs
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   829 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 20:19 · PVG 04:19 · LAX 13:19 · JFK 16:19
    ♥ Do have faith in what you're doing.