How to Solve Vagrant Spikes CPU to 100% on OSX

Does this look familiar to you…? Then you’ve come to the right place.

Since one year I’ve been developing now using Vagrant and about every day I had to reload the freakin virtual machine because I computer suddenly started getting hot… I’ve been looking for answers but couldn’t find any, until I gave it another shot today. I’ve found a solution for my problem in this thread. So big shoutout for pgrunwald… Anyways, the problem seems to appear when you’re doing port forwarding.

That was my setup when I had the problem:Screen Shot 2016-05-21 at 21.18.05

That’s my setup now:

config.vm.network "private_network", ip: "192.168.3.4"

And THAT’S IT. Now you just have to vagrant reload --provision and you’re Mac won’t go crazy no longer.

Leave a Reply

Your email address will not be published.