Skip to content

Commit 3951c26

Browse files
committed
fix: Use virtio-net-pci everywhere
Works for NAT and bridged networking.
1 parent 19c0ad4 commit 3951c26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

quickemu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ function configure_os_quirks() {
752752

753753
case ${guest_os} in
754754
windows-server) NET_DEVICE="e1000";;
755-
*bsd|linux*|windows) NET_DEVICE="virtio-net";;
755+
*bsd|linux*|windows) NET_DEVICE="virtio-net-pci";;
756756
freedos) sound_card="sb16";;
757757
*solaris) usb_controller="xhci"
758758
sound_card="ac97";;
@@ -769,7 +769,7 @@ function configure_os_quirks() {
769769
big-sur|monterey|ventura|sonoma|sequoia)
770770
BALLOON="-device virtio-balloon"
771771
MAC_DISK_DEV="virtio-blk-pci"
772-
NET_DEVICE="virtio-net"
772+
NET_DEVICE="virtio-net-pci"
773773
USB_HOST_PASSTHROUGH_CONTROLLER="nec-usb-xhci"
774774
GUEST_TWEAKS+=" -global nec-usb-xhci.msi=off"
775775
sound_card="${sound_card:-usb-audio}"
@@ -1155,7 +1155,7 @@ function vm_boot() {
11551155
MAC_BOOTLOADER=""
11561156
MAC_MISSING=""
11571157
MAC_DISK_DEV="${MAC_DISK_DEV:-ide-hd,bus=ahci.2}"
1158-
NET_DEVICE="${NET_DEVICE:-virtio-net}"
1158+
NET_DEVICE="${NET_DEVICE:-virtio-net-pci}"
11591159
SOUND=""
11601160
SPICE=""
11611161
SMM="${SMM:-off}"

0 commit comments

Comments
 (0)