Virtualbox shared folder to ubuntu host

Mount shared folders with VirtualBox to ubuntu host

  1. Install dependency
    apt-get update apt-get install dkms build-essential linux-headers-$(uname -r)
  2. Get Guest Addons
    sudo apt-get install virtualbox-guest-additions-iso
  3. Mount Guest Addons
    mount /dev/cdrom /mnt
  4. Install Guest Addons

cd /mnt

  1. Add user to group ‘vboxsf’ sudo usermod -a -G vboxsf username(or sudo adduser your-user vboxsf)
  2. Reboot VM

When build node.js with npm, it will fail to create symlink in VB’s shared folders on Windows 10 host.You could run from cmd on host as
VBoxManage setextradata ubuntu16 VBoxInternal2/SharedFoldersEnableSymlinksCreate/sentry 1 VBoxManage getextradata ubuntu16 enumerate And start VB as administrator.