Well came to find out while looking at the 05-hostname script within the contextualization RPM that the correct definition for the name is:
SET_HOSTNAME
Not SET_HOST or HOSTNAME. So the documentation requires a little update.
Though I still have 2 issues which hopefully I can get a better understanding:
NAME which defines the name of the machine in OpenNebula does not get parsed during the instantiate run. Running this command:
onetemplate instantiate 2 test.tpl
Where test.tpl has the data above. Instead my VM ends up having the one-VMID-templatename-host name.
Also the FILES section doesn’t seem to work either. Where do I have to put the files I want to include in the contextualization phase? I thought it was datastore 2, but that requires the FILE_DS tag, but if you are using vCenter drivers, it states in the documentation that it does not work? If someone can point me in the right direction, I would gladly appreciate it.
Thanks in advance,
Jesus