Support Virtualbox on Apple Silicon #2784
Replies: 4 comments
-
|
Biggest problem here is you'll need a vagrant box built for virtualbox on arm64, otherwise the best you can get is the x86 Intel box for Virtualbox. (that sentence was a bit of a mouthfull). Although right now, nothing prevents you setting the provider and box entirely using
Once you start a machine vagrant will try to stick to it, so if you created a docker based VM you would need to destroy it before you could try changing providers. |
Beta Was this translation helpful? Give feedback.
-
|
The boxes we use are from the At least with the bento box you're guaranteed it'll be 99.99% likely to work as is |
Beta Was this translation helpful? Give feedback.
-
|
For reference something like this: vm_config:
.....
provider: virtualbox
box: bento/ubuntu-20.04But, I would expect this to fail since there is no arm64 version of that box. It's possible Oracle were smart enough to make it use rosetta 2 in this situation but the performance might not be the same. This does allow you to look for a replacement box though and if you find one let me know. Here's the box we use on the box catalog: https://portal.cloud.hashicorp.com/vagrant/discover/bento/ubuntu-20.04, we use a pinned version for Parallels so it finds the arm build, but I don't believe Bento have any arm virtualbox boxes yet. A |
Beta Was this translation helpful? Give feedback.
-
I wouldn't count on x86 emulation, but it looks like some Bento boxes do have arm64 virtualbox builds, e.g. https://portal.cloud.hashicorp.com/vagrant/discover/bento/fedora-latest. It's inconsistent as their debian 11 boxes had a release 2 days ago too but there's no arm64 debian 11 box. It may be a while before that changes as the maintainer is going through a lot of bugfixing to make releases happen. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As of September 2024, Virtualbox 7.1+ now works on Apple Silicon - See the release notes.
The current
Vagrantfilechecks for ARM and uses parallels or docker instead of virtualbox. Lines 232+ for me:By the way, that comment is incorrect - "docker then parallels" is backwards.
I've tried commenting that section out, but I still get:
I can get it to run with docker on my M1 MacBookPro, but I'd like to use Virtualbox again now that it works.
What changes would I need to make to the Vagrantfile and/or other files to get this to work?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions