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
Code language: PHP (php)
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:
See How to exclude files and folders from Windows Defender Antivirus scans
Leave a Reply