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

Hyper-V extension: Check guest OS version before apply configuration. #3831

Merged
merged 4 commits into from
Sep 12, 2024

Conversation

sshilov7
Copy link
Member

@sshilov7 sshilov7 commented Sep 10, 2024

Summary of the pull request

This change adds a check for the guest OS platform and version in "apply configuration" operation for a Hyper-V VM. If VM is not a Windows VM 19041+ the operation will be aborted with "This operation is not supported for the guest OS" message.

We should disable configure environment operation in UI for VMs that don't support it. The work will be in a separate change. (This implementation of getting guest OS version requires the VM to be running, not good for UX where VMs are in a not running state)

Fix an off-by-one bug that was causing #3664.

References and relevant issues

#3662
#3663
#3664

Detailed description of the pull request / Additional comments

Validation steps performed

Tested with Windows and Ubuntu OS's.

PR checklist

@bbonaby bbonaby self-requested a review September 11, 2024 18:13
@bbonaby bbonaby self-requested a review September 12, 2024 18:53
@sshilov7 sshilov7 merged commit ca1ca04 into main Sep 12, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Environments reliability] Hyper-V Configuration error: The parameter is incorrect. (0x80070057)
3 participants