After upgrading to Fedora 32, VirtualBox fails to start VMs:
Failed to open a session for the virtual machine
The VM session was aborted.
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: SessionMachine
Interface: Session {…}
I tried dnf reinstall VirtualBox (from rpmfusion), which succeeded but immediately caused SELinux alerts:
SELinux is preventing systemd-modules from open access on the file /sys/firmware/efi/efivars/SecureBoot-[…]
avc: denied { open } for pid=236949 comm=“systemd-modules” path=“/sys/firmware/efi/efivars/SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c” dev=“efivarfs” ino=26700 scontext=system_u:system_r:systemd_modules_load_t:s0 tcontext=system_u:object_r:efivarfs_t:s0 tclass=file permissive=0
I wonder if the kernel modules are not properly installed, and if SELinux is blocking their installation, or if that is unrelated.
dnf info *virtualbox* shows kmod-VirtualBox-5.6.8-300.fc32.x86_64 is installed, but the text is in red, unlike other package names in blue. I don’t know what the recent addition of color coding means in dnf.
I have the setroubleshoot package installed and the above messages are reported in it.
I also tried reinstalling VirtualBox with SELinux in permissive mode. Of course the same alerts were issued without enforcing, but the result is the same: VirtualBox still won’t start VMs.
Workaround found: disable 3D acceleration in the settings for the guest VM
This allows the VM to start. Part of the issue might be that there is no official VirtualBox package yet for F32 so the one built by rpmfusion might have dependency or build issues.
In other words, it looks like early adopter issues. In the past, I had delayed upgrading Fedora since certain packages blocked it by not having builds for the new release, and VirtualBox had been one of these.
@fasulia
I have the same problem, and I installed it and tested it in addition to other equipment in other equipment, but it showed the same result. I also have a lot of thoughts. Add my question list.
It is an unpleasant surprise, but I expect that the issues will be resolved when VirtualBox releases a package with support for F32.
Previously, that would take a few weeks after a new Fedora release, which would block my upgrade until it became available. This time it seems rpmfusion built a package for F32 right away, but clearly it has problems.
I doubt there is much to do other than wait, unless you can help with development.
It worked fine with SELinux on Fedora 31, so I don’t think that’s the issue. The bug report behind that recommendation is really old (2016). Although, there have been a number of SELinux issues that need ironing out on Fedora 32.
I just installed it to test… at first I thought it did goes fine but then I see in the terminal:
WARNING: The vboxdrv kernel module is not loaded.
Either there is no module available for the current kernel (5.6.10-300.fc32.x86_64) or it failed to load.
Please try load the kernel module by executing as root
dnf install akmod-VirtualBox kernel-devel-5.6.10-300.fc32.x86_64
akmods --kernels 5.6.10-300.fc32.x86_64 && systemctl restart systemd-modules-load.service
You will not be able to start VMs until this problem is fixed.
Well, I had not done some update… So I did them.
While rebooting, I have seen it build akmod module, and I am kind of now remembering that akmod install it stuff at reboot time.… so you have to reboot after installing virtualbox I think.
I have seen about vboxdrv starting and I expect it to works now.
Indeed the message is gone now…
but also [paul@localhost ~]$ uname -r
5.6.11-300.fc32.x86_64
I have started a new VM for Fedora 32 Cinnamon Live … working fine.
It’s great that 6.1.8 is released and should become available soon in Fedora but I don’t see any mention of a similar bug in the changelog: https://www.virtualbox.org/wiki/Changelog
VirtualBox 6.1.8 update is now available from RPMFusion. It now succeeds in starting VMs with 3D acceleration enabled. I haven’t tested extensively, but it’s already an improvement.
Note that the VirtualBox developers are working on a build to properly support F32, and that is expected to be released in a few days.