CentOS 6.4 Kernel Upgrade (2.6.32-3.18.19)

Source: Internet
Author: User

The purpose of the upgrade is to run Docker on the CentOS6.4, the official recommended kernel version in 3.8.0 and above, so you download the source from the official Linux kernel website, compile their own

Installing the Software

Compile and install the new kernel, depending on the development environment and the development library

Yum grouplist//view installed and not installed package groups to determine if we have the appropriate development environment and development library installed;

Yum Groupinstall "Development tools"//typically installs these two package groups, which determines that you have all the tools you need to compile

Yum Install Ncurses-devel//You must do this to make *config this command execute correctly

Yum Install Qt-devel//If you don't have an X environment, this one can be used without

Yum install Hmaccalc zlib-devel binutils-devel elfutils-libelf-devel//need them when creating CentOS-6 kernels

compiling the kernelget and unzip the kernel source code, configure the compilation

go to http://www.kernel.org home, you can see there are stable, longterm and other versions, longterm is more stable than stable version, the president time update, so I chose 3.18.19

[Email protected] ~]# TAR-XF LINUX-3.18.19.TAR.XZ

[Email protected] ~]# CD linux-3.18.19

We set up a new compilation option on the basis of the system's original kernel configuration file, so copy it to the current directory, named. config

[Email protected] llinux-3.18.19]# cp/boot/config-2.6.32-358.el6.x86_64. config ( note in the directory of the unpacked package )

Sh-c ' Yes ' | Make Oldconfig '


##########################################################################################

##### #make Oldconfig will read the. config file in the current directory, and the option not found in the. config file prompts the user to fill in. Some documents describe the use of make memuconfig, which is to manually select the menu customization module as required, where we do not need. Make Oldconfig back up to. Config.old and generate a new. config file before generating a new. config.

###### (This command automatically compiles the sh-c ' yes ' from the previous OS module you installed | Make Oldconfig ')

##########################################################################################


Start compiling

[[email protected] linux-3.10.58]# make-j4 bzimage//Generate kernel file

[[email protected] linux-3.10.58]# MAKE-J4 modules//compile module

[[email protected] linux-3.10.58]# Make-j4 modules_install//Compile installation module

The number behind-J is the number of threads, which is used to speed up compilation, and the general experience is that the logical CPU fills that number, for example, with 8 cores, or-J8.

Installation

Make install


When actually running to this step, there is a

Modinfo:could not find module Vmware_balloon, but does not affect kernel installation, because the modules that vsphere requires are not compiled, to avoid this problem, you need to modify the. config file before make, add

Hypervisor_guest=y

Config_vmware_balloon=m


Modifying the Grub boot order

Vim/etc/grub.conf

Count the newly installed kernel in which location, starting with 0, and then setting the default to that number, generally the newly installed kernel is in the first position, so set default=0


Reboot

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/70/38/wKioL1W0f1HTXp2oAADa5XlEvYs787.jpg "title=" Xxx.png "alt=" Wkiol1w0f1htxp2oaada5xlevys787.jpg "/>


Here is a look at the Yum method upgrade that you can refer to below:

http://ljf.me/archives/use-yum-to-quickly-upgrade-centos-6-5-kernel-3-10-28/

This article is from the "Technical Achievement Dream" blog, please be sure to keep this source http://hxl2009.blog.51cto.com/779549/1678465

CentOS 6.4 Kernel Upgrade (2.6.32-3.18.19)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.