Solution to VirtualBox failure after Ubuntu Linux kernel update

Source: Internet
Author: User

From waiting for blog
A few days ago, since I couldn't start my own Linux computer, I started it today. I checked out Ubuntu updates during this period! Update the SDK without thinking about it. The update is smooth. Then open VirtualBox, and an error occurs:
VirtualBox kernel driver not installed. the vboxdrv kernel module was either not loaded or/dev/vboxdrv was not created for some reason. re-setup the kernel module by executing '/etc/init. d/vboxdrv setup 'as root.
VBox status code:-1908 (VERR_VM_DRIVER_NOT_INSTALLED ).
Result Code: 0 × 80004005
Component: Console
Interface: IConsole
{1dea5c4b-0753-4193-b909-22330f64ec45}
Prompt: enter in Terminal
Sudo/etc/init. d/vboxdrv setup
Still not. The information provided is
Stopping VirtualBox kernel module: vboxdrv.
Recompiling VirtualBox kernel module: vboxdrv
* Look at/var/log/vbox-install.log to find out what went wrong
Open the/var/log/vbox-install.log file, book:
Cp: missing destination file operand after "/tmp/vbox.0/Module. symvers"
Run "cp-help" to obtain more information.
Makefile: 73: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR = and run Make again .. Stop.
It seems that the Linux kernel is upgraded during the update, so vboxdrv needs to be re-compiled. Because it is directly updated from the source, there is no Linux kernel source file, it is clear that these source files need to be compiled. I visited several forums and said the solution is as follows:
Sudo apt-get install linux-headers-$ (uname-r)
Sudo apt-get install linux-restricted-modules-$ (uname-r)
Sudo/etc/init. d/vboxdrv setup
Sure enough, the terminal prompts that the compilation is successful.
* Stopping VirtualBox kernel module vboxdrv [OK]
* Recompiling VirtualBox kernel module vboxdrv [OK]
* Starting VirtualBox kernel module vboxdrv [OK]
Start VirtualBox. Everything is normal.


 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.