当前位置:   article > 正文

Docker学习笔记03:linux操作系统内核升级_4.1.12-124.16.4.el6uek.x86_64

4.1.12-124.16.4.el6uek.x86_64

在安装Docker时,发现操作系统内核版本过低。因为Docker对操作系统的内核是有要求的,所以,在此记录一下内核升级过程。

  提前准备好:CentOS  6.10 ISO镜像文件或者Oracle Etnterpres Linux 6.10)ISO

 

系统要求:

Docker目前只能运行在64位平台上,并且要求内核版本不低于3.10,实际上内核越新越好,过低的内核版本容易造成功能不稳定。

用户可以通过如下命令检查自己的内核版本详细信息:

三个命令都可以查看,详情如下图:

配置yum源

创建文件上传目录以及挂载目录,上传iso文件到/root/linuxiso目录下.

进入yum源目录,备份原yum源配置:

创建新的本地yum源:

更新rpm包:

升级内核:

到/mnt/linuxiso/Packages,找到kernel-uek-4.1.12-124.16.4.el6uek.x86_64.rpm

内核包所依赖的包:

安装内核操作:

 

  1. [root@test Packages]# yum install -y kernel-uek-4.1.12-124.16.4.el6uek.x86_64.rpm
  2. Loaded plugins: security
  3. Setting up Install Process
  4. Examining kernel-uek-4.1.12-124.16.4.el6uek.x86_64.rpm: kernel-uek-4.1.12-124.16.4.el6uek.x86_64
  5. Marking kernel-uek-4.1.12-124.16.4.el6uek.x86_64.rpm as an update to kernel-uek-2.6.39-200.24.1.el6uek.x86_64
  6. Resolving Dependencies
  7. --> Running transaction check
  8. ---> Package kernel-uek.x86_64 0:4.1.12-124.16.4.el6uek will be installed
  9. --> Processing Conflict: kernel-uek-4.1.12-124.16.4.el6uek.x86_64 conflicts dracut < 004-303.0.3
  10. --> Restarting Dependency Resolution with new changes.
  11. --> Running transaction check
  12. ---> Package dracut.noarch 0:004-283.0.1.el6 will be updated
  13. --> Processing Dependency: dracut = 004-283.0.1.el6 for package: dracut-kernel-004-283.0.1.el6.noarch
  14. ---> Package dracut.noarch 0:004-411.0.1.el6 will be an update
  15. --> Running transaction check
  16. ---> Package dracut-kernel.noarch 0:004-283.0.1.el6 will be updated
  17. ---> Package dracut-kernel.noarch 0:004-411.0.1.el6 will be an update
  18. --> Finished Dependency Resolution
  19. Dependencies Resolved
  20. ===============================================================================================================================================================================================
  21. Package Arch Version Repository Size
  22. ===============================================================================================================================================================================================
  23. Installing:
  24. kernel-uek x86_64 4.1.12-124.16.4.el6uek /kernel-uek-4.1.12-124.16.4.el6uek.x86_64 145 M
  25. Updating:
  26. dracut noarch 004-411.0.1.el6 ol6_610 129 k
  27. Updating for dependencies:
  28. dracut-kernel noarch 004-411.0.1.el6 ol6_610 28 k
  29. Transaction Summary
  30. ===============================================================================================================================================================================================
  31. Install 1 Package(s)
  32. Upgrade 2 Package(s)
  33. Total size: 145 M
  34. Total download size: 157 k
  35. Downloading Packages:
  36. -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  37. Total 1.7 MB/s | 157 kB 00:00
  38. Running rpm_check_debug
  39. Running Transaction Test
  40. Transaction Test Succeeded
  41. Running Transaction
  42. Updating : dracut-004-411.0.1.el6.noarch 1/5
  43. Updating : dracut-kernel-004-411.0.1.el6.noarch 2/5
  44. Installing : kernel-uek-4.1.12-124.16.4.el6uek.x86_64 3/5
  45. Cleanup : dracut-kernel-004-283.0.1.el6.noarch 4/5
  46. Cleanup : dracut-004-283.0.1.el6.noarch 5/5
  47. Verifying : dracut-004-411.0.1.el6.noarch 1/5
  48. Verifying : kernel-uek-4.1.12-124.16.4.el6uek.x86_64 2/5
  49. Verifying : dracut-kernel-004-411.0.1.el6.noarch 3/5
  50. Verifying : dracut-004-283.0.1.el6.noarch 4/5
  51. Verifying : dracut-kernel-004-283.0.1.el6.noarch 5/5
  52. Installed:
  53. kernel-uek.x86_64 0:4.1.12-124.16.4.el6uek
  54. Updated:
  55. dracut.noarch 0:004-411.0.1.el6
  56. Dependency Updated:
  57. dracut-kernel.noarch 0:004-411.0.1.el6
  58. Complete!

修改默认启动内核:

下图中,0代表启动的时候,使用第1个版本的内核。

  1. # grub.conf generated by anaconda
  2. #
  3. # Note that you do not have to rerun grub after making changes to this file
  4. # NOTICE: You have a /boot partition. This means that
  5. # all kernel and initrd paths are relative to /boot/, eg.
  6. # root (hd0,0)
  7. # kernel /vmlinuz-version ro root=/dev/mapper/vg00-lvroot
  8. # initrd /initrd-[generic-]version.img
  9. #boot=/dev/sda
  10. default=0 --默认是1,这里修改为0
  11. timeout=5
  12. splashimage=(hd0,0)/grub/splash.xpm.gz
  13. hiddenmenu
  14. title CentOS 6 (4.1.12-124.16.4.el6uek.x86_64) --这里修改为升级后的内核版本号
  15. root (hd0,0)
  16. kernel /vmlinuz-2.6.32-696.el6.x86_64 ro root=/dev/mapper/vg00-lvroot rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg00/lvroot rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
  17. initrd /initramfs-2.6.32-696.el6.x86_64.img

 

 

最后,重启操作系统:

  1.  [root@test ~]# reboot                  #重启服务器
  2. [root@test ~]# uname -r                 #查看内核是否升级成功。

Docker学习ç¬è®°03ï¼linuxæä½ç³»ç»åæ ¸å级

如需iso文件,请留言。

 

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/80801
推荐阅读
相关标签
  

闽ICP备14008679号