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,