Swap between virtio-net-pci and virtio-net-device for arm
This commit is contained in:
parent
b54c130eb1
commit
ac9e1625c0
|
@ -73,9 +73,14 @@ for port in "${qemuPorts[@]}"; do
|
||||||
netArg+=",hostfwd=udp::$port-:$port"
|
netArg+=",hostfwd=udp::$port-:$port"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
qemuNetDevice='virtio-net-pci'
|
||||||
|
case "$qemuArch" in
|
||||||
|
arm) qemuNetDevice='virtio-net-device' ;;
|
||||||
|
esac
|
||||||
|
|
||||||
qemuArgs+=(
|
qemuArgs+=(
|
||||||
-netdev "$netArg,id=net"
|
-netdev "$netArg,id=net"
|
||||||
-device virtio-net-pci,netdev=net
|
-device "$qemuNetDevice,netdev=net"
|
||||||
-vnc ':0'
|
-vnc ':0'
|
||||||
)
|
)
|
||||||
if [ -z "${QEMU_NO_SERIAL:-}" ]; then
|
if [ -z "${QEMU_NO_SERIAL:-}" ]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user