Skip to content

Instantly share code, notes, and snippets.

@brandonros
Last active November 28, 2022 02:59
Show Gist options
  • Save brandonros/61dd2687e2065a1fa075c38e7b902bb2 to your computer and use it in GitHub Desktop.
Save brandonros/61dd2687e2065a1fa075c38e7b902bb2 to your computer and use it in GitHub Desktop.
QEMU + Macpine = Debian container on Apple M1 arm64/aarch64
#!/bin/bash
# install qemu
brew update --auto-update
brew install qemu
# install macpine
wget https://github.com/beringresearch/macpine/releases/download/v.06/alpine_darwin_arm64
mv alpine_darwin_arm64 alpine
chmod +x alpine
sudo mv alpine /usr/local/bin/
# use alpine to launch debian VM
alpine launch --arch x86_64 --image debian_11.3.0 --name debian --port 8443 --ssh 2222 --mount $(pwd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment