VirtualBox 6.1.28 / 6.1.29 on Fedora 35/34/33, CentOS/RHEL 8/7 - Comment Page: 23
Oracle VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. VirtualBox is a general-purpose full virtualizer for x86 hardware. Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software.
Check video guide howto install VirtualBox 6.1.28/6.1.29 on Fedora 35/34/33 using .run installer:
Check video guide howto install VirtualBox 6.1.28 on Fedora 34/33 using Oracle's own dnf repo:
Watch More Videos and Subscribe to if-not-true-then-false.com Youtube Channel
VirtualBox supports a large number of guest operating...
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.
How could I solve this? please help
Hi andys0975,
I can’t see it here, but based on your comment on nVidia install guide. I can guess that your problem is debug kernel.
Nvidia works. VirtualBox still the same error
When I run
sudo /usr/lib/virtualbox/vboxdrv.sh setup
It showed
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
There are several errors in /var/log/vbox-install.log:
1. echo >&2 ” 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.”; \
2. – SSL error:02001002:system library:fopen:No such file or directory: crypto/bio/bss_file.c:74
– SSL error:2006D080:BIO routines:BIO_new_file:no such file: crypto/bio/bss_file.c:81
3. /tmp/vbox.0/linux/VBoxPci-linux.c:92:40: error: implicit declaration of function 「pci_get_bus_and_slot」; did you mean 「pci_get_domain_bus_and_slot」? [-Werror=implicit-function-declaration]
Did you tried this with kernel 4.16 (no debug) or with kernel 4.17? Kernel 4.16 works, but I haven’t tested 4.17 at all.
Ya I tried both on 4.16.7 & 4.17.0.rc3
Exactly the same error as mentioned
I want to use virtualbox for kubernetes local version. I tried other virtualization option like kvm2. They all failed with unknown error.
Hey! I ask this question on VirtualBox Forum
One expert say:
“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.”
I did as said. It really works!
VirtualBox test build version: 5.2.11 r122401 (2018-04-27T08:51:51Z)
Maybe you can edit into your post content
Thanks again for so many helps!
BTW
I think the problem may be python
I alternate default python script from 2.7 to 3.6
and Vbox normally may need 2.7 to bind on kernel
but test-build works fine
maybe they test a python3 script for future installation
Ah… sorry. I’m too optimistic.
Test-build can install VirtualBox itself
However, It reported error as mentioned above when setup a virtual machine…
Interesting, I can build kernel modules, run VirtualBox 5.2.10, boot virtual machines with kernel 4.16.6 on F28 without problems.
Could you post the /var/log/vbox-install.log?
I wonder what’s the difference…
Hey I found this for 4.17.0 rc kernel
https://www.virtualbox.org/pipermail/vbox-dev/2018-April/015001.html
Just edit the pci thing in VBoxPci-linux.c
Every thing work smoothly!
Is there a problem with VirtualBox and Fedora 28? The link to the program disappeared and the repository no longer works (failed to synchronize cache…), so I cannot re-install.
Hi billh,
Not actually problem, but Fedora 28 (build/link) is still missing, so you can manually edit repo file from:
To:
Then it works normally.
I manged to get VirtualBox to reinstall on Fedora 28, but now I get this annoying error:
Qt FATAL: This application failed to start because it could not find or load the Qt platform plugin “xcb”
in “”.
Available platform plugins are: xcb.
Reinstalling the application may fix this problem.
Aborted
VirtualBox is definitely installed:
sudo dnf list installed VirtualBox-5.2
Installed Packages
VirtualBox-5.2.x86_64 5.2.12_122591_fedora26-1 @virtualbox
This is a great guide! But for some reason, I am unable to install dkms. I am prompted for whether I want to install dkms, I hit “y”, but then it cannot connect to a mirror.
I have a RHEL running on an old machine w/ a EPEL repo, and I had no problem installing dkms with yum.
Does this seem like a CentOS issue, or a VirtualBox issue?
Thanks!!!!
Hi Chris,
It’s CentOS issue if you can’t install dkms, try following command:
And then try to install it again.
So here’s a total oddity: I’m not new to Fedora, nor am I new to VirtualBox.. but I haven’t a clue on this one. I’ve got VB installed quite nicely. No errors, no permissions issues no warnings, etc.. Whenever I load up a LiveBoot CD/DVD image for some reason, it tries to start loading (BIOS gets the disk started) and thennn…. hangs. Leave it going over night, still where I left it. Anyone got any ideas on why VB would start running (apparently) and then.. just.. not?
Note: same ISOs work just fine on FC25/VB-5.1
*perplexed*
Hi Jaime,
What version of VirtualBox you are now running? Did you tested several isos or just one?
How can I install VirtualBox in a server without internet? But I have a server with internet connected to this “no internet server”. What are the steps I can do. I am a newbie in this field.
Hi,
I am using Fedora 28. I follow the steps above and I got the error when I run “#dnf install VirtualBox-5.2” as per following:
———————–
“Failed to synchronize cache for repo ‘virtualbbox”, disabling.”
———————–
The virtualbox.repo contents are :
================================
virtualbox]
name=Fedora $releasever – $basearch – VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/$releasever/$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc
================================
Any idea?
Thanks!
Hi! Thanks for this post! I’ve been following your instructions to install VirtualBox for several years now, and it always helped me a lot.
But now I’m kind of lost. I’ve installed it following every step, using LXDE Fedora 28, but it crushes when I try to use it. It seems that it’s related to permissions, because if I run it from the terminal using sudo VirtualBox, then it starts. Do you know how do I fix this?
Hi Consuelo,
Did you added your user on vboxusers group?
Could you post output of following command (as normal user):
Hi JR,
Thanks for your reply! Yes, I added my user (cheluna) on vboxusers group.
Here is the output:
“groups
cheluna wheel vboxusers”
I removed the 5.2 version and installed the 5.1, but it didn’t make any difference. I can only open it with sudo permission. If I don’t, it gives this error:
Receptor RC:
NS_BASE_STREAM_WOULD_BLOCK (0x80470007).
Does it ring any bells?
Hi Consuelo,
Could you post output of following commands (as normal user):
Sure.
ls -lad ~/.config/VirtualBox/
drwx——. 2 root root 4096 ago 18 01:40 /home/cheluna/.config/VirtualBox/
[[email protected] ~]$ ls -la ~/.config/VirtualBox/
ls: no se puede abrir el directorio ‘/home/cheluna/.config/VirtualBox/’: Permission denied
Thanks, looks like that you have wrong permissions on your .config/VirtualBox directory. Try following (as root user):
Then try to start VirtualBox as normal user.
If it still fail, then try following as root user:
And start VirtualBox.
Thanks JR,
It does help and lets me start VirtualBox!
However… I have already created a Virtual Machine (starting VirtualBox as root user), and now I cannot access it. Also, I cannot see the VirtualBox VMs folder (it’s not hidden), unless I use root permission. So I cannot open it from the application, and it does not recognize it. This is so weird. It never happened to me before. I don’t understand why it happened, because I installed other applications the same way and they work perfectly.
Thanks for your time and patience. <3
At the end I decided to delete the virtual machine I have created and buid a new one. Now everything seems fine. Thanks again!
I meant, using your previous fix. I’m starting it without root permissions, but I preferred to build a new virtual machine. Thanks!
dnf install VirtualBox-5.2
Last metadata expiration check: 1:40:38 ago on Tue 11 Sep 2018 12:57:01 AM EDT.
No match for argument: VirtualBox-5.2
Error: Unable to find a match
[[email protected] ~]# VirtualBo
i can’t install virtualbox using this comment
Hi salman faris,
Could you post output of following command:
Doesn’t work on 64-bit:
/usr/lib/virtualbox/vboxdrv.sh setup
virtualbox is in lib64 but it doesn’t have vboxdrv.sh
Hi netdragon,
Do you get some error when running
/usr/lib/virtualbox/vboxdrv.sh setup
?Just tested on 64-bit system and it works as expected:
I don’t have virtualbox in lib64 at all.
Could you post output of following command:
On Fedora 28 I had to install
elfutils-libelf-devel
Hi Hans,
It should be installed on step 4. when you install all dependencies? Just tested this on clean installed Fedora 28 and it’s installed on step 4.
Please also mention that you need to disable secure boot in bios for the `/usr/lib/virtualbox/vboxdrv.sh setup` to run completely.
You can sign kernel modules and leave Secure Boot enabled.
On Fedora 28, you also need to install `qt5-qtx11extras.x86_64` and `libxkbcommon-x11.x86_64` both are available in yum repo so you can do `sudo dnf install qt5-qtx11extras.x86_64 libxkbcommon-x11.x86_64`
Hi Deepu,
Yes, both is installed mine system too and yes, it might be possible use some spin where both are missing. I added both to dependencies.
dracut -f is required after every kernel update to fix “kernel module load failed” error message on boot
is there way to avoid that on fedora28/29?
Hi Sergii,
Did you installed dkms on step 4.?