Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Aug 2017 05:00:19 +0200
From:      John Keates <john@keates.nl>
To:        freebsd-questions@freebsd.org
Subject:   FreeBSD 11.0 (pfSense 2.4) kernel panic with more than 3 Xen (4.8.1) VIF's
Message-ID:  <AB01214D-F581-477A-8187-505F46E8E8B0@keates.nl>

Next in thread | Raw E-Mail | Index | Archive | Help
Hi,

I=E2=80=99m using FreeBSD 11.0 (technically in a pfSense 2.4 =
distribution form) in a VM (HVM with PV on for optimised virtual =
devices) using Xen 4.8.1. (management OS is Debian Stretch).
When starting the VM with 3 or less network interfaces, everything works =
fine, but as soon as I add a 4th interface the VM gets a kernel panic =
and dumps (and reboots). When adding a 5th or more interface and booting =
it doesn=E2=80=99t even dump anymore, it panics and immediately goes =
into db>.

Configuration file for the VM:

name =3D 'firewall'
bios =3D "ovmf"
uuid=3D"11d1366c-40e2-43b2-83be-52cfe0c6542d"
builder =3D 'hvm'
memory =3D '2024'
vcpus =3D 4
disk =3D ['file:/dev/hypervisor-local/firewall-system,xvda,w']
vif =3D [
'mac=3D00:16:3e:e5:68:fd, bridge=3Dwan0, =
script=3Dvif-openvswitch-no-offload, type=3Dvif',
'mac=3D00:16:3e:e8:20:db, bridge=3Dlan10, =
script=3Dvif-openvswitch-no-offload, type=3Dvif',
#'mac=3D00:16:3e:ee:02:44, bridge=3Dlan20, =
script=3Dvif-openvswitch-no-offload, type=3Dvif',
#'mac=3D00:16:3e:e1:03:f1, bridge=3Dlan30, =
script=3Dvif-openvswitch-no-offload, type=3Dvif',
'mac=3D00:16:3e:e2:30:44, bridge=3Dlan40, =
script=3Dvif-openvswitch-no-offload, type=3Dvif'
]
boot =3D 'c'
serial=3D=E2=80=98pty'

Disk image used for installation: =
https://snapshots.pfsense.org/amd64/pfSense_master/installer/pfSense-CE-me=
mstick-serial-2.4.0-BETA-amd64-latest.img.gz =
<https://snapshots.pfsense.org/amd64/pfSense_master/installer/pfSense-CE-m=
emstick-serial-2.4.0-BETA-amd64-latest.img.gz> (added as xvdb)

Initial panic lines (with 4 interfaces):

panic: HYPERVISOR_memory_op failed to map gnttab
cpuid =3D 2
KDB: enter: panic
[ thread pid 26 tid 100093 ]
Stopped at      kdb_enter+0x3b: movq    $0,kdb_why

Mostly complete crash dump: =
https://forum.pfsense.org/index.php?topic=3D134533.0
I can supply the dumps themselves as well I suppose, they should still =
be stored on the system. If needed I should be able to re-create this on =
pure FreeBSD 11.0 too.

Has this type of problem with the netback/netfront combination with =
FreeBSD and Xen been happening before? And if so, was it resolved? I =
couldn=E2=80=99t find anything matching my case, but I might not be =
using the right search options.

Regards,
John



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?AB01214D-F581-477A-8187-505F46E8E8B0>