[Solved] VB not working any more: Error -610 ...

Discussions related to using VirtualBox on Linux hosts.
Post Reply
pvarti
Posts: 6
Joined: 28. Oct 2011, 08:07
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Win7, Win10, several Ubuntu

[Solved] VB not working any more: Error -610 ...

Post by pvarti »

Hope you can help:
I am using VirtualBox since years with a lot of VMs (Win and Linux, mostly Ubuntu). Everything worked fine for me. Until today.
All of the sudden the UI doesn't start any more. This is what I get:

Code: Select all

:~$ virtualbox 
VirtualBox: Error -610 in supR3HardenedMainInitRuntime!
VirtualBox: dlopen("/usr/lib/virtualbox/VBoxRT.so",) failed: <NULL>

VirtualBox: Tip! It may help to reinstall VirtualBox.
This is my environment:

Code: Select all

:~ uname -a
Linux g1406 4.4.0-128-generic #154-Ubuntu SMP Fri May 25 14:15:18 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux]
And here is what I did til now to fix it. Unfortunately with no success.

Code: Select all

:~$ cat /var/log/kern.log |grep -i vbox
Jun 20 14:49:36 ltr-16 kernel: [    2.087124] vboxdrv: loading out-of-tree module taints kernel.
Jun 20 14:49:36 ltr-16 kernel: [    2.087254] vboxdrv: module verification failed: signature and/or required key missing - tainting kernel
Jun 20 14:49:36 ltr-16 kernel: [    2.089484] vboxdrv: Found 8 processor cores
Jun 20 14:49:36 ltr-16 kernel: [    2.107982] vboxdrv: TSC mode is Invariant, tentative frequency 3498977920 Hz
Jun 20 14:49:36 ltr-16 kernel: [    2.107984] vboxdrv: Successfully loaded version 5.1.36 (interface 0x002a0000)
Jun 20 14:49:36 ltr-16 kernel: [    2.310884] VBoxNetFlt: Successfully started.
Jun 20 14:49:36 ltr-16 kernel: [    2.312017] VBoxNetAdp: Successfully started.
Jun 20 14:49:36 ltr-16 kernel: [    2.313446] VBoxPciLinuxInit
Jun 20 14:49:36 ltr-16 kernel: [    2.314041] vboxpci: cannot load pci-stub
Jun 20 14:49:36 ltr-16 kernel: [    2.314042] vboxpci: IOMMU not found (not registered)

Code: Select all

:~$ lsmod |grep -i vbox
vboxpci                24576  0
vboxnetadp             28672  0
vboxnetflt             28672  0
vboxdrv               458752  3 vboxnetadp,vboxnetflt,vboxpci
I decided that the root cause of my problem is a missing vboxdrv:

Code: Select all

:~$ sudo /etc/init.d/vboxdrv setup
sudo: /etc/init.d/vboxdrv: Befehl nicht gefunden
Because kern.log talks about 'tainting the kernel' google told me to update the headers:

Code: Select all

:~$ sudo apt-get install --reinstall linux-headers-4.4.0-128-generic
(seems to work...)
I did some more blind exercises like

Code: Select all

:~$ sudo /sbin/rcvboxdrv setup
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.

Code: Select all

:~$ sudo apt-get purge -y "^virtualbox-.*"
:~$ sudo rmmod vboxpci vboxnetadp vboxnetflt vboxdrv
:~$ sudo apt-get purge -y virtualbox virtualbox-dkms virtualbox-qt
:~$ sudo apt-get autoremove -y && sudo apt-get autoclean -y && sudo apt-get clean -y
:~$ sudo apt-get update 
:~$ sudo apt-get dist-upgrade -y
and I tried various versions of VB (one after the other alway removing the previous ... )

Code: Select all

:~$ sudo apt-get install -y virtualbox 
:~$ sudo dpkg --install Downloads/virtualbox-5.1_5.1.38-122592~Ubuntu~xenial_amd64.deb
:~$ sudo dpkg --install Downloads/virtualbox-5.2_5.2.12-122591~Ubuntu~xenial_amd64.deb
:~$ sudo dpkg --install Downloads/virtualbox-5.1_5.1.36-122089~Ubuntu~xenial_amd64.deb
After spending a lot of time and finding a lot of fellow sufferer you can imagine: Any help more than welcome ...
Last edited by socratis on 27. Jun 2018, 23:43, edited 1 time in total.
Reason: Marked as [Solved].
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VB not working any more: Error -610 ...

