From 573b73eb102568dac2033d80c64ddf03238690ab Mon Sep 17 00:00:00 2001 From: Fupan Li Date: Mon, 17 Dec 2018 07:07:08 +0000 Subject: [PATCH] katautils: fix the issue of shimv2 boot failed with vsock enabled shimv2 missed to enable vsock in KataAgentConfig. Fixes: #1037 Signed-off-by: Fupan Li --- pkg/katautils/config.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/katautils/config.go b/pkg/katautils/config.go index ffc5feda8b..204a3e5b3d 100644 --- a/pkg/katautils/config.go +++ b/pkg/katautils/config.go @@ -709,7 +709,10 @@ func updateConfig(configPath string, tomlConf tomlConfig, config *oci.RuntimeCon config.ProxyType = vc.KataBuiltInProxyType config.ShimType = vc.KataBuiltInShimType config.AgentType = vc.KataContainersAgent - config.AgentConfig = vc.KataAgentConfig{LongLiveConn: true} + config.AgentConfig = vc.KataAgentConfig{ + LongLiveConn: true, + UseVSock: config.HypervisorConfig.UseVSock, + } } return nil