vbox VirtualBox problem after upgrade to 12.1

teejay

New Member


Messages: 4

For a long time I was running Freebsd 11 with VurtualBox (Windows and Linux guests). Last weekend I decided to upgrade system from 11.4 to 12.1. After upgrade with
freebsd-update upgrade -r 12.1-RELEASE
system got some problems with libraries in /usr/lib32.
Running
make buildworld && make installworld
in /usr/src solved this problem. After that all ports were succesfully rebuild with
portmaster -Raf
But after this, starting virtualbox (VirtualBox-5.2.44) guests leads to kernel panic.
Sun Jan 17 17:38:33 MSK 2021
vboxdrv: XXXXXXXXXXXXXXXX VMMR0.r0
vboxdrv: XXXXXXXXXXXXXXXX VBoxDDR0.r0


Fatal trap 12: page fault while in kernel mode
cpuid = 4; apic id = 04
fault virtual address = 0x28
fault code = supervisor read data, page not present
instruction pointer = 0x20:0xffffffff80cd068f
stack pointer = 0x28:0xfffffe00a2956260
frame pointer = 0x28:0xfffffe00a2956290
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 1044 (VBoxHeadless)
trap number = 12
panic: page fault
cpuid = 4
time = 1610894363
KDB: stack backtrace:
#0 0xffffffff80c1d207 at kdb_backtrace+0x67
#1 0xffffffff80bd05bd at vpanic+0x19d
#2 0xffffffff80bd0413 at panic+0x43
#3 0xffffffff810a8dcc at trap_fatal+0x39c
#4 0xffffffff810a8e19 at trap_pfault+0x49
#5 0xffffffff810a840f at trap+0x29f
#6 0xffffffff8108221c at calltrap+0x8
#7 0xffffffff82aa92a2 at vboxNetFltOsInitInstance+0x32
#8 0xffffffff82aaab3c at vboxNetFltFactoryCreateAndConnect+0x27c
#9 0xffffffff82bae367 at __stop_set_sysinit_set+0xf191f
#10 0xffffffff82ba98f9 at __stop_set_sysinit_set+0xeceb1
#11 0xffffffff82baa6a6 at __stop_set_sysinit_set+0xedc5e
#12 0xffffffff82ae43b5 at __stop_set_sysinit_set+0x2796d
#13 0xffffffff8264b6d5 at supdrvIOCtlInnerUnrestricted+0x13f5
#14 0xffffffff8265946d at VBoxDrvFreeBSDIOCtl+0xed
#15 0xffffffff80a85ded at devfs_ioctl+0xad
#16 0xffffffff8122b54c at VOP_IOCTL_APV+0x7c
#17 0xffffffff80cb09aa at vn_ioctl+0x16a
Uptime: 1m26s
Dumping 1259 out of 32199 MB:..2%..11%..21%..31%..41%..51%..61%..72%..81%..91%

------------------------------------------------------------------------
kernel config

