Check Customization status on Windows VM
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 763
- PR merge metrics
- No merged PRs in 30d
Description
I'm cloning Linux and Windows VMs from a template, using customization to add NIC, change IP, Hostname, ...
The deployment itself is working fine.
In my workflow I try to check if the new VM is ready to use.
As there is a customization running on it it can take a while.
My current method involves checking the VMs guest obj, and get the ip value.
So far this was working great with the Linux VMs, as they had no IP assigned during the customization run, and network was only started after the final reboot.
So checking the IP was reliable in this case to be sure that the system was up and running, and user can proceed logging in.
However the situation is different with Windows VMs.
It looks like even during the customization run they get an IP.
So my check will trigger this, and continues the workflow.
But this fails, as there will be a reboot or more involved, as customization is still running.
So to come to my actual query, is there a way I can get the status of the host customization from the VM obj, or any other obj?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the VM object and the host-customization status exposed by the VMware API, focusing on Windows behavior during customization and reboot. Check the pyvmomi API documentation and related VM guest-state properties; done means identifying a reliable status or wait condition that distinguishes completed customization from an IP appearing early.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100