virtualbox is not working

Asked by Ashwinkumar K

I am new for Linux i just installed virtual box 5.2 in ubuntu 18.10 now i getting error like,

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.

I already tried to reinstall kernel driver and virtual box but i won't help me to use it

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes, which output do you receive for the commands

uname -a
lsb_release -crid
lscpu
dpkg -l | grep -i virtualbox
sudo apt install --reinstall virtualbox virtualbox-dkms

Revision history for this message
Ashwinkumar K (ashwinkumar10) said :
#2

root@masterall:/home# uname -a
Linux masterall.com 4.18.0-12-generic #13-Ubuntu SMP Wed Nov 14 15:17:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@masterall:/home/zippyops# lsb_release-crid
lsb_release-crid: command not found
root@masterall:/home/zippyops# lsb_release-crid
lsb_release-crid: command not found
root@masterall:/home# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 58
Model name: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz
Stepping: 9
CPU MHz: 1255.762
CPU max MHz: 3300.0000
CPU min MHz: 1200.0000
BogoMIPS: 5187.88
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 3072K
NUMA node0 CPU(s): 0-3
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts flush_l1d
root@masterall:/home/zippyops# dpkg -l | grep -i virtualbox
ic virtualbox 5.2.18-dfsg-2 amd64 x86 virtualization solution - base binaries
ii virtualbox-5.2 5.2.22-126460~Ubuntu~bionic amd64 Oracle VM VirtualBox
ii virtualbox-dkms 5.2.18-dfsg-2 all x86 virtualization solution - kernel module sources for dkms
rc virtualbox-qt 5.2.18-dfsg-2 amd64 x86 virtualization solution - Qt based user interface
root@masterall:/home/zippyops# sudo apt install --reinstall virtualbox virtualbox-dkms -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libgsoap-2.8.60 libvncserver1 virtualbox-qt
Suggested packages:
  vde2 virtualbox-guest-additions-iso
The following packages will be REMOVED:
  virtualbox-5.2
The following NEW packages will be installed:
  libgsoap-2.8.60 libvncserver1 virtualbox virtualbox-qt
0 upgraded, 4 newly installed, 1 reinstalled, 1 to remove and 0 not upgraded.
Need to get 0 B/26.7 MB of archives.
After this operation, 58.0 MB disk space will be freed.
(Reading database ... 184221 files and directories currently installed.)
Removing virtualbox-5.2 (5.2.22-126460~Ubuntu~bionic) ...
Selecting previously unselected package libgsoap-2.8.60:amd64.
(Reading database ... 183401 files and directories currently installed.)
Preparing to unpack .../libgsoap-2.8.60_2.8.60-2build1_amd64.deb ...
Unpacking libgsoap-2.8.60:amd64 (2.8.60-2build1) ...
Selecting previously unselected package libvncserver1:amd64.
Preparing to unpack .../libvncserver1_0.9.11+dfsg-1.1_amd64.deb ...
Unpacking libvncserver1:amd64 (0.9.11+dfsg-1.1) ...
Preparing to unpack .../virtualbox_5.2.18-dfsg-2_amd64.deb ...
Unpacking virtualbox (5.2.18-dfsg-2) ...
Preparing to unpack .../virtualbox-dkms_5.2.18-dfsg-2_all.deb ...

-------- Uninstall Beginning --------
Module: virtualbox
Version: 5.2.18
Kernel: 4.18.0-12-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.18.0-12-generic/
rmdir: failed to remove '': No such file or directory
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetadp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.18.0-12-generic/
rmdir: failed to remove '': No such file or directory
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetflt.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.18.0-12-generic/
rmdir: failed to remove '': No such file or directory
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxpci.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.18.0-12-generic/
rmdir: failed to remove '': No such file or directory
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.

------------------------------
Deleting module version: 5.2.18
completely from the DKMS tree.
------------------------------
Done.
Unpacking virtualbox-dkms (5.2.18-dfsg-2) over (5.2.18-dfsg-2) ...
Selecting previously unselected package virtualbox-qt.
Preparing to unpack .../virtualbox-qt_5.2.18-dfsg-2_amd64.deb ...
Unpacking virtualbox-qt (5.2.18-dfsg-2) ...
Setting up libvncserver1:amd64 (0.9.11+dfsg-1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-3ubuntu3) ...
Setting up virtualbox-dkms (5.2.18-dfsg-2) ...
Loading new virtualbox-5.2.18 DKMS files...
Building for 4.18.0-12-generic
Building initial module for 4.18.0-12-generic
Done.

