Created
July 28, 2017 15:23
-
-
Save danisla/1e2d82586a88922eb1e4503282588cb1 to your computer and use it in GitHub Desktop.
Install PREEMPT kernel on GKE container-vm instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo bash | |
sudo apt-get update && sudo apt-get install -y build-essential libncurses5-dev bc | |
mkdir kernel && cd kernel | |
curl -LO http://http.us.debian.org/debian/pool/main/l/linux/linux-source-3.16_3.16.43-2+deb8u2_all.deb | |
dpkg -i linux-source-3.16_3.16.43-2+deb8u2_all.deb | |
cd /usr/src/ | |
tar xpf linux-source-3.16.tar.xz | |
cd linux-source-3.16 | |
cp /boot/config-3.16.*-amd64 .config | |
sed -i -e 's/CONFIG_PREEMPT_NONE=y/\# CONFIG_PREEMPT_NONE is not set/g' -e 's/\# CONFIG_PREEMPT is not set/CONFIG_PREEMPT=y/g' .config | |
make menuconfig | |
make -j$(nproc) && make modules -j$(nproc) | |
make modules_install | |
make install | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment