Customize my virtual machine name, but do not use the vm name for the operating system name
I follow the link below to configure，i can successfully customize the VM name
but,the operating system name is follow vm name.If the VM name does not conform to the operating system name specification, my VM cannot be created.
how can i do
So that is up to you. You can either use vSphere Customization Specs (where you set the property to set the name of the GuestOS to match the VM name) or you can use cloud init and programmically set the VM name/IP. There are lots of blogs on cloud init. My first hit was
How to set the name of guestOS in yaml.
I'm not very familiar with vra8,Can you print the code?
Thank you very much.
You could use CloudInit
But it requires you to have installed CloudInit (Linux)/CloudBase-Init (Windows) within the template
For Windows, I highly recommend you to look at the code from v12n.io, as it was the first I could get to work.