2022-11-14 23:00:38,190 - DataSourceNoCloud.py[DEBUG]: Seed from https://foreman.example.com/userdata/ not supported by DataSourceNoCloud [seed=None][dsmode=net]
2022-11-14 23:00:38,190 - init.py[DEBUG]: Datasource DataSourceNoCloud [seed=None][dsmode=net] not updated for events: New instance first boot
It could be that this is due to the vmware-host-tools. These analyse the system and only the enterprise OS versions get support. For example, I got the cloud-init part of openSUSE to work only with an older vmware-host-tools version and a short-term change to a configuration file. Otherwise no IP was assigned to the VM and the cloud-init script could not be downloaded.
I think centos 8 and alma 8 are not in the list of supported OS. Try oracle Linux 8 or RHEL8 for testing.
ok, I have expressed myself in a misleading way … it is because only the OS supported by VMWare (different ones depending on the ESX version (see the OS list when creating a new VM) are operated via cloud-init, especially the network configuration after a VM has been put into operation for the first time). open-vm-tools only play a role to the extent that they report back to the vCenter which OS the VM has. To “manipulate” this, an older version of open-vm-tools is necessary, as the current ones have changed somewhat here and it is no longer so easy to “fake” a different OS.
If you look in the cloud-init / vmware-* logs you should see something here (unsupported OS messages or something).
Or is your VM assigned an IP at the very first boot and is the VM’s network activated?
But it’s just an idea of mine since I’ve been struggling with it for openSUSE …
this is the exact behaviour as I know it from openSUSE. The IP injection for clout-init (first boot) comes from ESX / vcenter (some kind of extended VM paramater). You have to manipulate the VM in such a way that an enterprise OS supported by vmware (oracle OS should also work) is reported during OS determination and feedback to the vCenter. only then are the extended parameters transferred. I have not yet found another way to achieve this. It is here as written on vmware and not on foreman / katello
Can we get some source code to look up where we can modify, or is it in open-vm-tools? if you can give some direction on this I can ask some of community members from almalinux to take look as they are saying for rhel 1:1 binary
no, you don’t understand … which OS get the information for a successful cloud init determine vmware! what I do is nothing that may be done officially since i am pregauging a “fake” OS. And almalinux is binary compatible but cannot pretend to be a different OS. The almalinux persons in charge could only try to get vmware to add it to the supported list.