VM windows time getting change automatically

adam.james17

Member
Jan 22, 2018
19
0
6
34
windows 2012 server keeps on changing time how to fix this issue.
attached configuration
Kernel-Version

Linux 4.15.18-18-pve #1 SMP PVE 4.15.18-44 (Wed, 03 Jul 2019 11:19:13 +0200)

PVE Manager Version

pve-manager/5.4-13/aee6f0ec
 

Attachments

  • Screenshot_4.jpg
    Screenshot_4.jpg
    53 KB · Views: 54
Hi,

use an external NTP server to keep the time in your VM.
Also, ensure that power savings are disabled and the CPU clock cycles stay stable.
 
configured NTP client and still after hours changing back to local time
 

Attachments

  • time.jpg
    time.jpg
    240 KB · Views: 43
  • ntps changing.jpg
    ntps changing.jpg
    69 KB · Views: 44
This is a serious issue and multiple threads are posted without a reliable solution.
 
Proxmox VE does not set the system time after the start.
The system time will be provided at OS starting from the BIOS/UEFI as it is on a Baremattel machine.
If you have time jumps check your timeservers if you have NTP configured.

I never saw time jumps on a default configured Windows.
If you have a case where this scenario is reproducible, we will look into it.
 
OK, but... I do "the thing" and then problem is solved :confused:.
Some is wrong with the time control at baremetal?
My PVE catch the ntp information from internet and the date time set is OK at PVE OS; but, if I add a Windows Server 2k8r2 machine (VM) and I set "os type" as Linux the clock jumps like a saltamontes. Then if I set flag as "Windows 7/2008r2" the clock is OK.
VM has not internet connection, no ntp server associated.
Baremetal time is OK always.
 
Windows (desktop anyway) generally likes the motherboard Real Time Clock to be local time, whereas Linux prefers it to be UTC. If you set it to the wrong one, Windows time service will eventually fix it for you. Which may not be what you want. There's some registry keys you can Google to make WIndows use UTC if that's what you want.

In your first screenshot you have "Use local time for RTC" set to "no".
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!