Preface: Today, I'd better use more than 3.10 of the kernel to install Docker.
I. Environment
1.1 System Environment
[Email protected] kernels]# lsblsblk lsb_release [[email protected] kernels]# lsb_release-alsb Version:: Base -4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch: Printing-4.0-amd64:printing-4.0-noarchdistributor ID:CentOSDescription:CentOS Release 6.5 (Final) release:6.5c Odename:final
1.2 Current kernel version
Display all 259 possibilities? (Y or N) [Email protected] kernels]# more/proc/version Linux version 2.6.32-431.el6.x86_64 ([email protected]) (GCC version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)) #1 SMP Fri Nov 03:15:09 UTC 2013
Two. Installation
2.1 Get the high version kernel and unzip to/usr/src/kernels
Website: https://www.kernel.org/
Cd/root/softwget CD/USR/SRC/KERNELSTAR-XJVF/ROOT/SOFT/LINUX-3.10.87.TAR.XZ
2.2 Compiling & installing
A: Enter the kernel directory, execute make menuconfig modify the compilation configuration file
[[email protected] kernels]# cd linux-3.10.87/[[email protected] linux-3.10.87]# pwd/usr/src/kernels/linux-3.10.87[[email protected] linux-3.10.87]# make menuconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o hostcc scripts/kconfig/lxdialog/checklist.o hostcc scripts/kconfig/ lxdialog/inputbox.o hostcc scripts/kconfig/lxdialog/menubox.o hostcc scripts/kconfig/lxdialog/textbox.o HOSTCC scripts/kconfig/lxdialog/util.o hostcc scripts/kconfig/lxdialog/yesno.o hostcc scripts/kconfig/mconf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/zconf.lex.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/mconfscripts/kconfig/mconf kconfig## using defaults found in / boot/config-2.6.32-431.el6.x86_64#/boot/config-2.6.32-431.el6.x86_64:497:warning: symbol value ' m ' invalid for x86_intel_pstate/boot/config-2.6.32-431.el6.x86_64:565:warning: symbol value ' m ' invalid for pccard_nonstatic/boot/config-2.6.32-431.el6.x86_64:2730: warning: symbol value ' m ' invalid for mfd_wm8400/boot/config-2.6.32-431.el6.x86_ 64:2731:warning: symbol value ' m ' invalid for mfd_wm831x/boot/ config-2.6.32-431.el6.x86_64:2732:warning: symbol value ' m ' invalid for mfd_ wm8350/boot/config-2.6.32-431.el6.x86_64:2745:warning: symbol value ' m ' invalid for MFD_WM8350_I2C/boot/config-2.6.32-431.el6.x86_64:2747:warning: symbol value ' m ' Invalid for ab3100_cor
Note: Here my system is 64 bit, so choose 64-bit kernel
Then save, check the configuration file. config
[[Email protected] linux-3.10.87]# ls -al Total dosage 684drwxrwxr-x 23 Root root 4096 8 Month 20 14:39 .drwxr-xr-x. 4 www root 4096 8 month 20 14:16 Drwxrwxr-x 32 root root 4096 8 Month 17 11:52 archdrwxrwxr-x 3 root root 4096 8 Month 17 11:52 block-rw-r----- 1 root root 119834 8 Month 20 14:39 .config-rw-rw-r-- 1 root root 18693 8 Month 17 11:52 copying-rw-rw-r-- 1 root root 95317 8 Month 17 11:52 CREDITSdrwxrwxr-x 4 root root 4096 8 Month
B: Compile make all this step takes a long time and my side has about one hours
[[email protected] linux-3.10.87]# Pwd/usr/src/kernels/linux-3.10.87[[email protected] linux-3.10.87]# make all
C: Mounting Module
[email protected] linux-3.10.87]# make Modules_install
D: Execute make Install
[email protected] linux-3.10.87]# make installsh/usr/src/kernels/linux-3.10.87/arch/x86/boot/install.sh 3.10.87 Arch/x86/boot/bzimage system.map "/boot" ERROR:modinfo:could not find module xt_MARKERROR:modinfo:could Not the Find module Ipt_MASQUERADEERROR:modinfo:could not the Find module Iptable_natERROR:modinfo:could not the Find module nf_n AtERROR:modinfo:could not the Find module VmhgfsERROR:modinfo:could not the Find module vsockERROR:modinfo:could not find MO Dule vmware_balloonERROR:modinfo:could not find module Vmci[[email protected] linux-3.10.87]#
An error.
Not resolved temporarily
Reference article: http://blog.itpub.net/27771627/viewspace-1256552
http://smilejay.com/2013/11/kernel-install-error-could-not-find-module/
Linux Kernel kernel compilation