Closed bish0polis closed 2 years ago
Please, any idea you have. I'm really jammed-up here, and I'll try anything plausible.
This wiki is for the esxi provider. Your problem is related to providing.
Okay, fair point.
But I can't be 100.0% sure that the issue I'm seeing isn't the provider acting up -- and, also, I'm thinking if there are any others out there doing C7 on ESXi like I am, that they'll notice the obvious thing I'm not seeing.
I'm going back to the documentation and doign that abhorrent 'wget|sh' installation for the cloud-init add-on, in the hopes of learning there's a fixable issue with the packaged form.
Are we content that as long as the meta-info gets to ESXi, that terraform-esxi's job is done? Can we strike it off the list of suspects if "info-get guestinfo.metadata" gets us a good response, or is there a more conclusive test?
Hey guys,
I posted on the wiki project, and I think it was wrong. I'll kill it and I hope this is better.
So, Bad Things Happened [tm], and I've lost my templates, and I can not instantiate static-IP CentOS7 guests onto my ESXi host using tf-provider-ESXi . And I'm beginning to doubt I ever could !! :-D I'm hoping someone is in a similar spot and got through it. Stack-overflow has been its usual utility for nichier topics.
I'm running with packages, so here are the package versions for tools on the (gitlab-runner) host:
And the package versions on the generated VM:
cloud-init-vmware-guestinfo-1.4.1-1.noarch.rpm:
Kickstart packages to build the template in packer-esxi:
Terraform plan:
The meta-data appears to come in cleanly, and shows guest-info:
However, the host retains its DHCP config, despite meddling by cloud-init to ideally out-wit networkmangler:
net result:
I've trimmed the listings a bit for space, but I'll expand them if we need to. Everything's building on CI now, so I can roll new images with changes with minimal fuss.
But I'm just not seeing why the meta-data passed into ESXi and onto the VM isn't being used to configure the NIC as hoped. Anything sticking out as missing?