-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable GA serial port in QEMU as it is not used by GA #3148
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -920,11 +920,13 @@ func Cmdline(ctx context.Context, cfg Config) (exe string, args []string, err er | |
args = append(args, "-chardev", fmt.Sprintf("socket,id=%s,path=%s,server=on,wait=off", qmpChardev, qmpSock)) | ||
args = append(args, "-qmp", "chardev:"+qmpChardev) | ||
|
||
// virtserialport doesn't seem to work reliably: https://github.com/lima-vm/lima/issues/2064 | ||
// should go together with hostagent::New changes | ||
// Guest agent via serialport | ||
guestSock := filepath.Join(cfg.InstanceDir, filenames.GuestAgentSock) | ||
args = append(args, "-chardev", fmt.Sprintf("socket,path=%s,server=on,wait=off,id=qga0", guestSock)) | ||
args = append(args, "-device", "virtio-serial") | ||
args = append(args, "-device", "virtserialport,chardev=qga0,name="+filenames.VirtioPort) | ||
// guestSock := filepath.Join(cfg.InstanceDir, filenames.GuestAgentSock) | ||
// args = append(args, "-chardev", fmt.Sprintf("socket,path=%s,server=on,wait=off,id=qga0", guestSock)) | ||
// args = append(args, "-device", "virtio-serial") | ||
// args = append(args, "-device", "virtserialport,chardev=qga0,name="+filenames.VirtioPort) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the code is not needed lets delete it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm still using it in an on/off manner (with changes in hostagent.go), while working on QEMU support on Windows hosts. So, it is not 100% useless for sure. May be we can just dismiss this PR for now and I will later create some other more prepared with either removal or feature toggle. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we need an option to enable/disable this? You can also make this a draft, maybe others will find this change helpful. |
||
|
||
// QEMU process | ||
args = append(args, "-name", "lima-"+cfg.Name) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment is not clear. If it is needed to explain why the code is commented it can be removed with the commented code.