Skip to content

Commit

Permalink
katautils: disable template when vsock enabled
Browse files Browse the repository at this point in the history
Vsock conflicts with factory, when both of them are enabled,
kata will try to create a new vm template which is useless,
thus it's better to disable template to save a lot of time.

Fixes: kata-containers#1055

Signed-off-by: fupan <lifupan@gmail.com>
  • Loading branch information
lifupan committed Dec 19, 2018
1 parent bcf995b commit e363667
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/katautils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,14 @@ func updateRuntimeConfig(configPath string, tomlConf tomlConfig, config *oci.Run
}
config.FactoryConfig = fConfig

// vsock conflicts with factory, when both of them are enabled, kata will try
// to create a new vm template which is useless, thus it's better to disable
// template to save a lot of time.
if config.HypervisorConfig.UseVSock && config.FactoryConfig.Template {
kataUtilsLogger.Warn("vsock conflicts with factory, configure to not use it")
config.FactoryConfig.Template = false
}

config.NetmonConfig = vc.NetmonConfig{
Path: tomlConf.Netmon.path(),
Debug: tomlConf.Netmon.debug(),
Expand Down

0 comments on commit e363667

Please # to comment.