[Solved] VirtualBox install improperly in Fedora 28

Discussions related to using VirtualBox on Linux hosts.
B0402090
Posts: 8
Joined: 5. May 2018, 19:49

[Solved] VirtualBox install improperly in Fedora 28

Post 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
Last edited by socratis on 7. May 2018, 10:56, edited 2 times in total.
Reason: Marked as [Solved].
B0402090
Posts: 8
Joined: 5. May 2018, 19:49

Re: VirtualBox install improperly in Fedora 28

Post 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
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox install improperly in Fedora 28

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
B0402090
Posts: 8
Joined: 5. May 2018, 19:49

Re: VirtualBox install improperly in Fedora 28

Post by B0402090 »

OMG It really works!
Thank you for saving me!!
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox install improperly in Fedora 28

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
B0402090
Posts: 8
Joined: 5. May 2018, 19:49

Re: VirtualBox install improperly in Fedora 28

Post 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...
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox install improperly in Fedora 28

Post by socratis »

What error, please post the new error that you're getting, exactly. Maybe I'll have to unmark this after all...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
B0402090
Posts: 8
Joined: 5. May 2018, 19:49

Re: VirtualBox install improperly in Fedora 28

Post 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.
Last edited by B0402090 on 6. May 2018, 22:26, edited 1 time in total.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox install improperly in Fedora 28

Post 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...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
B0402090
Posts: 8
Joined: 5. May 2018, 19:49

Re: VirtualBox install improperly in Fedora 28

Post by B0402090 »

Here is the log file.
Attachments
vbox-install.zip
(9.57 KiB) Downloaded 16 times
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox install improperly in Fedora 28

Post 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
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
B0402090
Posts: 8
Joined: 5. May 2018, 19:49

Re: VirtualBox install improperly in Fedora 28

Post by B0402090 »

Here'ss the screenshot
Attachments
screenshot.png
screenshot.png (101.42 KiB) Viewed 5405 times
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox install improperly in Fedora 28

Post 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? ;)
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
B0402090
Posts: 8
Joined: 5. May 2018, 19:49

Re: VirtualBox install improperly in Fedora 28

Post 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!
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox install improperly in Fedora 28

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply