Is there a way to identify a parent template for VMs. I've got a few VMs created from different templates and I need to confirm source template.
I've tried blkid
and dmidecode -s system-uuid
but it looks like these IDs are re-generated for new VMs.
Regards
You won't be able to find this information from within the VM. Are you trying to do this programmatically? If you can deal with a couple of manual steps, you can look at the virtual machine's logs in vSphere under
Tasks and Events
to see the VM's history.You may also be able to look at the source templates' histories and glean the same information.
After the fact, you may have difficulty identifying the source template from within the VM unless you add some file to the template that identifies its source.
If you don't have access to relevant vSphere logs, you may be out of luck.