VMware userdata cloud-init no network for RHEL 8

Problem:
This is the first time I’m using a VMware image rather than a network boot option. I followed the readme from https://github.com/theforeman/foreman_userdata but given I’m running Foreman 2.0.1 that is now baked in.

I was able to get the network working without the 10_foreman.cfg no cloud file. That is the new vm has a fully configured, connected network with hostname set. But when I do have the file which I obviously need for the cloud-init config, the VM boots with not network config. The network adapter in VMware is disconnected and the hostname is default. I’m using a RHEL 8 template. Not sure what I’m doing wrong here. Any advice would be great.

Cheers.

Foreman and Proxy versions:
2.0.1

Foreman and Proxy plugin versions:
2.0.1

Distribution and version:

Other relevant data:

Silly mistake. I was missing perl in the RHEL template.

1 Like

Ok great, for the record instructions are here:

https://docs.theforeman.org/guides/build/doc-Provisioning_Guide/index-foreman.html#Provisioning_Virtual_Machines_in_VMware_vSphere-Provisioning_with_cloudinit_and_userdata_templates

Tell us if we can improve.

No all good. I should RTFM properly. Also found this helpful :slight_smile: Provisioning VMWare using userdata via Satellite 6.3-6.6

2 Likes