After upgrading to 12.2-RELEASE networking is not working for my bhyve VMs.
In 11.4, I had daemonized the launching of the VMs using
Oddly in 12.2, the VMs come up and are accessible with VNC but not over the network, and I am unable to browse the web or ping anything across the network. I shut them down, commented the relevant lines in /etc/rc.local and rebooted. Then I started the VMs myself after logging into the system. When I start them myself I am able to browse the web and ping hosts on the network but not ping between the VMs, which was possible in 11.4.
I shut the VMs down again and started trying to compare what was different between 11.4 and 12.2. One thing I noticed was that in 11.4, when I
Doing some research, it looks like if_tun(4) and if_tap(4) are being merged.
I tried switching my /etc/rc.conf to reference if_tuntap(4) and rebooting, but the behavior was no different and I didn't see if_tuntap(4) when I
These are relevant lines of my /etc/rc.conf:
I have the following in /etc/sysctl.conf:
My VMs are using virtio-net with the tap device created by
Does anybody have any idea why I am not able to ping between VMs or to other hosts on the network after this upgrade? Is this a bug?
What steps can I take to further troubleshoot?
In 11.4, I had daemonized the launching of the VMs using
daemon -rft
in /etc/rc.local.Oddly in 12.2, the VMs come up and are accessible with VNC but not over the network, and I am unable to browse the web or ping anything across the network. I shut them down, commented the relevant lines in /etc/rc.local and rebooted. Then I started the VMs myself after logging into the system. When I start them myself I am able to browse the web and ping hosts on the network but not ping between the VMs, which was possible in 11.4.
I shut the VMs down again and started trying to compare what was different between 11.4 and 12.2. One thing I noticed was that in 11.4, when I
kldstat
, I would see if_tap(4) loaded. I have /etc/rc.conf loading this module. In 12.2, when I kldstat
, I do not see if_tap(4) loaded.Doing some research, it looks like if_tun(4) and if_tap(4) are being merged.
I tried switching my /etc/rc.conf to reference if_tuntap(4) and rebooting, but the behavior was no different and I didn't see if_tuntap(4) when I
kldstat
.These are relevant lines of my /etc/rc.conf:
Code:
hostname="einstein"
ifconfig_em0="inet 10.10.20.121/16"
defaultrouter="10.10.0.1"
kld_list="aesni coretemp vmm if_tap if_bridge bridgestp"
cloned_interfaces="bridge21"
ifconfig_bridge21="inet 10.10.21.1/24"
I have the following in /etc/sysctl.conf:
Code:
# bhyve
net.link.tap.up_on_open=1
net.link.ether.inet.proxyall=1
net.inet.ip.random_id=1
net.inet.ip.forwarding=1
My VMs are using virtio-net with the tap device created by
ifconfig tap create
.Does anybody have any idea why I am not able to ping between VMs or to other hosts on the network after this upgrade? Is this a bug?
What steps can I take to further troubleshoot?