New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hostname is not assigned to the VM #461
Comments
Hi, to set the vm's hostname, we need to run the customization steps. |
Hi Sean, Yes! it is working fine when I pass the --cspec (customization specifications) in the Clone command. But it is not working with --disable-customization true (without the --cspec). Regards, |
Hi, there are a handful of customization options at https://github.com/chef/knife-vsphere#customization-options, in particular you're looking for Under the hood the settings specified in the cspec are mashed up with what's passed on the command line, so it's not one or the other. For Windows, we configure the domain joining stuff in a server side cspec and then customize everything else on the command line. |
Versions:
Platform Details
Issue:
Whenever I am cloning a Windows VM using the template, The VM takes template name as its Computer Name (DNS Name) and due to this I am unable to join the VM to the domain.
Command I use:
knife vsphere vm clone testb2 --cips DHCP --template 'TEST_CHEF_TMPT' --datastore ******** --host *********** --disable-customization true --start
Output:
Cloning template TEST_CHEF_TMPT to new VM testb2
Finished creating virtual machine testb2
Powered on virtual machine testb2
Regards,
Bhargavi.
The text was updated successfully, but these errors were encountered: