diff --git a/src/cmd/linuxkit/run_hyperkit.go b/src/cmd/linuxkit/run_hyperkit.go index 35a0d7deb..c684158c2 100644 --- a/src/cmd/linuxkit/run_hyperkit.go +++ b/src/cmd/linuxkit/run_hyperkit.go @@ -57,6 +57,9 @@ func runHyperKit(args []string) { isoBoot := flags.Bool("iso", false, "Boot image is an ISO") kernelBoot := flags.Bool("kernel", false, "Boot image is kernel+initrd+cmdline 'path'-kernel/-initrd/-cmdline") + // Hyperkit settings + consoleToFile := flags.Bool("console-file", false, "Output the console to a tty file") + // Paths and settings for UEFI firmware // Note, the default uses the firmware shipped with Docker for Mac fw := flags.String("fw", "/Applications/Docker.app/Contents/Resources/uefi/UEFI.fd", "Path to OVMF firmware for UEFI boot") @@ -197,6 +200,10 @@ func runHyperKit(args []string) { log.Fatalln("Error creating hyperkit: ", err) } + if *consoleToFile { + h.Console = hyperkit.ConsoleFile + } + for i, d := range disks { id := "" if i != 0 {