Programmatically add VMware ESX host to vCenter during kickstart
I'd like to have my开发者_运维百科 ESX hosts add themselves to vCenter during the kickstart process (or in a script that runs after the first boot).
I can't find a method for doing this; is there one?
There are methods in the API to add hosts: one for standalone hosts, and one for hosts in a cluster.
I'm not sure what scripting tools you have available during the kickstart process, but I recommend using one of VMware's scripting wrappers: the PowerCLI for powershell, for instance. There are SDKs available in .Net and Perl, among others. See here for more API information.
精彩评论