`vagrant up` fails on macos m1 w/ wmware

step to reproduce

  • homebrew installs
brew install --cask vagrant
brew install --cask vmware-fusion
brew install --cask vagrant-vmware-utility
  • verify installation
➜  ~ vmrun -T ws list

Total running VMs: 0
➜  ~ vagrant -v

Vagrant 2.3.0
  • update .zshrc
export VAGRANT_DEFAULT_PROVIDER=vmware_desktop
  • install vagrant plugin
vagrant plugin install vagrant-vmware-desktop
vagrant init hashicorp/bionic64
vagrant box add hashicorp/bionic64
  • run vagrant up
➜  get_started vagrant up
Bringing machine 'default' up with 'vmware_desktop' provider...
==> default: Checking if box 'hashicorp/bionic64' version '1.0.282' is up to date...
==> default: Verifying vmnet devices are healthy...
==> default: Preparing network adapters...
==> default: Starting the VMware VM...
An error occurred while executing `vmrun`, a utility for controlling
VMware machines. The command and output are below:

Command: ["start", "/Volumes/ROG/vms/vagrant/get_started/.vagrant/machines/default/vmware_desktop/e56f7bd3-1086-4b81-977e-16280c302604/ubuntu-18.04-amd64.vmx", "nogui", {:notify=>[:stdout, :stderr], :timeout=>45}]

Stdout: 2022-09-20T20:44:20.821| ServiceImpl_Opener: PID 59300
Error: The operation was canceled

Stderr:
  • neofetch
➜  ~ neofetch
                    'c.          yakforward@Francescos-MacBook-Air.local
                 ,xNMM.          ---------------------------------------
               .OMMMMo           OS: macOS 12.5.1 21G83 arm64
               OMMM0,            Host: MacBookAir10,1
     .;loddo:' loolloddol;.      Kernel: 21.6.0
   cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 12 hours, 38 mins
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 79 (brew)
 XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: zsh 5.8.1
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 1440x900
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: Quartz Compositor
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.    WM Theme: Blue (Dark)
 .XMMMMMMMMMMMMMMMMMMMMMMMMMMk   Terminal: iTerm2
  .XMMMMMMMMMMMMMMMMMMMMMMMMK.   Terminal Font: Monaco 12
    kMMMMMMMMMMMMMMMMMMMMMMd     CPU: Apple M1
     ;KMMMMMMMWXXWMMMMMMMk.      GPU: Apple M1
       .cooc,.    .,coo:.        Memory: 1391MiB / 8192MiB

Hello,

Based on this issue: vagrant up: An error occurred while executing `vmrun`, a utility for controlling VMware machines. The command and output are below: · Issue #12769 · hashicorp/vagrant · GitHub
You can try that workaround, however it might still not working fully.

config.vm.provider “vmware_desktop” do |v|
        v.gui = true 
    end

Hi there,

From the thread @tkriviradev linked to above, the latest version of Vagrant resolves this issue.

Cheers!