Last active
November 28, 2022 02:59
-
-
Save brandonros/61dd2687e2065a1fa075c38e7b902bb2 to your computer and use it in GitHub Desktop.
QEMU + Macpine = Debian container on Apple M1 arm64/aarch64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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