Skip to content

Instantly share code, notes, and snippets.

@samueldr
Created May 4, 2020 22:35
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 samueldr/ebc9795a13723a5e6ad8b95e6584e26c to your computer and use it in GitHub Desktop.
Save samueldr/ebc9795a13723a5e6ad8b95e6584e26c to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
QEMU="qemu-system-i386"
OVMF=$(nix-build --no-out-link --option system "i686-linux" -A OVMF.fd)
PS4="$ "
set -x
exec \
"$QEMU" \
--enable-kvm \
-bios "$OVMF"/FV/OVMF.fd \
-device e1000,netdev=net0 \
-netdev user,id=net0 \
"$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment