Ask Your Question
2

F29 VirtualBox - vboxdrv failed

asked 2019-01-19 14:15:47 -0500

neulon gravatar image

updated 2019-01-22 01:53:06 -0500

Hello,

I'm trying to run the last version of VirtualBox 6.0.2 on my Fedora 29, however I'm getting error regarding the Kernel modules.

Failed to create a host network interface.

VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory.

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: HostNetworkInterfaceWrap
Interface: IHostNetworkInterface {455f8c45-44a0-a470-ba20-27890b96dba9}

I've the Kernel-devel dkms kernel-headers installed to my kernel

Package kernel-devel-4.19.15-300.fc29.x86_64 is already installed.
Package dkms-2.6.1-2.fc29.noarch is already installed.
Package kernel-headers-4.19.15-300.fc29.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

When I try to run the manually i get error

1:VirtualBox-6.0-6.0.2_128162_fedor################################# [100%]

Creating group 'vboxusers'. VM users must be member of that group!

vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig as root.

How i solved?

  • First disable SELinux on /etc/selinux/config set SELINUX=DISABLED

  • Then after check deeply dmesg -w I found that it was lockdown because the module is not signed also security boot was enabled so i needed to use mokutil to disable it

  • sudo mokutil --disable-validation

  • reboot follow the steps and disable the secure boot

  • then run agan /sbin/vboxconfig setup


EDIT 1#:

When running sudo '/sbin/vboxconfig' or from a Root terminal i get the following message: vboxdrv.sh: Stopping VirtualBox services. vboxdrv.sh: Starting VirtualBox services. vboxdrv.sh: Building VirtualBox kernel modules. vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.

EDIT 2#:

# dmesg | grep vbox
[   67.177565] audit: type=1130 audit(1547986786.501:244): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=vboxdrv comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[   67.186015] audit: type=1130 audit(1547986786.510:245): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=vboxautostart-service comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   67.187091] audit: type=1130 audit(1547986786.511:246): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=vboxweb-service comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   67.188100] audit: type=1130 audit(1547986786.512:247): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=vboxballoonctrl-service comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

EDIT 3#:

# dnf install kernel kernel-devel kernel-header
Package kernel-4.19.14-300.fc29.x86_64 is already installed.
Package kernel-4.19.15-300.fc29.x86_64 is already installed.
Package kernel-devel-4.19.15-300.fc29.x86_64 is already installed.
No match for argument: kernel-header
Error: Unable to find a match

# dnf install kernel-header-4.19.15.300.fc29.x86_69
Last metadata expiration check: 0:01:01 ago on Mon 21 Jan 2019 19:44:44 WET.
No match for argument: kernel-header-4.19.15.300.fc29.x86_69
Error: Unable to find ...
(more)
edit retag flag offensive close merge delete

Comments

Reboot and try again.

Glenn gravatar imageGlenn ( 2019-01-19 16:04:54 -0500 )edit

Done multiple times as well as full remove of the package and re-install... unfortunately still same situation

neulon gravatar imageneulon ( 2019-01-19 16:23:41 -0500 )edit

run like a dkms*...it'll be more to solve the problem. virtualbox good run in F29...Have a nice day...

simmon gravatar imagesimmon ( 2019-01-19 20:14:52 -0500 )edit

how is it firewalld status? check like this...

 [root@cugar ~]# cat /etc/selinux/config|grep disabled
 #     disabled - No SELinux policy is loaded.
 SELINUX=disabled
simmon gravatar imagesimmon ( 2019-01-21 21:49:24 -0500 )edit

Thanks this was a hint! i managed to solved with the infromation i've added above! thanks for your support!

neulon gravatar imageneulon ( 2019-01-22 01:48:36 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-01-19 20:05:21 -0500

updated 2019-01-21 19:31:24 -0500

you need to install kernel and kernel headers like a ...kernel tools for virtualbox

 # dnf install kernel kernel-devel kernel-header
 # dnf install dkms*

 [root@cugar simmon]# uname -ar
 Linux masi 4.19.15-300.fc29.x86_64 #1 SMP Mon Jan 14 16:32:35 UTC 2019 x86_64 x86_64 x86_64

Do not install virtualbox using dnf, but download it from www.virtualbox.org I think you do not seem to have the virtualbox installed properly on your system.

Download the distribution that can use F29 from the web and install it with rpm -Uvh command.

 [root@masi simmon]# rpm -Uvh VirtualBox-6.0-6.0.0_127566_fedora29-1.x86_64.rpm  
 [root@masi simmon]# rpm -qa|grep VirtualBox
 VirtualBox-6.0-6.0.0_127566_fedora29-1.x86_64

After installing the kernel tool, run the following command to apply vboxdrv to the kernel:

 # '/sbin/vboxconfig'

 [root@masi ~]# dmesg|grep vbox
 [  183.914423] vboxdrv: loading out-of-tree module taints kernel.
 [  183.914895] vboxdrv: module verification failed: signature and/or required key missing - tainting kernel
 [  183.924289] vboxdrv: Found 8 processor cores
 [  183.924878] vboxdrv: fAsync=0 offMin=0x950 offMax=0x45c4
 [  184.025090] vboxdrv: TSC mode is Synchronous, tentative frequency 3166645576 Hz
 [  184.025093] vboxdrv: Successfully loaded version 6.0.0 (interface 0x00290007)
 [  184.291518] vboxpci: IOMMU not found (not registered)

I tested it on two physical servers (HP / IBM) and one virtual server(ThinkPad) For the related contents, install virtual operating system and confirm normal operation.

  * vbox system status check for initial boot - install ntsysv / setuptool      
  # setup

image description

Each server showed normal installation process, and other operating system was installed normally in the virtualbox to check the operation.

edit flag offensive delete link more

Comments

Hello, thanks for your feedback.

i run the install of Kernels and this is the output:

last metadata expiration check: 8:46:58 ago on Sat 19 Jan 2019 23:09:06 WET.
Package kernel-4.19.14-300.fc29.x86_64 is already installed.
Package kernel-4.19.15-300.fc29.x86_64 is already installed.
Package kernel-devel-4.19.15-300.fc29.x86_64 is already installed.
Package kernel-headers-4.19.15-300.fc29.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

When i run '/sbin/vboxconfig' i get the same message posted above (i tried with Root and sudo)

neulon gravatar imageneulon ( 2019-01-20 02:03:42 -0500 )edit

Using different command line i get the following as a Root:

/usr/lib/virtualbox/vboxdrv.sh setup
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
neulon gravatar imageneulon ( 2019-01-20 02:44:00 -0500 )edit

and,,,,reboot - You need to reboot because you need to apply the changed kernel.

simmon gravatar imagesimmon ( 2019-01-20 02:55:20 -0500 )edit

I've done multiple reboots however nothing will happen because Modprobe faile and he cannot install the Kernel Modules... is there where the whole operation is blocked...

neulon gravatar imageneulon ( 2019-01-20 03:08:45 -0500 )edit

show me the messgae

 # dmesg | grep vbox
simmon gravatar imagesimmon ( 2019-01-20 03:13:54 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-01-19 13:59:01 -0500

Seen: 437 times

Last updated: Jan 22