Created attachment 208757 [details]
Attachment 1 [details] (Network adapter)
Fatal trap 12: page fault ... current process = 0 (vmbusdev)
This applies to these OS versions:
FreeBSD-11.2 RELEASE amd64
FreeBSD-11.3 STABLE amd64 20191025 r354051
FreeBSD-12.0 RELEASE amd64
FreeBSD-12.1 RC1 amd64
FreeBSD-12.1 RC2 amd64
FreeBSD-12.1 STABLE amd64 20191025 r354051
FreeBSD-13.0 CURRENT amd64 20191025 r354057
For all these OSs, this bug is the same.
Hypervisor: Windows 2019 server Hyper-V (all update and drivers are the latest).
VM: Hyper-V generation V2.
Network adapter: Mellanox ConnectiX-3 EN 10G SR-IOV enabled, (Attachment 1 [details]).
All VM-OSs were installed under the same conditions, (Attachment 2 [details]):
mem: 6GB, HDD: 127GB;
FS: Auto (ZFS) Guided Root-on-ZFS, (Attachment 3 [details]);
ZFS: GPT (BIOS+UEFI), (Attachment 4 [details]);
LAN: one HV-V2 network adapter, (Attachment 2 [details]);
When we enable SR-IOV on the port, (Attachment 5 [details]),
and load the Mellanox driver in the OS
root@frw03v2:~ # kldload mlx4en
everything works without problems as it should.
Status of network connection is OK (Support SR-IOV active), (Attachment 6 [details]).
Add to /boot/loader.conf to automatically load the ConnectiX-3 driver
and reboot VM-OS.
Result - Fatal trap on loading stage (Attachment 7 [details]-11).
As a temporary solution to this problem,
the pfSense community suggested this:
in /boot/loader.conf add
Indeed, all versions of the FreeBSD OS will now boot OK
(with parameter kern.cam.boot_delay="10000"
in the configuration file /boot/loader.conf),
but where is the guarantee that this focus
makes the system stable under load?
And yet, this focus stops working when
parameter kern.cam.boot_delay is less than 1000.
For example, if kern.cam.boot_delay="500",
then when booting the system - the same Fatal trap.
Created attachment 208758 [details]
Attachment 2 [details] (VM setup)
Created attachment 208759 [details]
Attachment 3 [details] (FS)
Created attachment 208760 [details]
Attachment 4 [details] (ZFS)
Created attachment 208761 [details]
Attachment 5 [details] (enable SR-IOV on port)
Created attachment 208762 [details]
Attachment 6 [details] (work condition)
Created attachment 208763 [details]
Attachment 7 [details]
Created attachment 208764 [details]
Attachment 8 [details] (boot-2)
Created attachment 208765 [details]
Attachment 9 [details] (boot-3)
Created attachment 208766 [details]
Attachment 10 [details] (boot-4)
Created attachment 208767 [details]
Attachment 11 [details] (Fatal trap 12)