Skip to content

Commit

Permalink
Merge pull request #18820 from jakecorrenti/add-console-to-mac-machine
Browse files Browse the repository at this point in the history
Add console mode to podman machine
  • Loading branch information
openshift-merge-robot authored Jun 20, 2023
2 parents cc023c0 + 65e5d27 commit 3907df6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/machine/applehv/vfkit.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ func getDefaultDevices(imagePath, logPath string) []string {
"virtio-net,nat,mac=72:20:43:d4:38:62",
fmt.Sprintf("virtio-blk,path=%s", imagePath),
fmt.Sprintf("virtio-serial,logFilePath=%s", logPath),
fmt.Sprintf("virtio-input,pointing"),
fmt.Sprintf("virtio-input,keyboard"),
fmt.Sprintf("virtio-gpu"),
}
return defaultDevices
}
Expand Down Expand Up @@ -68,6 +71,9 @@ func (vf *VfkitHelper) toCmdLine(cpus, memory string) []string {
// we can leave it as optional.
//"--log-level", "debug",
}
if vf.LogLevel == logrus.DebugLevel {
cmd = append(cmd, "--gui")
}
for _, d := range vf.Devices {
cmd = append(cmd, "--device", d)
}
Expand Down

0 comments on commit 3907df6

Please sign in to comment.