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"
|
||||
done
|
||||
|
||||
qemuNetDevice='virtio-net-pci'
|
||||
case "$qemuArch" in
|
||||
arm) qemuNetDevice='virtio-net-device' ;;
|
||||
esac
|
||||
|
||||
qemuArgs+=(
|
||||
-netdev "$netArg,id=net"
|
||||
-device virtio-net-pci,netdev=net
|
||||
-device "$qemuNetDevice,netdev=net"
|
||||
-vnc ':0'
|
||||
)
|
||||
if [ -z "${QEMU_NO_SERIAL:-}" ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user