{"id":6427,"date":"2015-10-03T18:04:33","date_gmt":"2015-10-03T10:04:33","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=6427"},"modified":"2023-04-28T09:47:09","modified_gmt":"2023-04-28T09:47:09","slug":"switching-default-uek-kernel-to-redhat-kernel-on-oracle-linux-7","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/switching-default-uek-kernel-to-redhat-kernel-on-oracle-linux-7\/","title":{"rendered":"Switching Default UEK kernel to Redhat Kernel on Oracle Linux 7"},"content":{"rendered":"<h3>About the Unbreakable Enterprise Kernel (UEK)<\/h3>\n<p>In September 2010, Oracle announced the new Unbreakable Enterprise Kernel (UEK) for Oracle Linux as a recommended kernel for deployment with Oracle Linux 5.<\/p>\n<p>Starting with Oracle Linux 5.5, Oracle give you could choose to use either the Red Hat Compatible Kernel or the UEK.<\/p>\n<p>In Oracle Linux 5.6 and above, the UEK became the default kernel for Oracle Linux.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-6602 size-full lazyload\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2015\/10\/UEK-Kernel-to-Redhat-Kernel.jpg\" alt=\"Switching Default UEK kernel to Redhat Kernel\" width=\"800\" height=\"600\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2015\/10\/UEK-Kernel-to-Redhat-Kernel.jpg 800w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2015\/10\/UEK-Kernel-to-Redhat-Kernel-300x225.jpg 300w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2015\/10\/UEK-Kernel-to-Redhat-Kernel-768x576.jpg 768w\" data-sizes=\"(max-width: 800px) 100vw, 800px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 800px; --smush-placeholder-aspect-ratio: 800\/600;\" \/><\/p>\n<h3>Switching Default UEK kernel to Redhat Kernel on Oracle Linux 7<\/h3>\n<p>This article will describe how to Switching Default UEK kernel to Redhat Kernel on Oracle Linux 7 with the following steps :<\/p>\n<p>1. Original Kernel for Oracle Linux 7 will likely as below :<\/p>\n<pre># uname -a\nLinux localhost.localdomain 3.8.13-55.1.6.el7uek.x86_64 #2 SMP Wed Feb 11 14:18:22 PST 2015 x86_64 x86_64 x86_64 GNU\/Linux\n<\/pre>\n<p>2. Grep the list of the available kernel in Oracle Linux 7. The sequence of entry will start with 0.<\/p>\n<p>a) To display with command 1 :<\/p>\n<pre># egrep ^menuentry \/etc\/grub2.cfg | cut -f 2 -d \\'\nOracle Linux Server 7.1, with Linux 3.10.0-229.el7.x86_64\nOracle Linux Server 7.1, with Unbreakable Enterprise Kernel 3.8.13-55.1.6.el7uek.x86_64\nOracle Linux Server 7.1, with Linux 0-rescue-26ad0b77c2de4840ba8402282bdd9d17\n<\/pre>\n<p>b) To display with command 2 :<\/p>\n<pre># grep '^menuentry' \/boot\/grub2\/grub.cfg | cut -f 2 -d \\'\nOracle Linux Server 7.1, with Linux 3.10.0-229.el7.x86_64\nOracle Linux Server 7.1, with Unbreakable Enterprise Kernel 3.8.13-55.1.6.el7uek.x86_64\nOracle Linux Server 7.1, with Linux 0-rescue-26ad0b77c2de4840ba8402282bdd9d17\n<\/pre>\n<p>3. Set entry 0 as the default kernel with this command :<\/p>\n<pre># grub2-set-default 0\n# grub2-mkconfig -o \/etc\/grub2.cfg\nGenerating grub configuration file ...\nFound linux image: \/boot\/vmlinuz-3.10.0-229.el7.x86_64\nFound initrd image: \/boot\/initramfs-3.10.0-229.el7.x86_64.img\nFound linux image: \/boot\/vmlinuz-3.8.13-55.1.6.el7uek.x86_64\nFound initrd image: \/boot\/initramfs-3.8.13-55.1.6.el7uek.x86_64.img\nFound linux image: \/boot\/vmlinuz-0-rescue-26ad0b77c2de4840ba8402282bdd9d17\nFound initrd image: \/boot\/initramfs-0-rescue-26ad0b77c2de4840ba8402282bdd9d17.img\ndone\n<\/pre>\n<p>4. Reboot the server :<\/p>\n<pre># init 6\n<\/pre>\n<p>5. After reboot, verify that Red Hat Compatible Kernel will become the default :<\/p>\n<pre># uname -a\nLinux localhost.localdomain 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 04:05:24 PST 2015 x86_64 x86_64 x86_64 GNU\/Linux\n<\/pre>\n<p>I hope this article gives you some ideas and essential guidance on how to Switching Default UEK kernel to Redhat Kernel.<\/p>\n<p><strong>Note :<\/strong><br \/>\n*Do not edit the GRUB 2 configuration file directly. On BIOS-based systems, the configuration file is \/boot\/grub2\/grub.cfg. On UEFI-based systems, the configuration file is \/boot\/efi\/EFI\/redhat\/grub.cfg.<\/p>\n<p>*The grub2-mkconfig command generates the configuration file using the template scripts in \/etc\/grub.d and menu-configuration settings taken from the configuration file, \/etc\/default\/grub.<\/p>\n<p><a href=\"https:\/\/docs.oracle.com\/en\/operating-systems\/oracle-linux\/7\/admin\/\" target=\"_blank\" rel=\"nofollow noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>About the Unbreakable Enterprise Kernel (UEK) In September 2010, Oracle announced the new Unbreakable Enterprise Kernel (UEK) for Oracle Linux as a recommended kernel for deployment with Oracle Linux 5&#8230;.<\/p>\n","protected":false},"author":6,"featured_media":6602,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1020],"tags":[2018,1627],"class_list":["post-6427","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oracle-linux-7","tag-kernel","tag-oracle-linux-7"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/6427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=6427"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/6427\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/6602"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=6427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=6427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=6427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}