• virtualbox共享文件夹无法创建软链接的解决方法


    ################################
    #欢迎交流讨论,如有转载,请注明来源
    http://www.cnblogs.com/elta/
    ################################

    Fixing your virtualbox shared folder symlink error

    Operations such as installing node.js or python virtualenv to a virtualbox writable shared folder can fail if you try to do this as a linux (ubuntu) virtualbox guest running Windows 7 host.

    The cause is symlink permission.

    Typical error:

    ln -fs out/Release/node node
    ln: failed to create symbolic link `node': Read-only file system
    It can also be a “Protocol error”.

    This happens even if your shared folder is writable.

    Fix: Enable symlinks feature in VirtualBox
    Run at cmd prompt:

    VBoxManage setextradata YOURVMNAME VBoxInternal2/SharedFoldersEnableSymlinksCreate/YOURSHAREFOLDERNAME 1

    Verify by running:

    VBoxManage getextradata YOURVMNAME enumerate

    If your user belongs to Administrators group then start VirtualBox with “Run as Administrator”!

    If user is not in Administrators group
    By default Windows 7 security policy does not allow creating symlinks as it’s a potential security threat. Run “secpol.msc” and navigate to “Local Policies-User Rights Assignments” and add your user to “Create symbolic links”. I didn’t try that but could be that after that virtualbox could be run as a regular user.

    Speculation: The controversy is that users with admin group seem to be unable to create symlinks even after granting the permission unless they use “run as admin”. Maybe symlink privilege gets filtered out for regular runs when user belongs to Administrators. Any ideas?

    Let me know if it helps or if there’s an easier way!

  • 相关阅读:
    html5的跨域处理
    file表单提交异步模拟
    Bigpipe :bigpipe的了解之2
    javascript获取指定父元素
    javascript淡入淡出的效果轮换转播
    IE下,动态创建的iframe在异步提交时会跳转的问题的解决
    javascriptIE不支持table的innerHTML解决方案
    javascript删除元素所引起的 对于NodeList的理解
    javascript淡入淡出的效果轮换转播后续
    数据加载的bigpipe
  • 原文地址:https://www.cnblogs.com/kuikuitage/p/14185850.html
Copyright © 2020-2023  润新知