Page 1 of 2

[Solved] VirtualBox install improperly in Fedora 28

Posted: 5. May 2018, 19:58
by B0402090
>>>My env:
Fedora 28
Linux localhost.localdomain 4.16.6-302.fc28.x86_64+debug

>>>Problem:
After Installation without reported error, I encountered this when opening VirtualBox

VirtualBox: Error -610 in supR3HardenedMainInitRuntime!
VirtualBox: dlopen(“/usr/lib64/virtualbox/VBoxRT.so”,) failed:
VirtualBox: Tip! It may help to reinstall VirtualBox.

I took a look /var/log/vbox-install.log
ERROR: Kernel configuration is invalid.”; \
echo >&2 ” include/generated/autoconf.h or include/config/auto.conf are missing.”;\
echo >&2 ” Run ‘make oldconfig && make prepare’ on kernel src to fix it.”; \

then I do as mentioned above, but get
scripts/selinux/genheaders/genheaders.c:19:10: fatal error: classmap.h: No such file or directory compilation terminated.

Both rpm from virtualbox repo (5.2.10_122088_fedora26-1) & rpmfusion-free-updates (5.2.10-2.fc28) are with errors above
How could I solve this? please help

Re: VirtualBox install improperly in Fedora 28

Posted: 5. May 2018, 20:02
by B0402090
I found that there is no classmap.h file in both kernel src & lib modules
so I compile one 4.16.6 kernel from source code and copy files into kernel src then make again
but it seems not working for VirtualBox error

Re: VirtualBox install improperly in Fedora 28

Posted: 5. May 2018, 21:32
by socratis
B0402090 wrote:Both rpm from virtualbox repo (5.2.10_122088_fedora26-1) & rpmfusion-free-updates (5.2.10-2.fc28)
Do *not* use the Fedora fork/repository, always go for the VirtualBox official one.

Since Fedora 28 is brand new, you need the latest 5.2.x test build, not the 5.2.10 release. Download the generic Linux package. Read the "Installing Linux test builds" instructions.

Re: VirtualBox install improperly in Fedora 28

Posted: 6. May 2018, 18:21
by B0402090
OMG It really works!
Thank you for saving me!!

Re: VirtualBox install improperly in Fedora 28

Posted: 6. May 2018, 19:11
by socratis
Great, thanks for the feedback. I expect that there will be full support for Fedora 28 with the next minor release. Don't know when that's going to happen.

Or if it's going to ever happen... :D
(just kidding)

Marking as [Solved].


PS. I changed the title of all the posts from "VirtualBox install improperly in Linux" to "VirtualBox install improperly in Fedora 28", it seems more ... appropriate, focused.

Re: VirtualBox install improperly in Fedora 28

Posted: 6. May 2018, 19:21
by B0402090
Ah... sorry. I'm too optimistic.
Test-build can install VirtualBox itself
However, It reported error when setup a virtual machine as mentioned above...

Re: VirtualBox install improperly in Fedora 28

Posted: 6. May 2018, 20:15
by socratis
What error, please post the new error that you're getting, exactly. Maybe I'll have to unmark this after all...

Re: VirtualBox install improperly in Fedora 28

Posted: 6. May 2018, 22:04
by B0402090
vboxdrv.sh setup report error
it told me to see /var/log/vbox-install.log
Errors are the same as mentioned above

ERROR: Kernel configuration is invalid.”; \
echo >&2 ” include/generated/autoconf.h or include/config/auto.conf are missing.”;\
echo >&2 ” Run ‘make oldconfig && make prepare’ on kernel src to fix it.”; \

and make oldconfig && make prepare not succeed, but it seems just test failed
another error is from Werror, but I don't know where to suppress this flag
/tmp/vbox.0/linux/VBoxPci-linux.c:92:40: 錯誤:implicit declaration of function 「pci_get_bus_and_slot」; did you mean 「pci_get_domain_bus_and_slot」? [-Werror=implicit-function-declaration]
# define PCI_DEV_GET_SLOT(bus, devfn) pci_get_bus_and_slot(bus, devfn)
^~~~~~~~~~~~~~~~~~~~

On the other hand, when I start a virtual machine, it reports error as below:
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv.
Please reinstall the kernel module by executing '/sbin/vboxconfig' as root.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

Re: VirtualBox install improperly in Fedora 28

Posted: 6. May 2018, 22:13
by socratis
When I ask you to repeat the error messages "exactly", the reply "as above" is not appropriate. You have 5 messages, I don't want to go hunting and combining and filtering your messages. So, post a screenshot of the window that you're trying to install the GAs, because your description in not adequate enough. It's like you're on Twitter and there's a character limit, or you're being charged by the word.

Also, ZIP and attach the "/var/log/vbox-install.log". It told you to take a look at it...

Re: VirtualBox install improperly in Fedora 28

Posted: 6. May 2018, 22:37
by B0402090
Here is the log file.

Re: VirtualBox install improperly in Fedora 28

Posted: 6. May 2018, 22:41
by socratis
Thanks for that, but I'm afraid I've asked for more actually...
socratis wrote:post a screenshot of the window that you're trying to install the GAs

Re: VirtualBox install improperly in Fedora 28

Posted: 6. May 2018, 23:05
by B0402090
Here'ss the screenshot

Re: VirtualBox install improperly in Fedora 28

Posted: 6. May 2018, 23:35
by socratis
OK, thank you.
[quote] # define PCI_DEV_GET_SLOT(bus, devfn)  pci_get_bus_and_slot(bus, devfn)
                                        ^~~~~~~~~~~~~~~~~~~~
[/quote]
That's a known issue with the latest 4.17 kernel. There is a patch available if you want to build VirtualBox from the source code. I am not at all sure if that's going to be the final patch, it's just a user contributed patch from the developers' mailing list: https://www.virtualbox.org/pipermail/vb ... 15001.html and it's been confirmed as building properly. Don't know of the implications of the patch.

*** USE AT YOUR OWN RISK ***


PS. It seems that you're "blessed" with a HiDPI display. Could you change the DPI to 50% of the original, next time you post a picture? ;)

Re: VirtualBox install improperly in Fedora 28

Posted: 7. May 2018, 04:11
by B0402090
Sorry, I'm a total newbie here, I'll keep that in mind.
Yes, the revised pci_get_domain_bus_and_slot(0, bus, devfn) works smoothly.
I can start a virtual machine now.
Thank you for helping so much!

Re: VirtualBox install improperly in Fedora 28

Posted: 7. May 2018, 10:55
by socratis
Do you know what the problem was, something that "slipped" by? You started this thread describing a problem installing VirtualBox on a Fedora 28 host. When that got resolved (and I properly marked the topic as [Solved]), you slipped this:
B0402090 wrote:On the other hand, when I start a virtual machine
and all of a sudden, you mixed host and guest problems. In the same topic. And I didn't catch it... :shock:

Anyway, glad you got it going, I can finally mark this as [Solved], for both host and guest.