The user-data template must be a hash in YAML format for VM customization to work

Hello All,

I am trying to create image base host from foreman using vmware but I am getting “The user-data template must be a hash in YAML format for VM customization to work.”

I have created template using default org and loc. using this template, I have created image and image is associated with user- data template.

if i am using image without selecting user-data template, I am getting error “Required property data-store Is missing from data object of type virtualmachinerelocatespecdisklocator while parsing serialized dataobject of type vim.vmrelocatespec.disklocator”

What I need? I want to create image based host.

If anybody can help me to overcome this error, please let me know.

Thanks,

A guess, the template you created does nit render to valid YAML due to some whitespaces or empty lines. Could you upload it somewhere so we could take a look?