2
votes

I've installed and setup Laravel Homestead using Vagrant and Virtualbox successfully on my Mac. However, it takes around 20 seconds to ssh in (using vagrant ssh and ssh [email protected]...) and even longer to issue commands (30s - 1m!)

The peculiar problem is that as soon as I disable my Mac's internet connection, the SSH becomes lightening quick and I can login and issue commands in milliseconds.

Any help would be greatly appreciated

1

1 Answers

0
votes

This sounds like VirtualBox issue rather Vagran's fault. NAT network (port forwarding in Vagrant) in VirtualBox can cause lots of weird issues. I suggest you to:

  1. Try update VirtualBox to latest version to see if this helped

  2. If problem remains, configure Vagrant to user private_network and ssh via machine's IP and not the localhost (port forwarding).