Skip to content

Instantly share code, notes, and snippets.

@ismaelrh
Last active January 17, 2018 13:28
Show Gist options
  • Save ismaelrh/de668ed25c7a2bc90c478da6d1f8c64a to your computer and use it in GitHub Desktop.
Save ismaelrh/de668ed25c7a2bc90c478da6d1f8c64a to your computer and use it in GitHub Desktop.
Solve freezing of Ubuntu 16.04 (kernel 4.13.0-26) with VBox

Fixing freeze at startup - VBox

After last Ubuntu 16.04 kernel update (4.13.0-26), Virtual Box stopped working correctly. When starting a virtual machine, the host stops completely. Here are the steps to solve it.

  1. Remove any previous virtualbox installation (VM's are kept): sudo apt-get remove virtualbox virtualbox-5.1
  2. Remove virtualbox-dkms: sudo apt-get remove virtualbox-dkms
  3. Add the Oracle repository
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian xenial contrib" >> /etc/apt/sources.list.d/virtualbox.list'
  1. Setup the keyring so to trust the updates from the repository:
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -

wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
  1. Install VBox 5.2 from Ubuntu Software Tool
sudo apt-get update
sudo apt-get install virtualbox-5.2
  1. Finally, run this command to update kernel modules
sudo /sbin/vboxconfig

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment