Skip to content

Instantly share code, notes, and snippets.

Created October 9, 2021 07:31
What would you like to do?
Installing Vagrant on Apple Silicon Macs (M1, M1X, etc)

VirtualBox only supports the x86 platform, so the default installation instructions for Vagrant does not work on Apple silicon. Thankfully Vagrant has a VMWare Provider (more on providers here), and so if I can get VMWare running on my M1 MacBook, I should be able to run Vagrant as well!

These are my notes during figuring this out.

Get the VMWare Tech Preview released in September 2021!

We are in luck, as VMWare released this just a few weeks ago.

  • See their blog entry
  • register on their site to get an account
  • download and install

Installed VMWare provider

Setup basic Ubuntu image (failed)

vagrant init hashicorp/bionic64

$ vagrant up --provider vmware_desktop
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
Copy link

fatso83 commented Nov 1, 2021

Need to update this with the info from hashicorp/vagrant-vmware-desktop#22 (comment).

In essence: someone got it working :)

Copy link

For people who are looking to how get it working: Here's the gist by sbailliez which worked for me.

Copy link

Just need to rename application from 'VMware Fusion Tech' to 'VMware' to fix mentioned issue. Other issues will (may) occur after that first fix.

Copy link

ppggff commented Mar 29, 2022

Try vagrant-qemu, a simple provider plugin using QEMU directly.

Copy link

Just saying that Canonical's Multipass works on Apple M1 with no hacks required, does basically the same stuff (but worse), and is easy to set up

Copy link

It seems like virtualbox is now supporting to run on M1 chips.

Copy link

fatso83 commented Nov 15, 2022

@h3ct0rjs Links to that? Thought I read it would only ever be X86. But maybe they went the Rosetta route?

Copy link

@fatso83 you can download the dev version from the website, in my case I recently move to a M1 chip, I use this with vagrant all the time but I’m currently checking if this works

Copy link

asmild commented Nov 17, 2022

@h3ct0rjs Does it work? I didn't manage to make vagrant-virtualbox bundle work, I get VERR_UNSUPPORTED_CPU

Copy link

shoesCodeFor commented Feb 2, 2023

@asmild it works for me on M1. VirtualBox 7 beta:, I have Vagrant 2.3.4 and no plugins, yet.

I can spin up an arm based ubuntu 22 VM, but I'm getting some other errors. VMWare has always been a little ahead of the curve on macOS VMs. I'm hoping Fusion comes out of beta soon.

Copy link

mic345 commented May 1, 2023

Just incase you stabled upon this thread, here is a quote from November 2022 by a Virtual box moderator on their forum:

VirtualBox is not and never has been an ARM hypervisor. The M1/M2 developer preview relies on an Intel code simulator module to run x86 (32bit) single core guests. Incredibly slowly. It's currently more of a toy than a serious solution to any problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment