On Xen, there is a command xenstore_client which allows a VM to check it own VM name. Is there anything similar in VMWARE so that a VM can check its own VM name within the VM's O/S.
We're writing script to change computer name on Windows 7 after cloning from a template. We know VMWare can do customization when cloning a template but we'd like to know whether there is another way to do it.
Regards
if its a ESX \ ESXi host you can use the following command.
vim-cmd vmsvc/get.summary <vmid> | grep -i hostname
we can see the vmid by usnign the command "vim-cmd vmsvc/getallvms"
But I mean when the program is running in the VM's O/S, such as windows 7
there is no default commands in windows to find the details of underlying ESX host or VM.
Power CLI scripting is the option for it.