From a608ff0e7d3d1e1f322f449c1fd4595051164720 Mon Sep 17 00:00:00 2001 From: Salvador Fuentes Date: Mon, 16 Apr 2018 16:23:53 -0500 Subject: [PATCH] virtcontainers: Disable cpuset and cpumem Disable cpuset and cpumem constraints as this is not properly supported yet. If we add "cpuset_cpus" and "cpuset_mems" to the container.json, kata-runtime failed to start, so we need to disable them. Fixes: #221. Signed-off-by: Salvador Fuentes --- virtcontainers/kata_agent.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/virtcontainers/kata_agent.go b/virtcontainers/kata_agent.go index 8d734cbc73..d950758dac 100644 --- a/virtcontainers/kata_agent.go +++ b/virtcontainers/kata_agent.go @@ -588,6 +588,8 @@ func constraintGRPCSpec(grpcSpec *grpc.Spec) { grpcSpec.Linux.Resources.BlockIO = nil grpcSpec.Linux.Resources.HugepageLimits = nil grpcSpec.Linux.Resources.Network = nil + grpcSpec.Linux.Resources.CPU.Cpus = "" + grpcSpec.Linux.Resources.CPU.Mems = "" // Disable network namespace since it is already handled on the host by // virtcontainers. The network is a complex part which cannot be simply