-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TDX: Ensure Kata Containers can run on the main distros that have TDX support #9590
Comments
/cc @chavafg |
I have the very same situation with the GPU support. I need to run some workloads with 5.x kernels and some with 6.x kernels, both for SNP and TDX. This means that I currently have 3 different branches I am working off, and keeping them all in sync with the same feature set regarding the GPU is a huge pain. |
My proposal is to focus on what the distros have, rather than in any kernel that's not yet upstreamed / close to.
For TDX, I'd be focusing on "whatever" is in Ubuntu 24.04 and CentOS 9 Stream TDX SIG. Those 2 cases are quite close to 6.8 / 6.9 host kernels, plus TDX patches the distros are dealing with.
Actually, a release would look like NO QEMU / OVMF packaged. Just different configurations, like: Let me know if I was able to answer all your questions. |
Thinking a little bit better about this, we don't need extra configuration files, we just need to properly adjust the path for the distro QEMU / OVMF in a dummy configuration-qemu-tdx. |
In the Kata Containers AC meeting held on May 7th, we agreed with this approach. |
Just to confirm this - and apologise that I didn't update this with that outcome like I intended. |
This is the first step of the work to start relying on the artefacts coming from the distros (CentOS 9 Stream, and Ubuntu) themselves. Let's have this first one merged, as this will not run the CI due to the changes being on the yaml itself, and then follow-up with the changes needed on other parts of the project (kata-deploy, runtime, etc). Fixes: kata-containers#9590 -- part I Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
Let me start saying that this issue here is a mix of a braindump, with an ask for help. :-)
Intel has been collaborating with OSVs (Canonical, Red Hat, SUSE) in order to have TDX available on the host side in a way it can be easily used. On our CI, we've been using Ubuntu (from Canonical) or CentOS 9 Stream (from Red Hat), and I hope we'd be able to get one machine for each at some point.
However, distros have their own pace, they ship their own host kernel, and with a specific host kernel there are changes on what QEMU can and will support, together with the command line to be used with it, leading me to open this issue.
While I know that Kata Containers currently does not support any distro, and has zero distro specific code in its codebase, I'm wondering whether we could:
This is not a beautiful approach, and ideally should be dropped as soon as the host kernel patches land upstream and distros adopt it. However, till it happens we really are looking for a way to provide users the ability to try Kata Containers for their specific distro.
While on this, another possible approach would be to rely on the host side components coming from the distro themselves, avoiding us to build QEMU TDX and TDVF. This would simplify things a little bit, but we'd still be on the same boat of having to adapt the QEMU command line according to the distro, and possibly also binary locations.
I'd like to start this conversation here and understand where the community (and the @kata-containers/architecture-committee) stand on this, allowing us to push Kata Containers (and Confidential Containers) to be used in the best possible way, by the maximum amount of distros we can support.
The text was updated successfully, but these errors were encountered: