Created
May 31, 2020 23:59
-
-
Save dfyz/e340e0bf3686d59a9e433fe021520ad0 to your computer and use it in GitHub Desktop.
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 | |
# 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