Post by socratis »

pvarti wrote:
VirtualBox: Error -610 in supR3HardenedMainInitRuntime!
VirtualBox: dlopen("/usr/lib/virtualbox/VBoxRT.so",) failed: <NULL>
That's most probably a sign of bad/improper permissions in that library path, or another key path in your system.

This is an Ubuntu (what?) exactly? You could either install a similar Ubuntu version and check/compare the permissions, or (if you can't) I could give you the appropriate permissions for that path.
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.
pvarti
Posts: 6
Joined: 28. Oct 2011, 08:07
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Win7, Win10, several Ubuntu

Re: VB not working any more: Error -610 ...

Post by pvarti »

First of all: THANK'S, Socratis, for your support!

I use Ubuntu 16.04LTE.

Related to your hint related to 'permission': "sudo virtualbox" should be permission enough. (?)
Do you know any log files beside /var/log - kern, syslog, etc.?
(/var/log/vbox-install.log is a mess. No idea what to look for ...)

Root cause seems to be the installation of VB in general.
I quickly made another 16.04. Let's call this one 16.04-OK, my original one 16.04-Bad.
In 16.04-OK I installed VB just from Ubuntu packages and VB GUI works, just for comparision, as you proposed.

/etc/init.d/vboxdrv seems to be obsolete now. I do not see it in 16.04-OK even VB is running. I still see vboxdrv in another 14.04.

16.04-OK as well as 16.04-Bad has /etc/init.d/virtualbox. Is this 'virtualbox' a replacement of the former 'vboxdrv''?
I tried

Code: Select all

sudo /etc/init.d/virtualbox
Usage: /etc/init.d/virtualbox {start|stop|stop_vms|restart|force-reload|status}
Unfortunately this seems to be Ubuntu-specific because if I install virtualbox-5.1_5.1.36-122089~Ubuntu~xenial_amd64.deb, i.e. the package from Oracle, then ls /etc/init.d/v* shows nothing.

By the way: I did the same VB installation in 16.04-OK and -Bad and put output into text files. A comparision (see below) didn't show any significant difference. At least for me....

You see: I stray more or less...
Attachments
Bildschirmfoto vom 2018-06-21 14-30-05.png
Bildschirmfoto vom 2018-06-21 14-30-05.png (65.55 KiB) Viewed 3711 times
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VB not working any more: Error -610 ...

Post by socratis »

pvarti wrote:Related to your hint related to 'permission': "sudo virtualbox" should be permission enough. (?)
No, it's usually the other way round; your permission in key directories are too relaxed, sometimes world-writable. That's not acceptable, it's a security risk.
pvarti wrote:Unfortunately this seems to be Ubuntu-specific because if I install ... the package from Oracle
Wait a minute, is your installation the one from Ubuntu? I.e. the Ubuntu fork? If so, you can either ask in their forums for help, or completely remove/uninstall/delete/purge their version and install the official version from the Downloads section of VirtualBox.
pvarti wrote:I did the same VB installation in 16.04-OK and -Bad and put output into text files. A comparision...
No, I said to compare the security, i.e. start with "ls -dlR /*", then "ls -dlR /*/*", etc.

I don't know how to do it more efficiently... ;)
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.
pvarti
Posts: 6
Joined: 28. Oct 2011, 08:07
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Win7, Win10, several Ubuntu

Re: VB not working any more: Error -610 ...

Post by pvarti »

The reason for the comparison was to get a hint due to a potential error message directly as output or in any log.

I used both: the fork as well as those from VB's download. Usually I use VB's ones. Only for gaining more information I've used the fork.

Checking the permission stuff will take a while.......
I will prbably try to use some script.

What really hurts is that I don't know the reason why. And I want to know what to do if it happens again.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VB not working any more: Error -610 ...

Post by socratis »

pvarti wrote:What really hurts is that I don't know the reason why. And I want to know what to do if it happens again.
Usually it's some installer that wasn't careful enough. So, if the installer wanted to give everyone RW access to its data, but instead it gave everyone RW access to the parent directory, then things like that can happen... And they affect the system after that because the permissions are inherited.
pvarti wrote:Checking the permission stuff will take a while.......
Yes, it's a pain, no arguing there. But it's either this or a clean re-installation...
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.
pvarti
Posts: 6
Joined: 28. Oct 2011, 08:07
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Win7, Win10, several Ubuntu

Re: VB not working any more: Error -610 ...

Post by pvarti »

Thank you, socratis, to propse a 'clean re-installation'. And that's not only joking :)
It's normally my option 3:
  • Option 1: try by myself and asking google
  • Option 2: Asking people directly for help, i.e. this forum
  • Option 3: :cry: capitulation.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VB not working any more: Error -610 ...

Post by socratis »

pvarti wrote:Option 3: :cry: capitulation.
Hey, not so fast! :)

