hashicorp/vagrant-vmware-desktop

VMware Utility driver causes issues when starting VM

Closed this issue · 3 comments

Vagrant version

Vagrant 2.3.4

Vagrant VMware plugin version

vagrant-vmware-desktop 3.0.1
vagrant-vmware-utility 1.0.21

Host operating system

Occuring on both Apple M1 Pro and Apple M2 Pro with MacOS Monteray and MacOS Ventura

Guest operating system

CentOS Stream 9

Expected behaviour

A VM is started

Actual behaviour

I am receiving the following errors on a regular basis:

An error was encountered while generating the current list of
available VMware adapters in use on this system.

Get "http://localhost:49211/api/vmnet": GET http://localhost:49211/api/vmnet giving up after 5 attempt(s): Get "http://localhost:49211/api/vmnet": dial tcp [::1]:49211: connect: connection refused

Please resolve any problems reported in the error message above and
try again.

and

Vagrant encountered an unexpected communications error with the Vagrant VMware Utility driver. Please try to run the command again. If this error persists, please contact support@hashicorp.com

Temporary fix

We have a temporary fix for this by doing the following two commands:

sudo launchctl unload -w /Library/LaunchDaemons/com.vagrant.vagrant-vmware-utility.plist
sudo launchctl load -w /Library/LaunchDaemons/com.vagrant.vagrant-vmware-utility.plist

I have seen this issue a couple of times already but seems there is not a solution yet. I am having to do this workaround on a regular basis and would be nice to see this fixed permanently.

I tried uninstalling vagrant, restarting my mac, installing vagrant, unloading and then loading and that didnt work.

@jensdeweerdt @fonsambrooskbc Can you please try installing the latest release of the utility and see if that resolves your issue?