Skip to content

Instantly share code, notes, and snippets.

@suletm
suletm / gist:0d4b0ec423533ef4cca3ddce11d30e25
Created December 15, 2021 03:47
Running ubuntu x86 on apple M1
brew install qemu
qemu-system-x86_64 \
-m 2048 \
-M pc-q35-2.10 \
-drive file=/opt/homebrew/Cellar/qemu/6.1.0_1/share/qemu/edk2-x86_64-code.fd,if=none,readonly=on \
-drive if=virtio,file=disk.raw,format=raw,id=hd0 \
-cdrom /path/to/ubuntu-20.04.3-live-server-amd64.iso \
-device usb-ehci -device usb-kbd -device usb-mouse -usb \
-monitor stdio