fix: Use virtio-net-pci everywhere

Works for NAT and bridged networking.
This commit is contained in:
Luke Yelavich 2025-02-11 20:06:44 +11:00
parent a341059ab3
commit a0eef4036a
1 changed files with 3 additions and 3 deletions

View File

@ -762,7 +762,7 @@ function configure_os_quirks() {
case ${guest_os} in
windows-server) NET_DEVICE="e1000";;
*bsd|linux*|windows) NET_DEVICE="virtio-net";;
*bsd|linux*|windows) NET_DEVICE="virtio-net-pci";;
freedos) sound_card="sb16"
NET_DEVICE="pcnet";;
*solaris) usb_controller="xhci"
@ -780,7 +780,7 @@ function configure_os_quirks() {
big-sur|monterey|ventura|sonoma|sequoia)
BALLOON="-device virtio-balloon"
MAC_DISK_DEV="virtio-blk-pci"
NET_DEVICE="virtio-net"
NET_DEVICE="virtio-net-pci"
USB_HOST_PASSTHROUGH_CONTROLLER="nec-usb-xhci"
GUEST_TWEAKS+=" -global nec-usb-xhci.msi=off"
sound_card="${sound_card:-usb-audio}"
@ -1166,7 +1166,7 @@ function vm_boot() {
MAC_BOOTLOADER=""
MAC_MISSING=""
MAC_DISK_DEV="${MAC_DISK_DEV:-ide-hd,bus=ahci.2}"
NET_DEVICE="${NET_DEVICE:-virtio-net}"
NET_DEVICE="${NET_DEVICE:-virtio-net-pci}"
SOUND=""
SPICE=""
SMM="${SMM:-off}"