README.md 4.4 KB
Newer Older
1 2
Alibaba Cloud Kernel
====================
C
Caspar Zhang 已提交
3

C
Caspar Zhang 已提交
4
+ [中文版](zh/README.md)
C
Caspar Zhang 已提交
5

C
Caspar Zhang 已提交
6 7
Table of Contents
-----------------
8
1. [What is Alibaba Cloud Kernel](#1-what-is-alibaba-cloud-kernel)
C
Caspar Zhang 已提交
9 10 11 12 13 14 15 16 17 18 19
2. [Getting Started](#2-getting-started)
   1. [Run with pre-built RPMs (recommended)](#21-run-with-pre-built-rpms-recommended)
   2. [Compile from source](#22-compile-from-source)
3. [Contributing](#3-contributing)
4. [Credits](#4-credits)
5. [License](#5-license)
6. [Contact Us](#6-contact-us)

---------------------------------


20
## 1. What is Alibaba Cloud Kernel
C
Caspar Zhang 已提交
21

22
Alibaba Cloud Kernel(a.k.a. the "Cloud Kernel"), a customized and optimized version of Linux kernel, is originated by Alibaba Operating System Team (formerly known as Taobao Kernel Team). Cloud Kernel is installed as the default kernel in Alibaba Cloud Linux OS version 2 (or Aliyun Linux 2), which is running on Alibaba Cloud Elastic Compute Service (ECS) product. In Cloud Kernel, several features and enhancements adapted to specific Alibaba Cloud infrastructre and products have been made to help Alibaba Cloud customers to achieve better user experiences.
C
Caspar Zhang 已提交
23

24
Like many other kernels, Cloud Kernel should work with almost all commonly-used Linux distributions, however, we highly recommend you run it in Alibaba Cloud Linux OS with Alibaba Cloud ECS instances to get best functionality, performance and stability.
C
Caspar Zhang 已提交
25 26 27 28 29

To get more information about Alibaba Cloud Linux OS, please refer to [this](os.md) link.

## 2. Getting Started

30
To use Cloud Kernel, you may want either to run a pre-built version or to compile it from source codes. Note that the default kernel configuration file is a customized version for Alibaba Cloud ECS instances, you might need to enable specific drivers and re-compile the kernel if you want to run it on non-ECS platforms.
C
Caspar Zhang 已提交
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58

### 2.1 Run with pre-built RPMs (recommended)

Installing from YUM source repo is the most recommended way:

+ Step 1: Create a new YUM repo file:

```shell
sudo vim /etc/yum.repos.d/alinux-2.1903-plus.repo
```

+ Step 2: Fill repository information into the repo file:

```shell
[plus]
name=Alibaba Cloud Linux 2.1903 Plus Software Collections
baseurl=http://mirrors.aliyun.com/alinux/2.1903/plus/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/alinux/RPM-GPG-KEY-ALIYUN
```

+ Step 3: Install the kernel:

```shell
sudo yum install -y kernel kernel-devel kernel-headers
```

59
+ Step 4: Reboot system and enjoy Cloud Kernel.
C
Caspar Zhang 已提交
60 61 62 63 64 65 66

### 2.2 Compile from source

+ Step 1: Fetch kernel source:
  + Download from [Releases](https://github.com/alibaba/cloud-kernel/releases) page for a stable release and extract the source;
  + Or clone from the project repo: `git clone git@github.com:alibaba/cloud-kernel.git`.

C
Caspar Zhang 已提交
67
+ Step 2: Fetch a [default kernel config](https://github.com/alibaba/cloud-kernel/blob/configs/config-4.19.y-x86_64) from `configs` branch and rename it to `.config`, then copy it to the top of kernel source directory;
C
Caspar Zhang 已提交
68 69 70 71 72 73 74 75 76 77 78

+ Step 3: Compile and install kernel via the following commands:

```shell
make oldconfig
make -jN # N normally refers to the CPU core numbers on the system
make modules -jN
sudo make modules_install
sudo make install
```

79
+ Step 4: Reboot system and enjoy Cloud Kernel.
C
Caspar Zhang 已提交
80 81 82

## 3. Contributing

83
There are different ways to contribute to Cloud Kernel project, please read [CONTRIBUTING](CONTRIBUTING.md) file to get more details.
C
Caspar Zhang 已提交
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100

## 4. Credits

A full list of contributors from teams and individuals inside and out of Alibaba Group could be found in [CREDITS](CREDITS.md) file. And special thanks would be given to:
+ [CentOS project](https://www.centos.org/);
+ [Clear Linux project](https://clearlinux.org/);
+ [Intel 0-Day (LKP) project](https://01.org/lkp);
+ [Kata Containers project](https://katacontainers.io/);
+ [Linux kernel project](https://www.kernel.org/).

## 5. License

We use the same license as the upstream does, so please refer to the [COPYING](COPYING) file.

## 6. Contact Us

+ Join the [mailing list discussions](MAILLIST.md);
C
Caspar Zhang 已提交
101 102 103
+ Join the IRC channel `#anolis-linux` on FreeNode;
+ Join the DingTalk chat group: `23149462`;
+ Send us an E-mail to [os@openanolis.org](mailto:os@openanolis.org).
C
Caspar Zhang 已提交
104

C
Caspar Zhang 已提交
105
------------------------
C
Caspar Zhang 已提交
106

C
Caspar Zhang 已提交
107
> Alibaba Cloud Linux OS and Cloud Kernel are sub-projects maintained by [OpenAnolis](http://openanolis.org) community, an open source operating system community and innovation platform.
C
Caspar Zhang 已提交
108
> The registered trademark Linux® is used pursuant to a sublicense from the Linux Foundation, the exclusive licensee of Linus Torvalds, owner of the mark on a world­wide basis.