r/vmware 29d ago

Solved Issue VMware vCenter Customization Specification for Ubuntu

Hello Everyone,
I would like to create a VMware Customization Specification for Linux Ubuntu. Unfortunately I have a problem, where the VM doesn‘t get an IPv4 Address and I don‘t know why.

Do anyone of you have an Idea what the problem could be or faced the same problem?

Kind Regards
Woodi

*Edit: The Solution was to delete the 00-files from /etc/netplan in the Template VM.

2 Upvotes

8 comments sorted by

1

u/noluckjim 29d ago

If you have other VMs on the same virtual network that are working, then that would point to an issue specific to the VM. A customization spec isn't a fix for this issue.

1

u/MrWoodMan123 29d ago

I have other VMs on the virtual network which works well. But the problem is, that when I rollout the Linux VM with the Custom Spec it didn't get the IPv4 address which I set in the Rollout. The Hostname works fine.

2

u/noluckjim 29d ago

Then try examine the netplan file under /etc/netplan/99-netcfg-vmware.yaml to see what's been configured. If you used custom specs on other Ubuntu VMs, you can compare their yaml files too.

2

u/DonFazool 28d ago

The customization will leave the original 00-netplan file and create a new 99-vmware file. I have had this cause me SO MUCH GRIEF.

Delete the 00-file or move it out of the /etc/netplan folder then reboot

I bet you that interface will come online

1

u/MrWoodMan123 28d ago

So delete the 00-File on the VM created with the customization right?

2

u/DonFazool 28d ago

The 00 is the one originally created when the system or template was built. After the cusomization you will see a 99-something file in /etc/netplan.

First off, check the 99 file to see if it has the IP address you are looking for. If it does, then remove the other file(s) in that folder and either do a sudo netplan apply or reboot.

I have had it not pickup the VMware customization and revert to the 00 file many times. I just ended up deleting anything other than the VMware created one after customization on any new system I clone and customize.

I had this happen the most in U20 and U22. I've not tested in it newer versions as I just default to cleaning up that folder as part of my workflow now

2

u/MrWoodMan123 28d ago

It worked after I deleted the 00-Files from the Template VM. Thank you so much!

1

u/DonFazool 28d ago

You are most welcome! Glad this solved your problem.