options CONFIG_AUTOGENERATED
ident GENERIC
machine amd64
cpu HAMMER
makeoptions WITH_CTF=1
makeoptions DEBUG=-g
options EVDEV_SUPPORT
options XENHVM
options USB_DEBUG
options ATH_ENABLE_11N
options AH_AR5416_INTERRUPT_MITIGATION
options AH_SUPPORT_AR5416
options IEEE80211_SUPPORT_MESH
options IEEE80211_AMPDU_AGE
options IEEE80211_DEBUG
options SC_PIXEL_MODE
options VESA
options PCI_IOV
options PCI_HP
options ACPI_DMAR
options EARLY_AP_STARTUP
options SMP
options NETDUMP
options ZSTDIO
options GZIO
options EKCD
options KDB_TRACE
options KDB
options RCTL
options RACCT_DEFAULT_TO_DISABLED
options RACCT
options INCLUDE_CONFIG_FILE
options DDB_CTF
options KDTRACE_HOOKS
options KDTRACE_FRAME
options MAC
options CAPABILITIES
options CAPABILITY_MODE
options AUDIT
options HWPMC_HOOKS
options KBD_INSTALL_CDEV
options PRINTF_BUFR_SIZE=128
options _KPOSIX_PRIORITY_SCHEDULING
options SYSVSEM
options SYSVMSG
options SYSVSHM
options STACK
options KTRACE
options SCSI_DELAY=5000
options COMPAT_FREEBSD11
options COMPAT_FREEBSD10
options COMPAT_FREEBSD9
options COMPAT_FREEBSD7
options COMPAT_FREEBSD6
options COMPAT_FREEBSD5
options COMPAT_FREEBSD4
options COMPAT_FREEBSD32
options EFIRT
options GEOM_LABEL
options GEOM_RAID
options PSEUDOFS
options PROCFS
options CD9660
options MSDOSFS
options NFS_ROOT
options NFSLOCKD
options NFSD
options NFSCL
options MD_ROOT
options QUOTA
options UFS_GJOURNAL
options UFS_DIRHASH
options UFS_ACL
options SOFTUPDATES
options FFS
options SCTP
options TCP_RFC7413
options TCP_HHOOK
options TCP_BLACKBOX
options TCP_OFFLOAD
options IPSEC_SUPPORT
options IPSEC
options INET6
options INET
options VIMAGE
options PREEMPTION
options NUMA
options SCHED_ULE
options NEW_PCIB
options GEOM_PART_GPT
options GEOM_PART_MBR
options GEOM_PART_EBR_COMPAT
options GEOM_PART_EBR
options GEOM_PART_BSD
device isa
device mem
device io
device uart_ns8250
device cpufreq
device acpi
device pci
device fdc
device ahci
device ata
device mvs
device siis
device ahc
device ahd
device esp
device hptiop
device isp
device mpt
device mps
device mpr
device sym
device trm
device isci
device ocs_fc
device scbus
device ch
device da
device sa
device cd
device pass
device ses
device amr
device arcmsr
device ciss
device dpt
device hptmv
device hptnr
device hptrr
device hpt27xx
device iir
device ips
device mly
device twa
device smartpqi
device tws
device aac
device aacp
device aacraid
device ida
device mfi
device mlx
device mrsas
device pmspcv
device twe
device nvme
device nvd
device atkbdc
device atkbd
device psm
device kbdmux
device vga
device splash
device sc
device vt
device vt_vga
device vt_efifb
device agp
device cbb
device pccard
device cardbus
device uart
device ppc
device ppbus
device lpt
device ppi
device puc
device iflib
device em
device ix
device ixv
device ixl
device iavf
device vmx
device bxe
device de
device le
device ti
device txp
device vx
device miibus
device ae
device age
device alc
device ale
device bce
device bfe
device bge
device cas
device dc
device et
device fxp
device gem
device hme
device jme
device lge
device msk
device nfe
device nge
device pcn
device re
device rl
device sf
device sge
device sis
device sk
device ste
device stge
device tl
device tx
device vge
device vr
device wb
device xl
device wlan
device wlan_wep
device wlan_ccmp
device wlan_tkip
device wlan_amrr
device an
device ath
device ath_pci
device ath_hal
device ath_rate_sample
device ipw
device iwi
device iwn
device malo
device mwl
device ral
device wi
device wpi
device crypto
device loop
device random
device padlock_rng
device rdrand_rng
device ether
device vlan
device tun
device md
device gif
device firmware
device bpf
device uhci
device ohci
device ehci
device xhci
device usb
device ukbd
device umass
device sound
device snd_cmi
device snd_csa
device snd_emu10kx
device snd_es137x
device snd_hda
device snd_ich
device snd_via8233
device mmc
device mmcsd
device sdhci
device virtio
device virtio_pci
device vtnet
device virtio_blk
device virtio_scsi
device virtio_balloon
device hyperv
device xenpci
device netmap
device evdev
device uinput

------------------------------------------------------------------------
ddb capture buffer

ddb: ddb_capture: kvm_nlist
I assumed that there is problem with updated kernel. So I again updated source with
svnlite checkout https://svn.freebsd.org/base/releng/12.1 /usr/src
and
make buildkernel buildworld
and
make installkernel
rebooted system and run
make installworld
then rebuilded and reinstalled virtualbox-ose and virtualbox-ose-kmod from ports and get the same kernel panic.

Is there any way to make virtualbox able to run guests again?
Or maybe I missed something when upgraded system?

uname -a
Code:
FreeBSD freebsd 12.1-RELEASE-p12 FreeBSD 12.1-RELEASE-p12 r369021 GENERIC  amd64

5 3 0xffffffff82679000 88ad8 vboxdrv.ko
12 2 0xffffffff82aa9000 2b00 vboxnetflt.ko
15 1 0xffffffff82ab8000 3ec0 vboxnetadp.ko
 

Speedy

Well-Known Member

Reaction score: 27
Messages: 312

You could benefit from reading the top of /usr/src/Makefile.
 
Top