Vagrant miscellaneous

to sync the /var/www folder with the host computer
1. edit Vagrantfile and add this line config.vm.synced_folder “www/”, “/var/www/”
2. create a folder called www where the Vagrantfile is located
3. read up on some resources if need be
https://docs.vagrantup.com/v2/synced-folders/basic_usage.html
http://stackoverflow.com/questions/19231895/how-to-share-a-folder-created-inside-vagrant

enable symlink on a shared/sync folder
1. follow these instructions http://www.ahtik.com/blog/fixing-your-virtualbox-shared-folder-symlink-error/
2. ran these command in windows cmd
– cd C:\Program Files\Oracle\VirtualBox
– VBoxManage.exe setextradata local.puphpet17 VBoxInternal2/SharedFoldersEnableSymlinksCreate/node 1
– VBoxManage getextradata local.puphpet17 enumerate
should see ‘Key: VBoxInternal2/SharedFoldersEnableSymlinksCreate/node, Value: 1’
3. Run vagrant as windows administrator

One thought on “Vagrant miscellaneous”

Comments are closed.