Title says it all. Will electrs work on a Linux VM running on a Macbook?
Yes, to run Electrs on a Macbook, you first need to make sure the Linux version for the VM is compatible with Intel or Apple Silicon processors. Once you know which processor it is, you can choose the recommended one. For example, for Intel, VirtualBox and the AMD64/x86_64 operating system are recommended, and for Silicon, UTM and the ARM64/ARCH64 operating system are recommended.
The rest of the process can be done the same as in any Linux environment, using Rust to compile Electrs.
However, you should first consider whether using a VM or installing it natively on macOS is better for your needs. Installing it natively avoids the additional complexity of setting up and maintaining a virtual machine, but I'm not sure it will work perfectly with all the dependencies.