inception/bin/switch_kernel.sh

21 lines
438 B
Bash
Executable File

#!/bin/bash
## Switch kernel from virtual to generic to use nested virtualization
# routine
sudo apt-get -y update
sudo apt-get -y upgrade
# install generic and reomve virtual kernel
sudo apt-get -y install linux-generic
sudo apt-get -y purge linux-virtual
sudo apt-get -y purge linux-image-`uname -r`
sudo apt-get -y purge linux-headers-`uname -r`
# cleanup
sudo apt-get -y autoremove
sudo apt-get -y autoclean
# reboot
sudo reboot