Try to see if your host's permissions match my "default" permissions from an Ubuntu 16.04 installation:

Code: Select all

socratis@VB-Ubuntu:~$ ls -dlR /*
drwxr-xr-x   2 root root  4096 Jul 27  2017 /bin
drwxr-xr-x   3 root root  4096 Jul 27  2017 /boot
drwxrwxr-x   2 root root  4096 Jan 19  2017 /cdrom
drwxr-xr-x  19 root root  3940 Jun 25 20:36 /dev
drwxr-xr-x 133 root root 12288 Jun 25 20:36 /etc
drwxr-xr-x   5 root root  4096 Jul 27  2017 /home
lrwxrwxrwx   1 root root    32 Jul 27  2017 /initrd.img -> boot/initrd.img-4.4.0-87-generic
lrwxrwxrwx   1 root root    32 Jan 19  2017 /initrd.img.old -> boot/initrd.img-4.4.0-59-generic
drwxr-xr-x  22 root root  4096 Jul 27  2017 /lib
drwx------   2 root root 16384 Jan 19  2017 /lost+found
drwxr-xr-x   3 root root  4096 Jan 19  2017 /media
drwxr-xr-x   2 root root  4096 Jul 19  2016 /mnt
drwxr-xr-x   3 root root  4096 Jul 28  2017 /opt
dr-xr-xr-x 201 root root     0 Jun 25 20:36 /proc
drwx------   4 root root  4096 Jan 19  2017 /root
drwxr-xr-x  24 root root   820 Jun 25 20:36 /run
drwxr-xr-x   2 root root 12288 Jul 28  2017 /sbin
drwxr-xr-x   2 root root  4096 Jun 29  2016 /snap
drwxr-xr-x   2 root root  4096 Jul 19  2016 /srv
dr-xr-xr-x  13 root root     0 Jun 25 20:36 /sys
drwxrwxrwt   9 root root  4096 Jun 25 20:37 /tmp
drwxr-xr-x  11 root root  4096 Jul 19  2016 /usr
drwxr-xr-x  14 root root  4096 Jul 20  2016 /var
lrwxrwxrwx   1 root root    29 Jul 27  2017 /vmlinuz -> boot/vmlinuz-4.4.0-87-generic
lrwxrwxrwx   1 root root    29 Jan 19  2017 /vmlinuz.old -> boot/vmlinuz-4.4.0-59-generic
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.
pvarti
Posts: 6
Joined: 28. Oct 2011, 08:07
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Win7, Win10, several Ubuntu

Re: VB not working any more: Error -610 ...

Post by pvarti »

To tell the truth: I didn't really believe in the story of wrong 'permission'. So I tried a lot of other stuff. And it is really a wonder that the system is still running. Ok. It is a Linux.

But to make long story short: CHAPEAU. YOU were right.
After giving /usr back to the root it works.

Thank's a lot to take care for my distress. :)

Conclusion: Solved.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: [Solved] VB not working any more: Error -610 ...

Post by socratis »

pvarti wrote:I didn't really believe in the story of wrong 'permission'.
Tsk, tsk, tsk... you hurt my feelings ;)

Glad you god it going. Marking as [Solved].
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