Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Aug 2022 18:06:06 +0200
From:      Andrea Venturoli <ml@netfence.it>
To:        vbox@FreeBSD.org
Cc:        freebsd-emulation@freebsd.org
Subject:   VBox + bridged LAN: interface stops working when VM stops
Message-ID:  <84a831df-ade2-008d-95a6-2dfd455beb7c@netfence.it>

next in thread | raw e-mail | index | archive | help

Hello.

I'm a long time, but occasional VirtualBox user.
VBox has always worked fine for me, but now it's "featuring" a problem I 
never experienced before.
It's possible I upgraded it, upgraded base OS, changed hardware in the 
meantime... as I said my use is saltuary, so I really can't remember.



In any case, VMs with bridged network start fine and work properly.
However, when I shutdown/kill/stop/pause/snapshot/etc... a VM, the 
network hangs as a whole (even for the host).
I have to:
> # ifconfig re0 down
> # ifconfig re0 up
> # dhclient re0
in order to make it start again (before restarting any deamon that might 
have died meanwhile).

I tried seeing if this is a known issue, but could fine nothing.



System info:
> # uname -a
> FreeBSD alamar.ventu 12.3-RELEASE-p5 FreeBSD 12.3-RELEASE-p5 releng/netfence_12.3-n234228-549efbbd2f6 AVEL  amd64
> # pkg info | grep -iE "^(virtual|realtek)"
> realtek-re-kmod-196.04         Kernel driver for Realtek PCIe Ethernet Controllers
> virtualbox-ose-6.1.36          General-purpose full virtualizer for x86 hardware
> virtualbox-ose-kmod-6.1.36     VirtualBox kernel module for FreeBSD
> # ifconfig re0
> re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
> 	options=2018<VLAN_MTU,VLAN_HWTAGGING,WOL_MAGIC>
> 	ether d4:3d:7e:b4:74:15
> 	inet 10.1.2.18 netmask 0xffffff00 broadcast 10.1.2.255
> 	media: Ethernet autoselect (1000baseT <full-duplex>)
> 	status: active
>  # kldstat
> Id Refs Address                Size Name
>  1   68 0xffffffff80200000   f256c8 kernel
>  2    1 0xffffffff81127000     8300 cuse.ko
>  3    1 0xffffffff81130000   11d288 if_re.ko
>  4    1 0xffffffff8124e000   43e7d8 zfs.ko
>  5    2 0xffffffff8168d000     a060 opensolaris.ko
>  6    1 0xffffffff81921000    14090 geom_eli.ko
>  7    1 0xffffffff81936000     8568 linprocfs.ko
>  8    1 0xffffffff8193f000    112c0 linux_common.ko
>  9    1 0xffffffff81951000     2990 fdescfs.ko
> 10    3 0xffffffff81954000    56800 vboxdrv.ko
> 11    2 0xffffffff819ab000     2b10 vboxnetflt.ko
> 12    2 0xffffffff819ae000     d9c8 netgraph.ko
> 13    1 0xffffffff819bc000     2628 ng_ether.ko
> 14    1 0xffffffff819bf000     3e90 vboxnetadp.ko
> 15    1 0xffffffff819c3000   12c00c i915kms.ko
> 16    1 0xffffffff81af0000    75f10 drm.ko
> 17    3 0xffffffff81b66000    13f30 linuxkpi_gplv2.ko
> 18    2 0xffffffff81b7a000      6d0 debugfs.ko
> 19    1 0xffffffff81b7b000     2bd0 acpi_wmi.ko
> 20    1 0xffffffff81b7e000     25a0 wmt.ko
> 21    1 0xffffffff81b81000     8c50 evdev.ko
> 22    1 0xffffffff81b8a000      b27 mac_ntpd.ko

Packages are build in Poudriere from quarterly branch.


The only message in the logs, when this happens is:
> kernel: re0: promiscuous mode disabled



Any hint here?

  bye & Thanks
	av.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?84a831df-ade2-008d-95a6-2dfd455beb7c>