Bug 255078 - emulators/virtualbox-ose-kmod without VIMAGE option: Kernel panic on starting VirtualBox
Summary: emulators/virtualbox-ose-kmod without VIMAGE option: Kernel panic on starting...
Status: Closed DUPLICATE of bug 220003
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Graham Perrin
URL: https://www.freshports.org/emulators/...
Keywords: crash
Depends on:
Blocks:
 
Reported: 2021-04-15 07:00 UTC by Alexander
Modified: 2023-08-18 20:30 UTC (History)
5 users (show)

See Also:


Attachments
core.txt.0 (114.16 KB, text/plain)
2021-04-16 06:59 UTC, Alexander
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander 2021-04-15 07:00:20 UTC
virtualbox-ose-kmod 6.1.18 (also previous version) built from ports without option VIMAGE.

Kernel panic occurs when a virtual machine is started with a virtual network adapter in bridge mode (Settings -> Network -> "Attached to:" set to "Bridged Adapter").
Comment 1 Bernhard Froehlich freebsd_committer freebsd_triage 2021-04-15 10:01:19 UTC
Can you please provide a stacktrace or crash dump?
Comment 2 Alexander 2021-04-16 06:59:59 UTC
Created attachment 224149 [details]
core.txt.0
Comment 3 Miroslav Lachman 2021-05-26 10:19:26 UTC
Can you please add warning to pkg-message about this issue or somewhere else? We were beaten by this too and it is really hard to find what is the problem. The panic and reboot is so instant that I cannot see the panic message at all and as the vboxheadless is started automatically from rc.conf at boot the machine(s) are paniced again and again until booted in to single user mode and vboxheadless is turned of in rc.conf.
I tried to build VirtualBox with VIMAGE just to make some change to test and it works again. But without VIMAGE it instantly panic the host on VM guest start.
Comment 4 russo 2021-10-18 02:20:23 UTC
For what it's worth, I just got bitten by this same issue.

FreeBSD bogodyn.org 12.2-STABLE FreeBSD 12.2-STABLE stable/12-n233832-ebb3327d09c GENERIC  amd64

virtualbox-ose-kmod-6.1.26


I had previously had the 5.x (-legacy) version installed and "upgraded" to 6.1.26.

I had apparently tried to install this before when VIMAGE was default "off" and the ports system had that config stored.  As a result, my system crashed hard the second I started virtualbox (I had not even started a VM --- it crashed on launching the gui).

Rebuilding the kmod with VIMAGE on fixed the problem.  It runs fine so long as VIMAGE is on.

If VIMAGE must be on, it should no longer be an option in the port.  At the very least there should alarm bells going off if the user tries to build without VIMAGE on.

VIMAGE does default on now, but this doesn't help you if you have old configs and aren't prompted to change them.
Comment 5 Graham Perrin freebsd_committer freebsd_triage 2023-08-18 20:30:07 UTC

*** This bug has been marked as a duplicate of bug 220003 ***