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

As others have pointed out, Virtualbox doesn't work on ARM (M1).

A few months ago I switched to a new setup on my M1 Max: running a Ubuntu VM in UTM (https://mac.getutm.app/), and installing Docker there.

I use Mutagen (https://mutagen.io/) for syncing files between macOS and the VM, which works really well.

There is a 10x-20x speed improvement running a large PHP (Drupal) project through the VM than Docker for Mac.



One can use Vagrant and VMware (instead of Virtualbox) on ARM M1. VMware fusion is free and Hashicorp has released the VMware vagrant plugin for free as well.


oh wow, i had no idea!

do you know by any chance if vmware fusion has support for pxe boot?


Any additional guidance or resources you can point to for setup with UTM and Mutagen? Lando on macOS with Docker Desktop is driving me insane...


It was pretty straightforward, following UTM's setup guide for Ubuntu, Docker's setup guide, and Mutagen's:

- https://mac.getutm.app/gallery/ubuntu-20-04 - https://docs.docker.com/engine/install/ubuntu/ - https://mutagen.io/documentation/introduction/installation

I create my Mutagen sync with a command like:

   mutagen sync create --name=mysite ~/Sites/mysite ubuntu@192.168.64.2:~/mysite --ignore=node_modules,vendor --ignore-vcs --default-owner-alpha=tallytarik --default-group-alpha=staff
As well as the `--default-owner-` switches, I had some file permission issues on the Docker side. I ended up using `setfacl` to enforce really permissive permissions on `~/mysite` on the VM side, otherwise some Docker containers would complain. It turns out Docker for Mac fakes some file permissions, which is why it wasn't a problem before.

Other than that, it mostly just worked! Feel free to get in touch if you have more specific questions.




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

Search: