Hi folks,
I'm stuck at configuring the ntp service to get started by default on an esxi server via perl.
This is what I'm trying to do:
my $hostServiceConfig = new HostServiceConfig(serviceId => 'ntpd', startupPolicy => 'on');
my $hsca=[];
push (@$hsca,$hostServiceConfig);
my $hostConfigSpec = new HostConfigSpec(service => $hsca );
my $taskRef=$hostProfileManager->ApplyHostConfig_Task(host => $host, configSpec => $hostConfigSpec);
When I ask for the status the command fails with:
SOAP Fault:
-----------
Fault string: The operation is not allowed in the current state.
Fault detail: InvalidState
I assume I'm just missing some little detail. Maybe someone sees my mistake right away :-)