summaryrefslogtreecommitdiff
path: root/bin/debvm-run
diff options
context:
space:
mode:
Diffstat (limited to 'bin/debvm-run')
-rwxr-xr-xbin/debvm-run4
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