forked from kmesh-net/kmesh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kmesh-net#565 from Okabe-Rintarou-0/docs/enhance_k…
…ernel add document about using enhanced kernel
- Loading branch information
Showing
3 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Use Enhanced Kernel in Kmesh | ||
|
||
Some features of kmesh depend on enhanced kernel (e.g., L7 traffic control in ads mode). To utilize it, you can use `openEuler 23.03`, which natively supports all features. | ||
|
||
You can follow the steps below to use enhanced kernel: | ||
|
||
+ Download `openEuler 23.03` image on: https://repo.openeuler.org/openEuler-23.03/ISO/. | ||
+ Install the operation system: Here, we take [VMware](https://www.vmware.com/products/workstation-pro/html.html) for example (you can also use other VM management tools). | ||
|
||
![](./pics/install_openEuler.png) | ||
|
||
Notice that `openEuler 23.03`'s kernel version is **6.1.19**. So you should select `其他 Linux 6.x 内核 64位`(`Linux 6.x kernel 64bit`). | ||
|
||
Then, you can follow the [official blog](https://www.openeuler.org/zh/blog/20240306vmware/20240306vmware.html) to install it. | ||
|
||
+ Install kernel headers: Kmesh determines whether the enhanced kernel is utilized according to some kernel headers(e.g., `bpf.h`). So, you should install kernel headers by: | ||
|
||
```shell | ||
yum install kernel-headers | ||
``` | ||
|
||
Then, you should be able to find the kernel headers in the path `/usr/include/linux`. | ||
|
||
+ Check whether you are ready to use enhanced kernel: | ||
|
||
```shell | ||
grep -q "FN(parse_header_msg)" /usr/include/linux/bpf.h && echo "enhanced" || echo "unenhanced" | ||
``` | ||
|
||
Now you can follow the [deploy and develop guide](./kmesh_deploy_and_develop_in_kind.md) to explore kmesh's full features. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.