I have VirtualBox installed on Ubuntu 16.04 and was running 2 machines from there . First being Homestead and the second being a Windows 7 Machine .  Everything was working fine, until earlier today when I got an error about kernels not being installed . After a bit of searching I found the following solution online:  sudo apt-get install linux-headers-generic build-essential dkms sudo apt-get remove --purge virtualbox-dkms sudo apt-get install virtualbox-dkms   Whenever I try start any of the machines, after the above commands, the entire PC freezes and nothing happens, and I have to do a hard reset.  I tried un-installing virtualbox and re-installing it, but it did not help. I am not to stressed about the Windows machine , but I am worried about the Homestead one ... I cannot lose that info that is on there :(  Edit : I normally start the Homestead machine through the command prompt using Vagrant . Using this method also freezes up the entire system ...
120622
I received the updates through normal Software Updater, 10-Jan-2018. After this VirtualBox would not start any VM, complaining about dkms and asking to make modprobe vboxdrv. Following the advice I reinstalled virtualbox-dkms with:  sudo apt-get --reinstall install virtualbox-dkms   After this and a reboot I tried to start a VM which freezed the whole machine and a hard reboot was necessary.  Is there a way to make VirtualBox work with the latest kernels?  EDIT:  As suggested by N0rbert, the command:  apt-cache policy `dpkg -S VirtualBox | head -n1 | sed -e 's/://g' | awk '{print $1}'`  gives:   virtualbox-qt:   Installed: 5.0.40-dfsg-0ubuntu1.16.04.2   Candidate: 5.0.40-dfsg-0ubuntu1.16.04.2   Version table:  *** 5.0.40-dfsg-0ubuntu1.16.04.2 500         500 http://fr.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages         100 /var/lib/dpkg/status      5.0.18-dfsg-2build1 500         500 http://fr.archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages   EDIT (on 29-Mar-2018): Issue is resolved for me, with the Ubuntu Ubdate from today. I have seen that it had some virtualbox-updates, therefore I tried to boot with the most recent kernel again. Then I had to run  sudo apt-get --reinstall install virtualbox-dkms  And after this my virtual machines in VirtualBox started working without crashing the whole computer. Finally!
86542
My Ubuntu stalled while running Android's VirtualBox version, so I powered off the system. But after reset it stopped during this line:     Stopping User Manager for UID 121... _ So i googled it and have read  question and tried these steps:  Boot into Recovery Mode, drop to a root shell, and follow the steps below:   Run mount -o rw,remount / to mount the drive in Read-Write mode.Run sudo apt-get purge nvidia-* to purge the NVIDIA driver.You may also need to purge xserver-xorg and reinstall it, which will  require you to enable networking in Recovery.Reboot. You may have to add the nouveau.modeset=0 flag in GRUB to boot properly (Check my Q&amp;A for specifics).   You should be past the screen flicker and be at your desktop.  But in doing this step:  Now reinstall the NVIDIA drivers the proper way:sudo apt-get install  nvidia-367 (or 340, 352, 364, 370, whichever works).Reboot again.  I found i have not internet, and my WiFi is not in ifconfig list!!! By running :     Iw wlp2s0 scan   I get :  N180211 not found I also search for it and not understand why WiFi gone off. Now i thinking to use live USB of ubuntu to download NVIDIA and xserver-xorg and the install the by dpkg command during tty2. Update : in Ubuntu live i have this settings :  ubuntu@ubuntu:~$ sudo lshw -c video   *-display                         description: VGA compatible controller        product: HD Graphics 620        vendor: Intel Corporation        physical id: 2        bus info: pci@0000:00:02.0        version: 02        width: 64 bits        clock: 33MHz        capabilities: pciexpress msi pm vga_controller bus_master cap_list rom        configuration: driver=i915 latency=0        resources: irq:129 memory:a2000000-a2ffffff memory:b0000000-bfffffff ioport:6000(size=64) memory:c0000-dffff   *-display        description: 3D controller        product: GM108M [GeForce 920MX]        vendor: NVIDIA Corporation        physical id: 0        bus info: pci@0000:03:00.0        version: a2        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list        configuration: driver=nouveau latency=0        resources: irq:128 memory:a3000000-a3ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:3000(size=128)  and ubuntu@ubuntu:~$ sudo lshw -c display   *-display                         description: VGA compatible controller        product: HD Graphics 620        vendor: Intel Corporation        physical id: 2        bus info: pci@0000:00:02.0        version: 02        width: 64 bits        clock: 33MHz        capabilities: pciexpress msi pm vga_controller bus_master cap_list rom        configuration: driver=i915 latency=0        resources: irq:129 memory:a2000000-a2ffffff memory:b0000000-bfffffff ioport:6000(size=64) memory:c0000-dffff   *-display        description: 3D controller        product: GM108M [GeForce 920MX]        vendor: NVIDIA Corporation        physical id: 0        bus info: pci@0000:03:00.0        version: a2        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list        configuration: driver=nouveau latency=0        resources: irq:128 memory:a3000000-a3ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:3000(size=128)  and : ubuntu@ubuntu:~$  cat /etc/os-release NAME=&quot;Ubuntu&quot; VERSION=&quot;18.04.3 LTS (Bionic Beaver)&quot; ID=ubuntu ID_LIKE=debian PRETTY_NAME=&quot;Ubuntu 18.04.3 LTS&quot; VERSION_ID=&quot;18.04&quot; HOME_URL=&quot;https://www.ubuntu.com/&quot; SUPPORT_URL=&quot;https://help.ubuntu.com/&quot; BUG_REPORT_URL=&quot;https://bugs.launchpad.net/ubuntu/&quot; PRIVACY_POLICY_URL=&quot;https://www.ubuntu.com/legal/terms-and-policies/privacy-policy&quot; VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic  please consider the above three output has token form Ubuntu live flash system. What do you suggest and what do you think about reason of this failure? Also do you think it must be reported by me in ubuntu site, or it will be done automatically? Thanks.
27665
I'm running the current stable Ubuntu version (Oneiric) but have issues with the shipped kernel. Newer kernel versions seem to have fixed it, but the kernel-ppa/ppa does not contain the most recent kernel which is why I want to install the kernel from the next stable version (Precise). Since I want to be able to unload out of tree kernel modules, the mainline kernel from  cannot be used.  I also have have Virtual Box installed which also need to work in the new kernel so the "kernel headers" have to be upgraded as well.  How am I supposed to install the kernel packages from the next stable version (Precise) without upgrading all other packages?
25922
I am using a virtual machine to run Kali linux and when I run this command apt-get install -y dkms linux-headers-$(uname -r) it gives me this error:   E:Unable to locate package dkms E:Unable to lcoate package linux-headers-4.6.0-kali1-686-pae E:Couldn't find any package by glob 'linux-headers-4.6.0-kali1-686-pae' E:Couldn't find any package by regex 'linux-headers-4.6.0-kali1-686-pae'   The contents of the uname variable are:   4.6.0-kali1-686-pae   How can I fix this error, it is stopping me from following a tutorial. Any help is greatly appreciated :)
56870
I'm attempting to install VirtualBox inside of an offsite OpenVZ instance I got a good deal on. The point being to run a small Windows XP box for some kind of Windows Server.   Yes, it's an experiment. No, it's not for production.   It seems like everything would work fine, but the installer can't find my distro's sources. My instance has Debian 6 installed. Running uname -r gives me 2.6.32-042stab061.2. I've looked all through my apt-cache for anything similar, tried installing linux-sources-2.6.32 and a variety of linux-headers, but I'm having no luck.  Does anyone know how I can get the proper sources for this instance so VirtualBox can compile itself? Thanks.
34220
The error message is      This kernel requires an x86-64 CPU,but only detected an i686 CPU. Unable to boot - please use a kernel appropriate for your CPU.   How can I overcome this?
82808
I am running Ubuntu 14.04 from Windows, using virtualbox 5.0. I tried several options to make size of Ubuntu in virtual box larger, but none helped so far.   I am using latest virtual box with latest guest add on installed. sudo apt-get install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11 I went to Ubuntu 'software and Updates' and made sure that under 'Additional Drivers' tab, 'using x86 visualization solution...' is active. In virtualbox window, under view->virtual screen 1, all 'resize to' options are disabled.   None of these options helped. This is frustrating. Any comments or help? Can the problem be I am using 64 bit system? Does this problem occurs in earlier/later versions? If not, please suggest a 'good' version of Ubuntu for virtualbox.
117628
I'm trying to install the Debian ISO, debian-live-7.2-amd64-standard.iso into a virtual machine in VirtualBox but it just hangs.  I'm running this version:  $ virtualbox -h Oracle VM VirtualBox Manager 4.3.6_RPMFusion (C) 2005-2013 Oracle Corporation All rights reserved.
21747
I would like to know if anyone can help me with installing Ubuntu on VirtualBox
66512
I am doing experiments with few Linux kernels, also I want to keep all the kernels on my system; I don't want then to be removed automatically. how do I achieve that?  (NOTE: I have mounted /boot on separate 4GB partition so space is not an issue)
58955
I installed 64 bit Ubuntu 14.04 in my home PC and Virtual Box in it. But the real problem is V box only shows 32 bit OSes. I had a same problem in 12.04 also(and i didn't got a solution!). Is there any solution for that? I really need to install 64 bit windows as a VM. I use V Box version 4.3.10.
26137
I had installed VirtualBox but it started giving me problems. So I uninstalled it using:-  sudo apt-get remove virtualbox-\* sudo apt-get purge virtualbox-\*   But when I reinstalled VirtualBox it again resumed to previous settings and started giving same problems. How can i completely remove VirtualBox from my laptop and then reinstall it such that it wont give same problem again?
17799
I want to use VirtualBox but it is giving me the error VT-x/AMD-V hardware acceleration is not available on your system. And in the virtual box settings, I am not able to open accelerator tab as it's frozen:    Please give me a step-by=step guide on how to fix this.
51214
I can't use VirtualBox. When I tried to create a ubuntu in it, after powering the virtual box on it gives this as output. Failed to open a session for the virtual machine Ubuntu GNOME.     VT-x is disabled in the BIOS for all CPU modes   (VERR_VMX_MSR_ALL_VMX_DISABLED).      Result Code: NS_ERROR_FAILURE (0x80004005) Component: ConsoleWrap   Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}   Please help me fix this.
92763
I have been using VMWare on Windows for a long time. But after a long wait, I moved to VirtualBox on Ubuntu 11.10. I installed Ubuntu, 32 Bit, installed all available updates and installed Virtual Box. When I try to create a new Windows installation inside VirtualBox, I got the following error messages.  VirtualBox - Error  Failed to open a session for the virtual machine Windows XP. The virtual machine '**Windows XP**' has terminated unexpectedly during startup with exit code 1. Details  Result Code: NS_ERROR_FAILURE (0x80004005) Component: Machine Interface: IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91}   2nd error dialogue  Virtualbox - Error in suplibOsinit Kernal driver not installed (rc--1908) Please install the virtualbox-dkmbs package and execute 'modprobe vboxdrv' as root.    I have already tried reinstalling VirtualBox. Google result seem to indicate the the problem happens due to Kernel updates.   Is there anyway I can get this working? I need this for malware analysis and if VirtualBox is going to crash on me all the time, then I won't be able to use Ubuntu for work.  Output to dpkg -l | grep virtual   server rc  virtualbox                             4.1.2-dfsg-1ubuntu1                     x86 virtualization solution - base binaries rc  virtualbox-qt                          4.1.2-dfsg-1ubuntu1                     x86 virtualization solution - Qt based user interface  cute 'modprobe vboxdrv' as root.&lt;p&gt;
72894
After upgrading to 13.04 I am unable to start VMWorkstation. I get the following message:     Before you can run VMware, several modules must be compiled and loaded   into the running kernel.      Kernel Headers 3.8.0-19-generic      Kernel headers for version 3.8.0-19-generic were not found. If you   have installed them in a non-default path you can specify the path   below.   Does anyone have any idea what to do next?  Ubuntu 13.04 64bit  If I direct the path to:  /usr/src/linux-headers-3.8.0-19-generic   I get the following message:     C header files matching your running kernel were not found.   Thanks  Additional:  As suggested I run this in terminal:  cd /lib/modules/$(uname -r)/build/include/linux   sudo ln -s ../generated/utsrelease.h   sudo ln -s ../generated/autoconf.h   sudo ln -s ../generated/uapi/linux/version.h   However, now I get the following:      Before you can run VMware, several modules must be compiled and loaded into the kernel    CANCEL / INSTALL   I INSTALL, the window closes and nothing happens.... Any ideas?  ADDITIONAL:  I installed this:  sudo apt-get install open-vm-tools open-vm-tools-dev open-vm-dkms open-vm-toolbox open-vm-tools-dev   And it all launched...  Many thanks for the suggestions and help... This is what I love about Ubuntu... it has a great helpful community... !   Note: Also found this which may help others too:   ADDITIONAL ERROR:  Could not open /dev/vmmon: Is a directory. Please make sure that the kernel module `vmmon' is loaded.  Failed to initialize monitor device.  Monitor settings all greyed out  RESOLUTION:   Re-installation of Nvidia Drivers
88721
In the last 18 hours my Windows 7 Pro 64-bit machine has rebooted in response to the Windows Update applying patches.  Now I find when I try to start the VirtualBox Manager (not the actual VM's which the manager manages, I don't get that far) I get the message "\.\GLOBALROOT\SystemRoot\System32.dll is either not designed to run on Windows or it contains an error"    When I search for this file at %systemroot%\System32\crypy32.dll it doesn't exist.  It seems that the patching has wiped this file out ?  I have followed the advice from the dialog box of re-installing VirtualBox (both the version I was originally running and several later versions) but none of that helps (well actually I get different errors from the later versions but I would rather address this issue than wade into a other VirtualBox errors).  How can I most easily get a relevant copy of crypt32.dll ? I only have a recovery partition not the "original installation media".    EDIT: Good advice from @Bob. Unfortunately, it seems, I've used up all my System Restore points in trying to fix this earlier. I've put up another question asking what options I have :  .    EDIT: Here are the updates most recently applied to the machine in question: