Darren Beale Web developer, retailer & photographer

Fix Virtualbox Symlinks in Guest share on Windows host

F

Note to self

In my [[Windows 10 dev environment]] I have a shared folder between the host machine (my laptop) and the guest VM.

The ability to create symlinks within the guest is disabled by default in Virtualbox because security.

These steps work to fix that.

Add this to Vagrantfile

`config.vm.provider "virtualbox" do |v|
      v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
end

Set gitbash to run as admin

C:\Program Files\Git\git-bash.exe right-click and set it to run as administrator (compatibility tab)


This mostly works, we can now symlink when in the VM but I have still come across issues when running npm install. These are unresolved, but here are a few other things to try:

Process monitor is a nice find!

See How to exclude files and folders from Windows Defender Antivirus scans

By bealers
Darren Beale Web developer, retailer & photographer