ソースを参照

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 {
 	if lcowOpt.Config.ActualMode == opengcs.ModeActualVhdx {
 		configuration.HvRuntime = &hcsshim.HvRuntime{
 		configuration.HvRuntime = &hcsshim.HvRuntime{
-			ImagePath: lcowOpt.Config.Vhdx,
+			ImagePath:          lcowOpt.Config.Vhdx,
+			BootSource:         "Vhd",
+			WritableBootSource: true,
 		}
 		}
 	} else {
 	} else {
 		configuration.HvRuntime = &hcsshim.HvRuntime{
 		configuration.HvRuntime = &hcsshim.HvRuntime{