by xero updated 10.29.24
This file contains 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
# For each result of find call our script to run on the filename | |
$ find . -name "*.md" -print0 | xargs -0 -I file ./prepend.sh file |
Guide: Run FreeBSD 13.1-RELEASE for ARM64 in QEMU on Apple Silicon Mac (MacBook Pro M1, etc) with HVF acceleration (Hypervisor.framework)
This guide was adapted from https://gist.github.com/niw/e4313b9c14e968764a52375da41b4278#running-ubuntu-server-for-arm64
- Install Xcode from App Store or install Command Line Tools on your Mac running on Apple Silicon.
This file contains 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/sh | |
# download from https://dl-cdn.alpinelinux.org/alpine/edge/releases/x86_64/netboot/ | |
qemu-system-x86_64 \ | |
-m 512 \ | |
-kernel ~/Downloads/alpine-edge-x86_64/vmlinuz-lts \ | |
-initrd ~/Downloads/alpine-edge-x86_64/initramfs-lts \ | |
-append "console=ttyS0 ip=dhcp alpine_repo=http://dl-cdn.alpinelinux.org/alpine/edge/main/" \ | |
-nographic |
This procedure was tested on FreeBSD-CURRENT build from d8819d88af52.
- Enable linuxulator and install linux userland:
# sysrc linux_enable="YES" # service linux start # pkg install linux_base-c7