diff options
author | Helmut Grohne <helmut@subdivi.de> | 2023-01-21 10:57:51 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2023-01-21 10:57:51 +0100 |
commit | 79a50341661c42da0c4d62ba533db893357678be (patch) | |
tree | 6241f6f57684bb00b16f426dea77e1b403271465 | |
parent | f5d2d49f52d02207c0a724342a635117930aecd2 (diff) | |
download | debvm-79a50341661c42da0c4d62ba533db893357678be.tar.gz |
debvm-run: also avoid pci networking for m68k
-rwxr-xr-x | bin/debvm-run | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/debvm-run b/bin/debvm-run index 4c8bb5a..6a22a49 100755 --- a/bin/debvm-run +++ b/bin/debvm-run @@ -213,7 +213,6 @@ set -- \ -kernel "$KERNELTMP" \ -initrd "$INITRDTMP" \ -drive "media=disk,format=raw,discard=unmap,file=$IMAGE,if=virtio,cache=unsafe" \ - -device "virtio-net-pci,netdev=net0" \ -object rng-random,filename=/dev/urandom,id=rng0 \ "$@" @@ -221,6 +220,7 @@ QEMU="qemu-system-$VMARCH" CPU= MACHINE= MAX_SMP= +NIC_DEV=virtio-net-pci,netdev=net0 RNG_DEV=virtio-rng-pci,rng=rng0 case "$VMARCH" in @@ -244,6 +244,7 @@ case "$VMARCH" in ;; m68k) MACHINE="type=virt" + NIC_DEV=virtio-net-device,netdev=net0 RNG_DEV=virtio-rng-device,rng=rng0 ;; mips64el) @@ -328,6 +329,7 @@ fi set -- \ -append "$KERNEL_CMDLINE" \ -netdev "$NETDEV" \ + -device "$NIC_DEV" \ "$@" set -ex |