integ/kata-containers/debian/patches/0001-patch-to-change-configuration-file.patch
David Liu 4c43daef8a Add kata containers support for Starlingx
With kata-community released kata containers runtime
binaries, guest vm kernel and images.

As in previous StarlingX 7.0 Debian and CentOS Release
we have kata container support which is from community
kata 1.x release.

To leverage the OS community effort with the latest kata
container version, need to utilize the prebuilt runtime
binaries, guest vm kernel and images, by default the
hypervisor is amd64-x86 qemu.

To provide the customization support for StarlingX, the
kata container default configuration file will be modified.

Test Plan:
PASS - Build kata-containers package
PASS - Build/install image on AIO-SX
PASS - Verify that the package is installed in the system
PASS - Verify that the kata-runtime env command could
       print correct environments information.
PASS - Verify that the kata-runtime check command print
       system is capable of running kata containers.
PASS - Verify that kubectl could create pod with kata
       containers runtime, and pod start successfully.

Story: 2010765
Task: 48073

Depends-On: https://review.opendev.org/c/starlingx/virt/+/885342

Change-Id: I7b8a0cab1e71e65291792b763ca801480648b511
Signed-off-by: David Liu <david.liu@windriver.com>
2023-12-04 11:58:54 +00:00

54 lines
2.3 KiB
Diff

From 02a4ab1606ec7df06a1a34d6be4c05654e2879ac Mon Sep 17 00:00:00 2001
From: David Liu <david.liu@windriver.com>
Date: Fri, 2 Jun 2023 02:27:27 -0400
Subject: [PATCH] patch to change configuration file
Signed-off-by: David Liu <david.liu@windriver.com>
---
.../defaults/kata-containers/configuration-qemu.toml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/opt/kata/share/defaults/kata-containers/configuration-qemu.toml b/opt/kata/share/defaults/kata-containers/configuration-qemu.toml
index d451b89..a23a85c 100644
--- a/opt/kata/share/defaults/kata-containers/configuration-qemu.toml
+++ b/opt/kata/share/defaults/kata-containers/configuration-qemu.toml
@@ -12,9 +12,9 @@
# XXX: Type: kata
[hypervisor.qemu]
-path = "/opt/kata/bin/qemu-system-x86_64"
-kernel = "/opt/kata/share/kata-containers/vmlinux.container"
-image = "/opt/kata/share/kata-containers/kata-containers.img"
+path = "/usr/bin/qemu-system-x86_64"
+kernel = "/var/opt/kata/share/kata-containers/vmlinux.container"
+image = "/var/opt/kata/share/kata-containers/kata-containers.img"
# initrd = "/opt/kata/share/kata-containers/kata-containers-initrd.img"
machine_type = "q35"
@@ -60,7 +60,7 @@ enable_annotations = ["enable_iommu"]
# Each member of the list is a path pattern as described by glob(3).
# The default if not set is empty (all annotations rejected.)
# Your distribution recommends: ["/opt/kata/bin/qemu-system-x86_64"]
-valid_hypervisor_paths = ["/opt/kata/bin/qemu-system-x86_64"]
+valid_hypervisor_paths = ["/usr/bin/qemu-system-x86_64"]
# Optional space-separated list of options to pass to the guest kernel.
# For example, use `kernel_params = "vsyscall=emulate"` if you are having
@@ -181,12 +181,12 @@ disable_block_device_use = false
shared_fs = "virtio-fs"
# Path to vhost-user-fs daemon.
-virtio_fs_daemon = "/opt/kata/libexec/virtiofsd"
+virtio_fs_daemon = "/usr/kata/libexec/virtiofsd"
# List of valid annotations values for the virtiofs daemon
# The default if not set is empty (all annotations rejected.)
# Your distribution recommends: ["/opt/kata/libexec/virtiofsd"]
-valid_virtio_fs_daemon_paths = ["/opt/kata/libexec/virtiofsd"]
+valid_virtio_fs_daemon_paths = ["/usr/kata/libexec/virtiofsd"]
# Default size of DAX cache in MiB
virtio_fs_cache_size = 0
--
2.29.2