virtualization – Operating Vagrant on Apple Silicon (M2) with v.gui=false


I’ve just lately upgraded from an Intel MBP to an M2 MBP. So I needed to replace my Vagrant. Studying round led me to first obtain the newest VMware Fusion Tech Preview, then replace my Vagrant set up. I selected to uninstall current Vagrant stuff, & begin from scratch…

brew set up --cask vagrant
brew set up --cask vagrant-vmware-utility
brew set up --cask vagrant-manager
vagrant plugin set up vagrant-share
vagrant plugin set up vagrant-vmware-desktop

I began with Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

# Variables
MEMORY              = 4096
CPUS                = 1
VM_IP               = "192.168.98.99"

Vagrant.configure("2") do |config|

    config.vm.field = "bento/ubuntu-20.04-arm64"

    config.vm.supplier "vmware_desktop" do |v|
        v.reminiscence = MEMORY
        v.cpus   = CPUS
    finish

    config.vm.community "private_network", ip: VM_IP

finish

I run vagrant up & get…

An error occurred whereas executing `vmrun`, a utility for controlling
VMware machines.

Trying to find solutions to that, I discovered this & this, each saying I needed to set v.gui = true in my Vagrantfile. That works, however it requires having VMware Fusion operating, which opens a window that should stay open for the lifetime of the VM session.

Is there any method to run Vagrant with out having a VMware Fusion GUI (with v.gui = false)?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles