Jelajahi Sumber

LCOW: Additional flags for VHD boot

Signed-off-by: John Howard <jhoward@microsoft.com>
John Howard 8 tahun lalu
induk
melakukan
71328a7af5
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  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{