Troubleshooting: A virtual machine with Windows Server 2019 running as Domain Controller is showing the wrong time
- solbergtonje
- 17 nov. 2024
- 1 min läsning
Uppdaterat: 25 dec. 2024
Do the host machine have the correct time and internet access? Yes
Do the virtual machine have VirtualBox Guest Additions installed and internet access? Yes
Find out which Domain Controller holds the PDC Emulator role: netdom query fsmo

Disable guest-host time synchronization from Command Prompt on host machine, use the command "cd" to move into VirtualBox folder and then run command: VBoxManage setextradata "VM name" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1

Configure the PDC Emulator to sync time with external time servers. In Domain Controller run the following command in Command Prompt:
w32tm /config /manualpeerlist:"pool.ntp.org" /syncfromflags:manual /reliable:yes /update

Make sure the new settings are registered: w32tm /query /status

Let's shutdown the Domain Controller: shutdown /s

Restart VirtualBox and the Domain Controller, check that the machine is set to synchronize with timeservers on pool.ntp.org: w32tm /query /status

Do a resync if necessary after the shutdown: w32tm /resync

Success!






