Virtualbox not working after kernel upgrade [SOLVED]

You have a problem with Salix? Post here and we'll do what we can to help.
rsal
Posts: 198
Joined: 12. Mar 2012, 17:00

Re: Virtualbox not working after kernel upgrade

Post by rsal »

I have Salix 32bit and I tried to run http://download.virtualbox.org/virtualb ... ux_x86.run from https://www.virtualbox.org/wiki/Linux_Downloads. But it does not work. The command finishes without any error but there is no /usr/bin/virtualbox:

Code: Select all

# ./VirtualBox-5.0.14-105127-Linux_x86.run
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation.............
VirtualBox Version 5.0.14 r105127 (2016-01-19T16:55:41Z) installer
Removing previous installation of VirtualBox  from /usr/lib/virtualbox
root[0-virtualbox]# 
root[0-virtualbox]# exit
exit
abcde[0-virtualbox]$ virtualbox
bash: virtualbox: command not found

abcde[0-virtualbox]$ ls -l /usr/bin/virtualbox
ls: cannot access /usr/bin/virtualbox: No such file or directory
djemos
Salix Warrior
Posts: 1464
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Virtualbox not working after kernel upgrade

Post by djemos »

It seems the link to VBox.sh does not exist.
ls -l /opt/VirtualBox/VBox.sh
If it is exist then do this

Code: Select all

sudo ln -sf /opt/VirtualBox/VBox.sh  /usr/bin/VirtualBox 
rsal
Posts: 198
Joined: 12. Mar 2012, 17:00

Re: Virtualbox not working after kernel upgrade

Post by rsal »

This file does not exist, even after reinstallation:

Code: Select all

root[0-virtualbox]# ls -l 
total 81900
-rwxr-xr-x 1 cardio users 83865038 Feb 20 09:22 VirtualBox-5.0.14-105127-Linux_x86.run

root[0-virtualbox]# ./VirtualBox-5.0.14-105127-Linux_x86.run
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation.............
VirtualBox Version 5.0.14 r105127 (2016-01-19T16:55:41Z) installer
Removing previous installation of VirtualBox  from /usr/lib/virtualbox

root[0-virtualbox]# ls -l /opt/VirtualBox/VBox.sh
ls: cannot access /opt/VirtualBox/VBox.sh: No such file or directory
Actually there is no VirtualBox folder in /opt/ .
djemos
Salix Warrior
Posts: 1464
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Virtualbox not working after kernel upgrade

Post by djemos »

Then your installation did not done.
you need to have kernel-source installed in /usr/src and then run again this

Code: Select all

sudo sh VirtualBox-5.0.14-105127-Linux_x86.run
rsal
Posts: 198
Joined: 12. Mar 2012, 17:00

Re: Virtualbox not working after kernel upgrade

Post by rsal »

I had been giving following command:

Code: Select all

sudo VirtualBox-5.0.14-105127-Linux_x86.run
rather than:

Code: Select all

sudo sh VirtualBox-5.0.14-105127-Linux_x86.run
djemos
Salix Warrior
Posts: 1464
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Virtualbox not working after kernel upgrade

Post by djemos »

sudo sh is needed if file to run has 644 permissions
rsal
Posts: 198
Joined: 12. Mar 2012, 17:00

Re: Virtualbox not working after kernel upgrade

Post by rsal »

The output is still the same. Why is virtualbox not installing?

I found similar problem with trying to install virtualbox binary installation from slackonly repository into a fresh Salix - mate installation (kernel 3.10.17).

Earlier, I have been able to install virtualbox using slackbuilds (http://forum.salixos.org/viewtopic.php?f=16&t=6844)
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Virtualbox not working after kernel upgrade

Post by laprjns »

rsal wrote:Why is virtualbox not installing?
We don't know, you are not giving us enough information.
rsal wrote:The output is still the same
Please post the output that you see in the terminal. This will help us figure out want is going on.
It look as though you initially installed Virtualbox using the slackbuild for Slackbuild. Try uninstalling it using spkg -d. Then tried installing Virtualbox using the installer from Virtualbox
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
djemos
Salix Warrior
Posts: 1464
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Virtualbox not working after kernel upgrade

Post by djemos »

rsal wrote:The output is still the same. Why is virtualbox not installing?

I found similar problem with trying to install virtualbox binary installation from slackonly repository into a fresh Salix - mate installation (kernel 3.10.17).

Earlier, I have been able to install virtualbox using slackbuilds (http://forum.salixos.org/viewtopic.php?f=16&t=6844)
Did you installed the kernel-source of the same kernel version before start the installation? e.g. for kernel-3.10.17, install the kernel-source 3.10.17
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Virtualbox not working after kernel upgrade

Post by laprjns »

From the slackbuid on Slackbuilds:

Code: Select all

# We don't want an init-script building kernel modules.
# Use virtualbox-kernel.SlackBuild for this.
patch -d src/VBox/Installer/linux -i $CWD/vboxdrv.sh-setup.diff
This is why you go this message

Code: Select all

    root[etc]# ./rc.d/rc.vboxdrv setup
    Not implemented! Please use the virtualbox-kernel.SlackBuild available at SlackBuilds.org instead.
In my opinion the slackbuild make the installation way to complicated. If the slackbuild author would have allow the installation of the vboxdrv.sh script, you would not be in this situation. That's why I always used the VirtualBox installer, much easier!
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
Post Reply