Monday Jan 21, 2013

oracle linux playground channel sample

If you have a system with Oracle Linux 6 installed but you are not using public-yum, and you want to play with our mainline kernel builds from the playground channel, then you need to create a simple, small yum repo file and you are all set.

Some reasons could be that your system is configured for a local yum repository for updates, or you are registered directly with ULN.

Either way, a very simple example file can be found here. Just put the file in /etc/yum.repos.d.

# cat /etc/yum.repos.d/playground.repo 
[ol6_playground]
name=Oracle Linux mainline kernel playground $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/playground/latest/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=1

Once this file exists, you can use yum to install the new kernels. At time of writing, this is kernel-3.7.2-3.7.y.20130115.ol6.x86_64. Just go look in the directory to see which kernels have been published and pick the one you want to install. As you can see source, binary, devel, debug, headers, firmware and doc versions of the packages are there.

# yum install kernel-3.7.2-3.7.y.20130115.ol6.x86_64
Loaded plugins: refresh-packagekit, rhnplugin, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package kernel.x86_64 0:3.7.2-3.7.y.20130115.ol6 will be installed
--> Processing Dependency: kernel-firmware = 3.7.2-3.7.y.20130115.ol6 
      for package: kernel-3.7.2-3.7.y.20130115.ol6.x86_64
--> Running transaction check
---> Package kernel-firmware.noarch 0:2.6.32-279.19.1.el6 will be updated
---> Package kernel-firmware.noarch 0:3.7.2-3.7.y.20130115.ol6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package           Arch     Version                      Repository        Size
================================================================================
Installing:
 kernel            x86_64   3.7.2-3.7.y.20130115.ol6     ol6_playground    24 M
Updating for dependencies:
 kernel-firmware   noarch   3.7.2-3.7.y.20130115.ol6     ol6_playground   997 k

Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade       1 Package(s)

Total download size: 25 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): kernel-3.7.2-3.7.y.20130115.ol6.x86_64.rpm  
                                      |  24 MB     00:18     
(2/2): kernel-firmware-3.7.2-3.7.y.20130115.ol6.noarch.rpm   
                                      | 997 kB     00:00     
--------------------------------------------------------------
Total                                                             
                             1.3 MB/s |  25 MB     00:19     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : kernel-firmware-3.7.2-3.7.y.20130115.ol6.noarch            
                                1/3 
  Installing : kernel-3.7.2-3.7.y.20130115.ol6.x86_64                      
                                2/3 
  Cleanup    : kernel-firmware-2.6.32-279.19.1.el6.noarch                   
                                3/3 
  Verifying  : kernel-firmware-3.7.2-3.7.y.20130115.ol6.noarch                     
                                1/3 
  Verifying  : kernel-3.7.2-3.7.y.20130115.ol6.x86_64                             
                                2/3 
  Verifying  : kernel-firmware-2.6.32-279.19.1.el6.noarch                          
                                3/3 

Installed:
  kernel.x86_64 0:3.7.2-3.7.y.20130115.ol6                                                                    

Dependency Updated:
  kernel-firmware.noarch 0:3.7.2-3.7.y.20130115.ol6                                                           

Complete!
Now just a simple reboot and you are all set.

Tuesday Nov 27, 2012

Introducing the Oracle Linux Playground yum repo

We just introduced a new yum repository/channel on http://public-yum.oracle.com called the playground channel. What we started doing is the following:

When a new stable mainline kernel is released by Linus or GregKH, we internally build RPMs to test it and do some QA work around it to keep track of what's going on with the latest development kernels. It helps us understand how performance moves up or down and if there are issues, we try to help look into them and of course send that stuff back upstream. Many Linux users out there are interested in trying out the latest features but there are some potential barriers to do this.

(1) in general, you are looking at an upstream development distribution, which means that everything changes both in userspace(random applications) and kernel. Projects like Fedora are very useful and someone that wants to just see how the entire distribution evolves with all the changes, this is a great way to be current. A drawback here, though, is that if you have applications that are not part of the distribution, there's a lot of manual work involved or they might just not work because the changes are too drastic. The introduction of systemd is a good example.

(2) when you look at many of our customers, that are interested in our database products or applications, the starting point of having a supported/certified userspace/distribution, like Oracle Linux, is a much easier way to get your feet wet in seeing what new/future Linux kernel enhancements could do.

This is where the playground channel comes into play. When you install Oracle Linux 6 (which anyone can download and use from http://edelivery.oracle.com/linux), grab the latest public yum repository file http://public-yum.oracle.com/public-yum-ol6.repo, put it in /etc/yum.repos.d and enable the playground repo :

[ol6_playground_latest]
name=Latest mainline stable kernel for Oracle Linux 6 ($basearch) - Unsupported 
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/playground/latest/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=1
Now, all you need to do : type yum update and you will be downloading the latest stable kernel which will install cleanly on Oracle Linux 6. Thus you end up with a stable Linux distribution where you can install all your software, and then download the latest stable kernel (at time of writing this is 3.6.7) without having to recompile a kernel, without having to jump through hoops.

There is of course a big, very important disclaimer this is NOT for PRODUCTION use.

We want to try and help make it easy for people that are interested, from a user perspective, where the Linux kernel is going and make it easy to install and use it and play around with new features. Without having to learn how to compile a kernel and without necessarily having to install a complete new distribution with all the changes top to bottom.

So we don't or won't introduce any new userspace changes, this project really is around making it easy to try out the latest upstream Linux kernels in a very easy way on an environment that's stable and you can keep current, since all the latest errata for Oracle Linux 6 are published on the public yum repo as well. So one repository location for all your current changes and the upstream kernels. We hope that this will get more users to try out the latest kernel and report their findings. We are always interested in understanding stability and performance characteristics.

As new features are going into the mainline kernel, that could potentially be interesting or useful for various products, we will try to point them out on our blogs and give an example on how something can be used so you can try it out for yourselves.

Anyway, I hope people will find this useful and that it will help increase interested in upstream development beyond reading lkml by some of the more non-kernel-developer types.

About

Wim Coekaerts is the Senior Vice President of Linux and Virtualization Engineering for Oracle. He is responsible for Oracle's complete desktop to data center virtualization product line and the Oracle Linux support program.

You can follow him on Twitter at @wimcoekaerts

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today