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

Update provider/virtualbox to allow paused state when booting vm #13496

Merged

Conversation

allisonlarson
Copy link
Member

@allisonlarson allisonlarson commented Aug 29, 2024

When a virtualbox vm is booting initially, allow it to enter the :paused state and wait until a new state is entered or the boot_timeout is reached. This allows the GUI menu to be accessed and state selected before it errors, but to still error as expected if the outcome of the selection moves the vm to an invalid state. This matches how previous versions of virtualbox behaved, before the :paused state was introduced.

Also adds some simple tests for WaitForCommunicator, which came up as I was investigating different ways to address the issue

fixes #13410

Copy link
Member

@chrisroberts chrisroberts left a comment

Choose a reason for hiding this comment

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

This change looks great. Just one style nit in the tests, and I'll approve after since they get auto-dismissed on push.

Copy link
Member

@chrisroberts chrisroberts left a comment

Choose a reason for hiding this comment

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

Thanks!

@allisonlarson allisonlarson merged commit f977161 into hashicorp:main Sep 23, 2024
12 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow Virtualbox provider to tolerate a "paused" state for brief period of time
2 participants