The Intel GPU support has been enabled in kata runtime, but the guest kernel of kata container lacks the support of Intel GPU, so this commit enables it as default in guest kernel. CONFIG_DRM, CONFIG_DRM_I915 and CONFIG_DRM_I915_USERPTR are necessary. Others are obtained by running command "make menuconfig" and selecting the following options. Device Drivers ---> Graphics support ---> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) Device Drivers ---> Graphics support ---> Intel 8xx/9xx/G3x/G4x/HD Graphics Fixes #232 Signed-off-by: Zhao Xinda <xinda.zhao@intel.com>
Build Kata Containers Kernel
This document explains the steps to build a compatible kernel with Kata Containers. To do this use build-kernel.sh, this script automates the process to build a kernel for Kata Containers.
Setup kernel source code
./build-kernel.sh setup
The script ./build-kernel.sh tries to apply the patches from
${GOPATH}/src/github.com/kata-containers/packaging/kernel/patches/ when it
sets up a kernel. If you want to add a source modification, add a patch on this
directory.
The script also adds a kernel config file from
${GOPATH}/src/github.com/kata-containers/packaging/kernel/configs/ to .config
in the kernel source code. You can modify it as needed.
Build the kernel
After the kernel source code is ready it is possible to build the kernel.
./build-kernel.sh build
Install the Kernel in the default path for Kata
Kata Containers uses some default path to search a kernel to boot. To install on this path, the following command will install it to the default Kata containers path.
./build-kernel.sh install