Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does vagrant + virtualbox work on the M1s?


Vagrant works great on Macs with M1, the issue is finding a compatible 'provider' (VirtualBox, VMWare etc).

For my personal projects I've been able to switch from using VirtualBox to Docker as a Vagrant provider, and it works well enough for what I need it to do.

I created a cookiecutter template for Django projects at https://github.com/tmiller02/cookiecutter-django-react-ansib... that I use for development on my M1 mac using Vagrant + Docker.


(I work for Docker on the M1 support) I'm glad it's working for you! There's a bug in the recent Docker Desktop on Apple Silicon RC build which affects some users of vagrant at the provisioning stage when the new ssh key is copied into the machine. It turned out that the permissions of `/dev/null` inside `--privileged` containers were `0660` (`rw-rw----`) instead of `0666` (`rw-rw-rw-`) In case you (or someone else) runs across this there's an open issue with a link to a build with the fix: https://github.com/docker/for-mac/issues/5527#issuecomment-8...


Hey, thanks for all your hard work, it's much appreciated!

Thanks for the tip, that's good to know. I'm running RC2 and haven't come across any issues like that, although I don't run my Docker containers in 'privileged' mode when using Vagrant.


Thank you so much for all the hard work. Very much appreciated!


Docker makes things really slow, VirtualBox much better on my Intel Mac.

Any idea if Parallels would work better on the M1?


There is some official claim somewhere in the vbox forums that vbox will never support ARM, so you might just as well consider it dead.

I'm currently using Docker for Mac but will move to UTM (a.k.a a nice UI atop qemu-hvf) when I have some time at hand.

Vagrant I only used for some other OS VMs (e.g smartos) but the base images are x64 so there's no chance it works well (if ever) on ARM either.



> vbox will never support ARM,

Is it because some kind of beef with ARM or they think it is technically impossible?


It’s strictly x86 only, and wasn’t written with other platforms in mind at all.

A port to Arm wouldn’t be really a port but a rewrite.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: