Kernel problem

Discussions related to using VirtualBox on Linux hosts.
Post Reply
McDragon
Posts: 3
Joined: 22. Jul 2014, 09:43

Kernel problem

Post by McDragon »

After the last Ubuntu linux header update my Virtualbox does not work anymore. Not even the usual kernel driver update does not work.

Host environment: Ubuntu 14.04 64bit
Guests: none work: Win7 or Win8.1
Virtualbox:

dpkg -s linux-headers-$(uname -r)
Package: linux-headers-3.13.0-32-generic
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 12999
Maintainer: Ubuntu Kernel Team
Architecture: amd64
Source: linux
Version: 3.13.0-32.57
Provides: linux-headers, linux-headers-3.0
Depends: linux-headers-3.13.0-32, libc6 (>= 2.14)
Description: Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
This package provides kernel header files for version 3.13.0 on
64 bit x86 SMP.

See attachment for window that pop-s up when I run a guest.

However running

Code: Select all

sudo /etc/init.d/vboxdrv setup
returns "sudo: /etc/init.d/vboxdrv: command not found"
There is a virtualbox file in there but when I run that it shows that setup is not a parameter for that command:

Code: Select all

sudo /etc/init.d/virtualbox setup
Usage: /etc/init.d/virtualbox {start|stop|stop_vms|restart|force-reload|status}
If I run /usr/bin/virtualbox in a terminal I get the following output:

Code: Select all

WARNING: The character device /dev/vboxdrv does not exist.
	 Please install the virtualbox-dkms package and the appropriate
	 headers, most likely linux-headers-generic.

	 You will not be able to start VMs until this problem is fixed.

What should I do?
Attachments
vb_1.png
vb_1.png (53.99 KiB) Viewed 5596 times
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Kernel problem

Post by noteirak »

Moved to "Linux Hosts"
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Smackey's dad
Posts: 127
Joined: 2. Apr 2014, 04:11
Primary OS: Ubuntu 12.04
VBox Version: OSE Debian
Guest OSses: Ubuntu Trusty
Location: Austin, TX
Contact:

Re: Kernel problem

Post by Smackey's dad »

I would suggest a reinstall. Backup your VM, although a reinstall never touches any of the VM files, just to be safe. I have done re-installs on fully functional system. Usually to resolve issues such as those with core VB itself and it helps to move past the issue quickly without having to painstakingly try to fix the specific error/problem.

(1) Make sure you are NOT running your VMs are root user - or if you are, then you will need to switch to using non-root (copy and change ownership on VMs and config)

(2) Uninstall VB. (No change in apt sources)

(3) Install again. I assume you are using "Debian-based Linux distributions" for VB supplied by Oracle. If not now is a good time to switch. Uninstall first. Update apt sources. Re-install.

(4) Make sure DKMS is installed if not already which will dynamically recompile the changed Linux kernel if you upgrade the kernel later.
McDragon
Posts: 3
Joined: 22. Jul 2014, 09:43

Re: Kernel problem

Post by McDragon »

Hi

Thank you Smackey's dad. My VB was installed through the Ubuntu software centre and that is the way I UN-installed it. However it did not work. Tried updating DKMS but also no imporvement seen.
In the end I again, UN-installed it through the Ubuntu software centre and then ran the following command

Code: Select all

sudo apt-get remove virtualbox --purge
This DID NOT remove my virtual machines by the way ... for anyone trying this as well.

Then-re-installed VB and it now works. :D
HOWEVER - I still do not have vboxdrv under /etc/init.d

I have read some instructions here http://askubuntu.com/questions/205154/v ... etup-issue but I have not tried any.
Post Reply