Skip to content

Instantly share code, notes, and snippets.

@dfyz
Created May 31, 2020 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dfyz/e340e0bf3686d59a9e433fe021520ad0 to your computer and use it in GitHub Desktop.
Save dfyz/e340e0bf3686d59a9e433fe021520ad0 to your computer and use it in GitHub Desktop.
#! /bin/sh
# Kudos to https://gmplib.org/~tege/qemu.html
sim=qemu-system-alpha
$sim -smp 4 -m 1024 \
-nographic -serial null -monitor null \
-kernel vmlinux \
-drive file=disk.img,if=virtio,media=disk,format=raw,index=0 \
-nic user,model=virtio,hostfwd=tcp::12345-:22 \
-append "root=/dev/vda" &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment