creating symbolic link: Protocol error

后端 未结 7 1026
一整个雨季
一整个雨季 2021-02-01 02:51

I have created linux (Centos) on my virtual box. When I ssh to it and I try to create symbolic link (on my shared folder with full access):

ln -s path/folder/exa         


        
相关标签:
7条回答
  • 2021-02-01 03:28

    By default VirtualBox VM disables creation of symbolic links.

    Oracle VM VirtualBox shared folders support symbolic links under the following conditions:

    • The host operating system must support symlinks. For example, a Mac OS X, Linux, or Oracle Solaris host is required.
    • Currently only Linux and Oracle Solaris Guest Additions support symlinks.
    • For security reasons the guest OS is not allowed to create symlinks by default.

    To enable creation of symlinks for a shared folder you should do:

    1. Run this command on your host (where {VM_name} is the name of VM and {share_folder_name} is the name of shared directory):
    $ VBoxManage setextradata "{VM_name}" VBoxInternal2/SharedFoldersEnableSymlinksCreate/{share_folder_name} 1
    

    In my case it looks like:

    $ VBoxManage setextradata "ubuntu16" VBoxInternal2/SharedFoldersEnableSymlinksCreate/shared 1
    
    1. Reboot the VM.

    More information you can find here:

    https://docs.oracle.com/cd/E97728_01/E97727/html/sharedfolders.html https://www.virtualbox.org/ticket/18572?cversion=0&cnum_hist=2

    0 讨论(0)
提交回复
热议问题