Skip to content
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

fix unclean stop for vz driver #1315

Merged
merged 1 commit into from
Jan 23, 2023
Merged

Conversation

balajiv113
Copy link
Member

@balajiv113 balajiv113 commented Jan 22, 2023

fixes #1313

Why this change ?
lima hostagent is terminating before the vm is fully stopped. Due to this there were disk corruptions.

This PR adds support for waiting for the state change to complete before closing hostagent

}

return nil
return errors.New("VZ CanRequestStop is not supported")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return errors.New("VZ CanRequestStop is not supported")
return errors.New("vz: CanRequestStop is not supported")

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

AkihiroSuda
AkihiroSuda previously approved these changes Jan 22, 2023
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

I guess we should make the next release very soon

@balajiv113
Copy link
Member Author

next release very soon

yes, i believe. This might even be the cause for factory-reset required for some cases.

Signed-off-by: Balaji Vijayakumar <[email protected]>
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda merged commit 249efd4 into lima-vm:master Jan 23, 2023
@balajiv113 balajiv113 deleted the vz-stop branch January 23, 2023 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running 'apt upgrade' breaks the VM
2 participants