Open SilentT19 opened 3 years ago
Files identified in the description:
plugins/modules/vmware_guest.py
](https://github.com/['ansible-collections/amazon.aws', 'ansible-collections/community.aws', 'ansible-collections/community.vmware']/blob/main/plugins/modules/vmware_guest.py)If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
cc @Akasurde @Tomorrow9 @goneri @lparkes @nerzhul @pdellaert @pgbidkar @warthog9 click here for bot help
if win in guest_id but guest_id was not required if use template
"This field is required when creating a virtual machine, not required when creating from the template."
vCenter inventory output the guestid ?
Perhaps this problem https://github.com/ansible-collections/community.vmware/issues/75 is related too
@SilentT19 Thanks for reporting this issue. GuestID information is gathered using VMware Tools installed inside the VM. If VMware tools fail to detect or wrongly report the guest id then the module would misbehave. I am afraid that there is no other way to detect guest id.
Please try updating vmware tools in Guest OS.
I think that when we prepare and use a template, the guestOS is registered in the configuration of the template and it is cloned with the VM, Liked this
I think that we should use this parameter instead of that of the tools.
SUMMARY
When create VM with Windows template with customisation and without guest_id, the module send linux customisation
ISSUE TYPE
COMPONENT NAME
vmware_guest
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
OS : Windows
STEPS TO REPRODUCE
Simply use vmware_guest with windows template with customization
EXPECTED RESULTS
The VM was created with customisation and without error in vcenter
ACTUAL RESULTS