Linux system kernel Upgrade instance

Source: Internet
Author: User

Background introduction:

Install Docker in a Redhat/centos environment. Official documentation requires at least 3.8 Linux kernel, and Docker can only run on a 64-bit system. Since the kernel version of RHEL6 and CentOS6 is 2.6, the kernel must be upgraded first

Operation Step 郰:

(1) Yum installs 3.10 cores with AUFS module

[[email protected] ~]# uname-r2.6.32-573.el6.x86_64[[email protected] ~]# Cd/etc/yum.repos.d[[email protected] yum.repos.d]# wget http://www.hop5.in/yum/el6/hop5.repo[[email protected] yum.repos.d]# Yum install Kernel-ml-aufs Kernel-ml-aufs-devel

(2) Modify the Grub Master Profile/etc/grub.conf, set default=0 to indicate that the content under the first title is the default startup kernel (typically the newly installed kernel is in the first position)

[[email protected] ~]# vim /etc/grub.conf# grub.conf generated by  Anaconda## note that you do not have to rerun grub after  making changes to this file# notice:  you have a /boot  partition.  This means that#           all kernel and initrd paths are relative to /boot/, eg.#           root  (hd0,0) #           kernel /vmlinuz-version ro root=/dev/sda3#           initrd /initrd-[generic-]version.img#boot=/dev/sdadefault=1                 # #设置default = 0, which indicates that the content under the first title is the default boot kernel (typically a newly installed internalNucleus in first position) timeout=5splashimage= (hd0,0)/grub/splash.xpm.gzhiddenmenutitle centos  (3.10.5-3.el6.x86_64)         root  (hd0,0)          kernel /vmlinuz-3.10.5-3.el6.x86_64 ro root=uuid=014d414a-2fad-41ca-b7b3-c10fbe3a53b8  rd_no_luks rd_no_lvm lang=en_us. utf-8 rd_no_md sysfont=latarcyrheb-sun16 crashkernel=auto  keyboardtype=pc  keytable=us rd_no_dm rhgb quiet        initrd / initramfs-3.10.5-3.el6.x86_64.imgtitle centos 6  (2.6.32-573.el6.x86_64)          root  (hd0,0)         kernel / Vmlinuz-2.6.32-573.el6.x86_64 ro root=uuid=014d414a-2fad-41ca-b7b3-c10fbe3a53b8 rd_no_luks  rd_no_lvm lang=en_us. Utf-8 rd_no_md sysfont=latarcyrheb-sun16 crashkernel=auto  keyboardtype=pc keytable=us rd_no_dm rhgb quiet         initrd /initramfs-2.6.32-573.el6.x86_64.img

(3) Rebooting the system

[[email protected] ~]# uname-r3.10.5-3.el6.x86_64[[email protected] ~]# grep aufs/proc/filesystemsnodev aufs

The above two cases show that the kernel upgrade is successful, also support Aufs

This article is from the "it--Brother" blog, please make sure to keep this source http://402753795.blog.51cto.com/10788998/1785690

Linux system kernel Upgrade instance

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.