Bug 224616

Summary: emulators/virtualbox-ose-additions does not detect PAE
Product: Ports & Packages Reporter: Mikhail Teterin <mi>
Component: Individual Port(s)Assignee: Virtualbox Team (Nobody) <vbox>
Status: Open ---    
Severity: Affects Some People CC: grahamperrin, vbox
Priority: --- Flags: bugzilla: maintainer-feedback? (vbox)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Add PAE-option grahamperrin: maintainer-approval? (vbox)

Description Mikhail Teterin freebsd_committer freebsd_triage 2017-12-27 14:29:30 UTC
I could not get my PAE-using VBox guest to load vboxguest-module properly -- and, consequently, could not get X to work, etcaetera -- until I added -DPAE to the CFLAGS and rebuilt it.

Maybe, it should be the port's option (or flavor?). Maybe, the port needs to be split into "common" part -- which does not depend on the kernel flags -- and the kernel-modules part, which needs to be built differently for PAE-kernels.

At the very least, a load-time detection of PAE-kernel needs to be implemented so the user gets an actionable hint as to what to do, instead of the incomprehensible "vgdrvFreeBSDAddIRQ failed" followed by "vboxguest0 attach returned 6".

Not even Google knows, what to do about these, although my filing this ticket may help :-) ...
Comment 1 Mikhail Teterin freebsd_committer freebsd_triage 2018-02-16 20:34:03 UTC
Created attachment 190702 [details]
Add PAE-option

This is worse than I thought, because vboxvfs uses some C++ files, which are compiled without -DPAE.

The attachment helped me, but it is, probably, incomplete in various ways...

And something still needs to be done about virtualbox-ose-kmod too.
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2023-03-13 23:00:26 UTC
Please, is this still an issue? With virtualbox-ose-6.1.36_1
Comment 3 Graham Perrin 2023-08-19 09:36:50 UTC
Comment on attachment 190702 [details]
Add PAE-option

Re: comment #2 no feedback, let's assume that this bug report is still valid …