Search code examples
vagrantvirtual-machinevagrantfilevagrant-windows

vagrant - Vagrantfile: sync multiple folders


I have tried the following to sync multiple folders from host to guest machine. But only one folder is getting synced, the later one.

config.vm.synced_folder "host/site1", "/var/www/site1" 

config.vm.synced_folder "host/site2", "/var/www/site2"

Solution

  • In newest virtualbox and vagrant versions this is improved and work without problems...