I’m using Ansible Tower 3.8.2.
Ansible core is 2.9.15
I’m using the vmware_rest collection.
I’m able to get the linux VM created from a template. And the VM does poweron. But when it comes up the network adapter does not. It is in disconnected state.
My linux VM is RHEL 8.2
I see online that many folks have had this issue but I’m not seeing what the solution is for it.
Can anyone offer any tips that may help me solve this problem?
I had a similar issue with RHEL. I found that the image/template that I was using to build my VM was missing a perl module. I’ll have to check my notes for which module. Once I installed that module in my image template, it worked.
I now need to do the same and get windows VMs spun up. Would you mind sharing your playbook? I have a test environment and I would be willing to help troubleshoot your issue.
I have read about that issue in the forums regarding Perl and vmware tools on RHEL/ CentOS. As far as I know, Windows does not need Perl … ?
I read on a forum post that someone found a vDS was somehow at the root of this issue which is, of course, what I am using as the network. That
gentleman switched over to a simple vswitch which seemed to alleviate this issues.
Chris,
The only thing I’ve seen so far is that you want to make sure the template or image you are cloning has the latest version of vmware tools installed.
Still no dice. I made the changes but I seem to be getting hung-up on an ipv6 address assignment which makes no sense.
I am not using ipv6 and don’t have anything in the code either.
Yeah, for sure. I’ve double checked this a number of times.
Regarding the ipv6 info Ansible was spitting to stdout, my best guess is this is coming from the vm level. It does not appear to be interfering with any of the builds, etc.
If necessary, I can have one of the SA’s remove IPv6, either disabling or uninstalling it, and recreating a win vmware template.
While I still do not understand the root cause of the underlying issue with automated windows builds on vmware, I was able to overcome the issue.
I removed the network adapter from the vmware template and recreated a new template to use. I’ve tested the builds mainly using dhcp but statically
assigned IP addresses should work without issue.
Alternatively, it may be possible to write a few tasks in Ansible to create a windows vm while leaving it off, remove the adapter, and then add
a new adapter. This may work in addition to creating a new template without the adapter. I have yet to test this though.
It would be really beneficial to understand the root cause of the adapter issue on windows builds.
Does the folder where you place your VM have permission to the VLAN to which you are attaching? Seems like this is an environment related issue and not an ansible issue.