sdme requires Linux with systemd. On macOS, use lima-vm to run a Linux VM.
- Homebrew
- lima-vm:
brew install lima
Create and start a VM with any systemd-based distro:
limactl create --name=dev template:ubuntu
limactl start dev
limactl shell devOther distro templates are available via limactl create (interactive).
Inside the VM:
curl -fsSL https://fiorix.github.io/sdme/install.sh | sudo shAll sdme commands run inside the VM from this point.
- Apple Silicon (M1/M2/M3/M4): The VM runs Linux on aarch64.
Container images and binaries must support
arm64/aarch64. - File sharing: Lima mounts macOS directories into the VM by
default. Bind mounts (
-b) pointing to lima-shared paths work, but file operations may be slower than native. - Networking: Lima forwards ports from the VM to macOS. Services
running in host-network containers are accessible on
localhostfrom the Mac. Private-network containers require additional port forwarding configuration in the lima VM config.