To begin, I have multiple servers that I migrated from 14.3-RELEASE to 15.0-RELEASE. Everything went without a hitch except one very important server that has an OPNSense Bhyve guest using PCI-Passthru for WAN and LAN networking. There were no warnings or errors or anything out of the ordinary on this server.
So, upon reboot after installing the kernel, the guest would not start - okay, this makes sense since no userland was updated yet. So another
The OPNSense guest has the LAN and WAN (em0 and em1 respectively) devices and configured. Infact, sometimes the WAN port would successfully get an address from the ISP's DHCP. No matter what, however, the OPNSense guest is completely unable to ping out to any address WAN or LAN, even the internal gateway which is directly connected (10.99.99.1/30 is OPSense and 10.99.99.2/30 is the L3 switch, attached directly by Cat6). I verified the ports are still correct by turning them on and off and checking the modem and switch that are connected to the appropriate ports. I verified the routing. Nope, even with the correct routing (IPv4 and IPv6) table, no packets were going in either direction. I rebooted multiple times.
I spent a good 2 hours trying to diagnose this but I had to get the network back online. I used
So with that out of the way, what could be affecting PCI-Passthru network devices to a Bhyve guest from this upgrade?
I am using the vm-bhyve pkg and the config file is as such:
The full /boot/loader.conf:
Ideas to troubleshoot this or provide better insight?
So, upon reboot after installing the kernel, the guest would not start - okay, this makes sense since no userland was updated yet. So another
freebsd-update install later and the guest started right up with no errors. Now begins the odd bit....The OPNSense guest has the LAN and WAN (em0 and em1 respectively) devices and configured. Infact, sometimes the WAN port would successfully get an address from the ISP's DHCP. No matter what, however, the OPNSense guest is completely unable to ping out to any address WAN or LAN, even the internal gateway which is directly connected (10.99.99.1/30 is OPSense and 10.99.99.2/30 is the L3 switch, attached directly by Cat6). I verified the ports are still correct by turning them on and off and checking the modem and switch that are connected to the appropriate ports. I verified the routing. Nope, even with the correct routing (IPv4 and IPv6) table, no packets were going in either direction. I rebooted multiple times.
I spent a good 2 hours trying to diagnose this but I had to get the network back online. I used
bectl activate to switch back to the latest 14.3-RELEASE boot environment from just prior to upgrade and rebooted. The OPNSense guest works normally and with zero issues.So with that out of the way, what could be affecting PCI-Passthru network devices to a Bhyve guest from this upgrade?
I am using the vm-bhyve pkg and the config file is as such:
Code:
loader="bhyveload"
priority="1"
cpu="3"
memory="8G"
disk0_type="nvme"
disk0_name="disk0.img"
uuid="3b52dad1-c916-11ed-a8a9-002590247e86"
passthru0="3/0/0" # LAN
passthru1="5/0/0" # Modem
The full /boot/loader.conf:
Code:
boot_serial="YES"
comconsole_port="0x3e8"
console="comconsole"
autoboot_delay="3"
security.bsd.allow_destructive_dtrace="0"
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
cryptodev_load="YES"
zfs_load="YES"
coretemp_load="YES"
mlx4en_load="YES"
kern.racct.enable="1"
cpu_microcode_load="YES"
cpu_microcode_name="/boot/firmware/intel-ucode.bin"
# PCI passthrough of em2 and em3 to OPNSense
vmm_load="YES"
pptdevs="3/0/0 5/0/0"
Ideas to troubleshoot this or provide better insight?