Skip to content

Access guest console when it is running #48

@praveenkumar

Description

As of now we

vfkit/pkg/vf/virtio.go

Lines 272 to 276 in c9a4b08

if dev.UsesStdio {
if err := setRawMode(os.Stdin); err != nil {
return err
}
serialPortAttachment, err = vz.NewFileHandleSerialPortAttachment(os.Stdin, os.Stdout)
connects the VM serial output to the stdin/stdout of the terminal where vfkit is running but there is no way to connect to it so that we can access VM console even in case of no ssh connectivity.

https://developer.apple.com/documentation/virtualization/vzfilehandleserialportattachment?language=objc => this api allows bidirectional communication using file handles but we don't know how to consume it.

This is important for crc side to debug some of the issues when ssh connection is broken.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status

    Ready for review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions