From: Ralph Ronnquist Date: Wed, 18 Sep 2024 01:20:45 +0000 (+1000) Subject: Modified QEMU arguments for network interface. X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=4938674499116c2a344281d486d1359932d9c806;p=rrq%2Fbespoke-installer.git Modified QEMU arguments for network interface. --- diff --git a/vm.sh b/vm.sh index e06e863..5bc827a 100755 --- a/vm.sh +++ b/vm.sh @@ -2,13 +2,22 @@ IMG=disk.raw -QEMU=qemu-system-aarch64 -CPU=arm64 - -if [ "$1" = armhf ] ; then - CPU=cortex-a15 - QEMU=qemu-system-arm -fi +case "${1:=arm64}" in + arm64) + QEMU=qemu-system-aarch64 + CPU=cortex-a53 + NET="virtio-net-pci" + ;; + armhf) + QEMU=qemu-system-arm + CPU=cortex-a15 + NET="e1000e" + ;; + *) + echo "unknown $1" >&2 + exit 1 + ;; +esac ARGS=( -M virt -cpu $CPU -m 4G @@ -23,7 +32,7 @@ ARGS=( -device virtio-blk-pci,drive=hd -drive if=none,id=hd,file=$IMG,format=raw # network setup - -device virtio-net-pci,netdev=unet + -device $NET,netdev=unet -netdev vde,sock=/run/vde.ctl,id=unet )