Skip to content

v2v: more windows firstboot robustness work - #6965

Open
crobinso wants to merge 6 commits into
autotest:masterfrom
crobinso:v2v-windows-firstboot-prep
Open

crobinso wants to merge 6 commits into
autotest:masterfrom
crobinso:v2v-windows-firstboot-prep

Conversation

@crobinso

Copy link
Copy Markdown
Collaborator

Previous round of windows firstboot flakyness fixing did not work. So here's another attempt.

Reworks how we handle firstboot timeout and basically just keeps spam re-attempts until the timeout expires, but with some simplifications and improvements along the way.

I'll throw this at our internal CI and see what happens

Comment thread provider/v2v/utils_v2v.py Resolved
Comment thread v2v/tests/src/function_test_esx.py Resolved
@crobinso
crobinso force-pushed the v2v-windows-firstboot-prep branch from 0dd9344 to eddc9e8 Compare November 13, 2026 18:23
We log it line by line right after this
VMChecker should reliably tell us when the VM has fully completed
firstboot. Move all console checks to after VMChecker, and drop
the remaining inline attempts at reboot detection
+ rename it to v2v_firstboot_timeout
+ have different timeout values for linux vs windows.
  windows has more reboots and takes longer
+ add some infra so that we tick down the timeout change across
  every login attempt, since for windows there can be many
In practice it does not seem like we can rely on this.
Instead just keep trying to reconnect until v2v_firstboot_timeout
expires
This let's us leverage libvirt+qemu to tell use when the guest
agent is configured and available. When virt-v2v is new enough,
this saves us from dropping into the network console until we know
the firstboot process is complete, by presence of the sentinel file
in the VM which we extract with qemu-guest-agent commands.

It also improves real world test coverage, since we are confirming
the guest agent is actually working.

Used only for windows guests for now but this is valid for linux too,
but that will need more testing.
The guest agent liveness check is a more useful check for this
@crobinso
crobinso force-pushed the v2v-windows-firstboot-prep branch from eddc9e8 to d3a3024 Compare November 14, 2026 20:28
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.

2 participants