-
Notifications
You must be signed in to change notification settings - Fork 669
Support for display with vz driver #1597
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
Conversation
69a39e8
to
f9b6dfb
Compare
cmd/limactl/hostagent.go
Outdated
@@ -32,6 +33,10 @@ func newHostagentCommand() *cobra.Command { | |||
} | |||
|
|||
func hostagentAction(cmd *cobra.Command, args []string) error { | |||
//Without this the call to vz.StartGUI fails. Adding it here, as this has to be called before the vz cgo loads. | |||
runtime.LockOSThread() | |||
defer runtime.UnlockOSThread() |
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.
Can we do this only for vz mode?
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.
I tried options, but unfortunately could find a way to make it work.
If i move this inside hostagent it will start to panic, because once within hostagent the vz cgo and all were loaded. So only if i add before cgo loads it works else ending up in panic.
I will try to add a limayaml check directly here and see if that works
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.
Done the changes. Now it should impact only vz driver with display="vz"
Sending if hostagent need to run a sync ui as a command arg. In start.go deciding if we need to run a gui based on driver.
Do check it out and let me know if you have any feedback :)
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.
Thanks
Signed-off-by: Balaji Vijayakumar <[email protected]>
fixes #1165