For the Hardware Lifecycle Host, IP configuration details such as NTP are set shortly after the first boot of the operating system, when the DeploymentData.json and ConfigurationData.json files are copied over to the HLH and placed into the D:\AzureStack directory. From there, PowerShell Desired State Configuration reads the values that are defined in the JSON files to configure the IP and NTP. To update the NTP on the HLH, you must modify the values in the JSON files and then rerun the PowerShell Desired State Configuration to build a new configuration document. For the MGMT-VM running on the HLH, it receives time from the VM Host which is the HLH. Use the following steps to update the NTP on the HLH:
- Using Windows Explorer, browse to the D:\AzureStack directory containing the JSON files.
- Open the DeploymentData.json file, search for the two instances of TimeServer, and update the IP address specified to the new NTP server IP address.
- Open the ConfigurationData.json file, search for the single instance of TimeServer, and update the IP specified to the new NTP server IP address.
- Open a PowerShell console window as Administrator and run the following commands:
cd C:\Windows\Setup\Scripts
Remove-DscConfigurationDocument -Stage Current
$ErrorActionPreference = 'SilentlyContinue'
.\hlhfirstboot.ps1
Start-DscConfiguration -UseExisting -Wait -Force
Note: Two message windows open. One window is about placing JSONs in the D:\AzureStack directory, and the other is about a reboot of the HLH. Both message windows can both be ignored. The script that is run is the HLH First Boot script, which rebuilds the Desired State Configuration setting.
- Verify that the NTP server IP address has been updated by running the following command:
w32tm /query /configuration