-
-
Notifications
You must be signed in to change notification settings - Fork 985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vagrant instructions don't work for Apple silicon M1/M2 machines #1097
Comments
One potential solution could be to have A second solution might be possible if Vagrant were to provide an option to force a box to work with another provider. I am not aware of a way to do this. But this issue is for Mastodon switching to a box that does work with qemu provider and therefore, Apple M1 machines without new features like the above two. |
I discovered that VirtualBox now has a Developer Preview build for Apple M1/M2 hosts. However, this doesn't actually work for me as the machine created by vagrant with ubuntu/bionic64 box gets aborted. Even if that were to be fixed, the performance will likely be terrible. These comments are explanatory:
And,
So, we do need a solution for running the Mastodon vagrant box on Apple M1/M2 machines. |
Docs in question: https://docs.joinmastodon.org/dev/setup/
Vagrant needs a "provider" for managing the virtual machine with commands like
vagrant up
andvagrant ssh
. The Mastodon docs make no mention of which provider to use with Vagrant. Apple M1/M2 machines do not support VirtualBox or VMWare.There's a virtualization app for Apple M1 called UTM that uses QEMU under the hood. I found an unofficial QEMU provider for Vagrant and installed it with
brew install qemu
andvagrant plugin install vagrant-qemu
.However, Mastodon's Vagrantfile requires the box image "ubuntu/bionic64" which only supports virtualbox (
libvert
) as the provider. Which is why this is my experience with using Mastodon's Vagrant setup on Apple M1 machine:This is even after I added the following section in the Vagrantfile as suggested by vagrant-qemu README:
The text was updated successfully, but these errors were encountered: