VMWare Ubuntu VM Provisioning and Cloud-init config
I have written a playbook that provisions an Ubuntu 24.04 VM from template using VMWare, which works fine.
However I then am trying to parse through cloud-init config from Ansible to VMWare then into the VM. Most of this config works, the only thing I cannot get the VM to detect or apply is networking config.
VMware keeps inserting its own netplan using DHCP on IPV6
Only way I have gotten mine to appear at all is in the userdata putting in a file creation that has the netplan config in and does a netplan apply in the runcmd.
However when doing this the VMWare config for Netplan still applies and it takes provisioning time from under a minute to over 5 mins where it is getting stuck on various services and does a reboot when getting to the login screen.
Anyone got any ideas? I would post the playbook, but there have been many iterations of the networking and was curious if there is just something very obvious I'm missing.
I have put in disable_vmware_customization: true to a config file and all other cloud init config seems to be applying (some file changes, host name etc), just really struggling with the networking.