[kata-dev] Running Kata with cc-agent

Boeuf, Sebastien sebastien.boeuf at intel.com
Mon Apr 23 21:49:23 UTC 2018

Hi Jesse,

You also have to hack the Makefile in order to make sure the runtime is gonna provide "clear-containers.target" as the target to execute from systemd. Because right now with kata, when using a simple make, you will end up with the target "kata-containers.target".

An alternative could be to hack the line https://github.com/kata-containers/runtime/blob/master/cli/create.go#L153 and replace "systemdUnitName" with "clear-containers.target".

From: Larrew, Jesse [Jesse.Larrew at amd.com]
Sent: Monday, April 23, 2018 2:27 PM
To: kata-dev at lists.katacontainers.io
Subject: [kata-dev] Running Kata with cc-agent

Hi all,

I suspect that something in the gRPC implementation isn't playing well with SEV memory encryption. For debugging purposes, I'm trying to run a Kata system in the host with cc-agent in the guest image. I've performed the following steps:
1. Build a Clear Linux image using osbuilder.
2. Install cc-agent in usr/bin and clear-containers.{service,target} in lib/system/system.
3. Remove kata-containers.{service, target} from lib/system/system.
4. Update configuration.toml and change [agent.kata] to [agent.hyperstart].
5. Run a busybox container via docker as a test.

After step 5, I get the following error from docker:

$ sudo docker run --rm=true -ti --runtime sev-runtime busybox sh
docker: Error response from daemon: OCI runtime create failed: AgentURL cannot be empty: unknown.

Is there another change that I need to make in order to use a hyperstart agent in the guest?

Alternatively, is there a way to disable gRPC for the kata-proxy <-> kata-agent communication channel?


kata-dev mailing list
kata-dev at lists.katacontainers.io

More information about the kata-dev mailing list