Open Udayendu opened 2 years ago
@goneri @Akasurde @Tomorrow9
Any thoughts around this ?
Same problem here, when using customization against a Windows template :
customization
and network
parameters, the VM gets the same MAC as the template, and the NIC is marked as "disconnected", even when specifying start_connected: true
Very annoying, we are unable to use Ansible to deploy Woindows template atm. Seems to be still the same as https://github.com/ansible/ansible/issues/64774 ? I will try the suggested patch.
The patch from ansible issue 64774 works, the new VM now has a different MAC address, marked as "automatic" (not as manually attributed). I still have the issue about the NIC being disconnected at startup ; but about this problem, I can use vmware_guest_network afterwards.
Hello, I am running into this problem today and am having trouble finding a workaround with the available modules. I am targeting vCenter / ESXi 6.7.0
I've tried using a customisation spec which is configured in vCenter to give a DHCP address, and then attempt to apply a static IP config afterwards, but this has also not worked.
With two VM's being created, one VM was given a new MAC address but then the NIC was left disconnected at power on. When connecting the NIC, the IP details specified in the config had not been applied.
The second VM retained the MAC address from the template it was cloned from. The NIC was showing as online, but no customisation was performed.
Does this affect newer vCenter versions - v7 or v8? The plan is to use v8 in production, but the available test rig is only at 6.7 for now.
edit: I am testing a possible workaround of limiting the vm-builder playbook to use serial: 1
to only attempt a single build at a time.
Hello. This bug does not depend on the version of vСenter. The only workaround I found was to patch the module and use it instead of the original one.
Thanks Zawullon, I will give that a try.
I've so far spun up 4 VM's in sequential fashion with the serial: 1
playbook parameter. Fortunately this is working for my requirement as I do not need to build a lot of VM's in one go and singular builds will be fine, but I will have a go with a patched module as a parallel deployment would be preferable if I can get it working.
I was able to create four VM's in one batch, with NIC customisations successfully applied, after making the changes in the patch referenced in the old ansible repository.
I've created a pull request linked to this issue to see if this helps implement the fix into the community modules here.
Thanks @andyeff for the patch. Will test and update you.
For windows template, when I am making the template I am not adding any nic. And in that case there is no issue if I am trying to map multiple nics using ansible.
vSphere: 7.x ansible: 2.13.11 community.vmware: 3.9.0
We are also affected by this issue and and would love to see this pull-request merged, but the automated checks seem stuck instead of failed. Is there a way to get this rolling again?
Also affected by this issue
Waiting for #1716 merge
Hi,
we are also affected by this issue. It would be nice if https://github.com/ansible-collections/community.vmware/pull/1716 could be merged.
Hi,
we are also affected by this issue.
It would be awesome if the fix in https://github.com/ansible-collections/community.vmware/pull/1716 could be merged.
SUMMARY
vmware_guest
is not able to handle the MAC distribution while doing the deployment of multiple vms from the same template. Its duplicating the MAC and as a result vms are not getting the IP as the nics are not getting attached.ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS