浏览代码

LCOW: Additional flags for VHD boot

Signed-off-by: John Howard <jhoward@microsoft.com>
John Howard 8 年之前
父节点
当前提交
71328a7af5
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      libcontainerd/client_windows.go

+ 3 - 1
libcontainerd/client_windows.go

@@ -331,7 +331,9 @@ func (clnt *client) createLinux(containerID string, checkpoint string, checkpoin
 
 	if lcowOpt.Config.ActualMode == opengcs.ModeActualVhdx {
 		configuration.HvRuntime = &hcsshim.HvRuntime{
-			ImagePath: lcowOpt.Config.Vhdx,
+			ImagePath:          lcowOpt.Config.Vhdx,
+			BootSource:         "Vhd",
+			WritableBootSource: true,
 		}
 	} else {
 		configuration.HvRuntime = &hcsshim.HvRuntime{