vboxdrv:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-12-generic/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-12-generic/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-12-generic/updates/dkms/

vboxpci.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-12-generic/updates/dkms/

depmod...

DKMS: install completed.
Job for virtualbox.service failed because the control process exited with error code.
See "systemctl status virtualbox.service" and "journalctl -xe" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.
● virtualbox.service - LSB: VirtualBox Linux kernel module
   Loaded: loaded (/etc/init.d/virtualbox; generated)
   Active: failed (Result: exit-code) since Wed 2018-12-05 15:22:16 IST; 7ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 8927 ExecStop=/etc/init.d/virtualbox stop (code=exited, status=0/SUCCESS)
  Process: 8954 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)

Dec 05 15:22:16 masterall.zippyops.com systemd[1]: Starting LSB: VirtualBox Linux kernel module...
Dec 05 15:22:16 masterall.zippyops.com virtualbox[8954]: * Loading VirtualBox kernel modules...
Dec 05 15:22:16 masterall.zippyops.com virtualbox[8954]: * modprobe vboxdrv failed. Please use 'dmesg' to find out why
Dec 05 15:22:16 masterall.zippyops.com virtualbox[8954]: ...fail!
Dec 05 15:22:16 masterall.zippyops.com systemd[1]: virtualbox.service: Control process exited, code=exited status=1
Dec 05 15:22:16 masterall.zippyops.com systemd[1]: virtualbox.service: Failed with result 'exit-code'.
Dec 05 15:22:16 masterall.zippyops.com systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
Setting up libgsoap-2.8.60:amd64 (2.8.60-2build1) ...
Processing triggers for libc-bin (2.28-0ubuntu1) ...
Processing triggers for systemd (239-7ubuntu10.4) ...
Processing triggers for man-db (2.8.4-2) ...
Processing triggers for shared-mime-info (1.10-1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Setting up virtualbox (5.2.18-dfsg-2) ...
vboxweb.service is a disabled or a static unit not running, not starting it.
Job for virtualbox.service failed because the control process exited with error code.
See "systemctl status virtualbox.service" and "journalctl -xe" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.
● virtualbox.service - LSB: VirtualBox Linux kernel module
   Loaded: loaded (/etc/init.d/virtualbox; generated)
   Active: failed (Result: exit-code) since Wed 2018-12-05 15:22:58 IST; 7ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 9853 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)

Dec 05 15:22:58 masterall.zippyops.com systemd[1]: Starting LSB: VirtualBox Linux kernel module...
Dec 05 15:22:58 masterall.zippyops.com virtualbox[9853]: * Loading VirtualBox kernel modules...
Dec 05 15:22:58 masterall.zippyops.com virtualbox[9853]: * modprobe vboxdrv failed. Please use 'dmesg' to find out why
Dec 05 15:22:58 masterall.zippyops.com virtualbox[9853]: ...fail!
Dec 05 15:22:58 masterall.zippyops.com systemd[1]: virtualbox.service: Control process exited, code=exited status=1
Dec 05 15:22:58 masterall.zippyops.com systemd[1]: virtualbox.service: Failed with result 'exit-code'.
Dec 05 15:22:58 masterall.zippyops.com systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
Setting up virtualbox-qt (5.2.18-dfsg-2) ...

Revision history for this message
Ashwinkumar K (ashwinkumar10) said :
#3

this problem will occurred when i try to update my os
apt-get update -y

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

What output do you receive for the commands

lsb_release -crid
sudo modprobe vboxdrv
dmesg | tail
sudo systemctl status virtualbox.service

Revision history for this message
michael (yellupcm-gmail) said :
#5

Ashwinkumar K

Copy and Paste Manfred's command __ lsb_release -crid.
A space is missing.

Revision history for this message
Launchpad Janitor (janitor) said :
#6

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.