From 7e7ca149c75f6524a1afadba4a123d3333a5cdb5 Mon Sep 17 00:00:00 2001 From: blazblue547-afk Date: Wed, 17 Jun 2026 11:17:24 -0400 Subject: [PATCH] feat(qemu): add image networking --- scripts/run-qemu.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/run-qemu.sh b/scripts/run-qemu.sh index 333ecbb..d8c7a6d 100755 --- a/scripts/run-qemu.sh +++ b/scripts/run-qemu.sh @@ -63,6 +63,8 @@ case "$MODE" in -boot order=c \ -bios "$FIRMWARE" \ -drive file="$IMAGE_PATH",format=raw,if=virtio \ + -netdev user,id=net0 \ + -device virtio-net-pci,netdev=net0 \ -device virtio-rng-pci ;; pflash:*) @@ -81,6 +83,8 @@ case "$MODE" in -drive if=pflash,format=raw,readonly=on,file="$CODE_FD" \ -drive if=pflash,format=raw,file="$VARS_COPY" \ -drive file="$IMAGE_PATH",format=raw,if=virtio \ + -netdev user,id=net0 \ + -device virtio-net-pci,netdev=net0 \ -device virtio-rng-pci rm -f "$VARS_COPY" ;;