You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sysprep.ps1 script checks for the sysprep_succeeded.tag file, however the State.ini file is first updated with the correct state 2 minutes after the .tag file is written.
This means that the instance sometimes is shut down before it is finished sysprepping. This documentation explains where to look for the state. You can either check for it in the registry, or in the State.ini file mentioned above.
For now, the workaround is running GCESysprep with the no_shutdown parameter, checking the registry with a loop like this
Thanks for reporting @sofam ! The code checking sysprep_succeeded.tag has been around a while, and most likely needs to be modified to check the registry key instead. We will release new images this week, and a new sysprep package (and associated files) the following week, assuming our tests pass.
We have noticed lately that some builds with Packer are botched. A rebuild of the exact same .json works.
After some digging into the failed instances (over the SAC on Windows on GCP) we noticed that they weren't sysprepped correctly.
The
sysprep.ps1
script checks for thesysprep_succeeded.tag
file, however theState.ini
file is first updated with the correct state 2 minutes after the .tag file is written.This means that the instance sometimes is shut down before it is finished sysprepping.
This documentation explains where to look for the state. You can either check for it in the registry, or in the State.ini file mentioned above.
For now, the workaround is running GCESysprep with the no_shutdown parameter, checking the registry with a loop like this
The text was updated successfully, but these errors were encountered: