[kata-dev] Regarding, Kata 2.0.0, kata-runtime

Fabiano Fidêncio fidencio at redhat.com
Mon Jan 4 07:37:33 UTC 2021


Sandeep,

[...]

> Trying version-1 syntax:          (for /usr/local/bin/containerd –config /etc/containerd/config.toml),
>
> # cat /etc/containerd/config.toml
> [plugins.cri.containerd]
>       no_pivot = false
>
>     [plugins.cri.containerd.runtimes]
>       [plugins.cri.containerd.runtimes.runc]
>          runtime_type = "io.containerd.runc.v1"
>
>          [plugins.cri.containerd.runtimes.runc.options]
>            NoPivotRoot = false
>            NoNewKeyring = false
>            ShimCgroup = ""
>            IoUid = 0
>            IoGid = 0
>            BinaryName = "runc"
>            Root = ""
>            CriuPath = ""
>            SystemdCgroup = false
>
>       [plugins.cri.containerd.runtimes.kata]
>          runtime_type = "io.containerd.kata.v2"
>           [plugins.cri.containerd.runtimes.kata.options]
>            ConfigPath = "/etc/kata-containers/configuration.toml"
>
>       [plugins.cri.containerd.runtimes.katacli]
>          runtime_type = "io.containerd.runc.v1"
>          [plugins.cri.containerd.runtimes.katacli.options]
>            NoPivotRoot = false
>            NoNewKeyring = false
>            ShimCgroup = ""
>            IoUid = 0
>            IoGid = 0
>            BinaryName = "/usr/local/bin/kata-runtime"
>            Root = ""
>            CriuPath = ""
>            SystemdCgroup = false
>

[...]

> /# ctr run --runtime io.containerd.run.kata.v2 -t --rm docker.io/library/busybox:latest sh
>
> ctr: Failed to check if grpc server is working: unexpected EOF: unknown
>
>
>
> I can discuss this Issue in, Kata AC call in 2021 on January 5th.

We can, but I think it may be easier to debug this via e-mail or Slack.
So, I'd like to ask you a few questions that will help me (and
hopefully others) to understand where the error is coming from.
* When you're using 2.x, you're only replacing the runtime binary, but
also the image and the agent inside it, right?
  - The reason I'm asking is because 2.x runtime doesn't speak the
same language as the 1.x agent.
* Is your agent built using musl or gnu libc?

If you want to give it a quick try just to ensure kata 2.0 works for
you before you start hacking the code, I'd suggest using
https://github.com/kata-containers/packaging/tree/master/kata-deploy

I hope that helps!

Best Regards,
-- 
Fabiano Fidêncio




More information about the kata-dev mailing list