Lately you might have notice development environment in vagrant to be laggy and unresponsive at times especially when you are logged-in. This all started to happen after upgrading your Os to 10.10. Here vagrant may not be the culprit as the fault lies in VirtualBox.
Many have reported network issues for VirtualBox on OS X 10.10 Yosemite, network connections (e.g. ssh sessions) to the VM keep hanging for 1-2min. When typing in ssh sometimes the shell is unresponsive for a couple of minutes.
There’s a work around for this by setting ‘natdnsproxy1‘ and ‘natdnshostresolver1‘ off in the Vagrant configuration file.
Just add the following to your Vagrant file
v.auto_nat_dns_proxy = false v.customize ["modifyvm", :id, "--natdnsproxy1", "off" ] v.customize ["modifyvm", :id, "--natdnshostresolver1", "off" ]
Just add that between ‘config.vm.provider :virtualbox do |vb|‘ and ‘end‘ and reload your vagrant by