Clock on VM using Proxmox 5

Mecanik

Member
Mar 2, 2017
77
2
8
28
Is there a way to stop the VM clock from changing it's timezone to the host timezone ? I really had no such issues with Proxmox 4, but it seems for some reason I have this on Proxmox 5.

Basically the node has 1 timezone and the VM needs to have it's own timezone inside Windows OS, but it changes randomly back to the node's timezone.

Could you advise ?

Thank you!
 

dcsapak

Proxmox Staff Member
Staff member
Feb 1, 2016
3,917
356
83
31
Vienna
proxmox does not (and can not) change the timezone of the guest
 

Mecanik

Member
Mar 2, 2017
77
2
8
28
proxmox does not (and can not) change the timezone of the guest
That is what I thought as well, but it's happening on 2 nodes with Proxmox 5, so then what does change the timezone to the node's timezone...
 

dcsapak

Proxmox Staff Member
Staff member
Feb 1, 2016
3,917
356
83
31
Vienna
i guess windows tries to set its timezone based on location/network ?
 

Datajock

New Member
Jan 14, 2019
1
0
1
58
I am wondering if the "time zone" is being changed or if the "time" is only being set to that of a different time zone. These are two different things. I am having issues where I want my Windows VM to use MT and the host is using UTC. If I set the VM to UTC, all is fine. But when I try and set the VM to MT, it still sets the time inside the VM to UTC time (it does not change the time zone, it just has the wrong time, or the time from UTC instead of MT).

Is this what the original poster is seeing as well or are they actually seeing the time zone get changed?
 
Last edited:

Mecanik

Member
Mar 2, 2017
77
2
8
28
I am wondering if the "time zone" is being changed or if the "time" is only being set to that of a different time zone. These are two different things. I am having issues where I want my Windows VM to use MT and the host is using UTC. If I set the VM to UTC, all is fine. But when I try and set the VM to MT, it still sets the time inside the VM to UTC time (it does not change the time zone, it just has the wrong time, or the time from UTC instead of MT).

Is this what the original poster is seeing as well or are they actually seeing the time zone get changed?
I am actually seeing the timezone changed/reset inside the VM to the host timezone. No matter what I do.
 

Mecanik

Member
Mar 2, 2017
77
2
8
28
So there is no definitive answer to this ? I really can't believe it. The time on the machine changes without reason.

I also tried to enable Use local time for RTC: YES, but still the time changes inside the VM.

For example:

March 30,2019 Saturday 1:00AM (UTC+8) Timezone: Singapore

It's automatically changed into:

March 29,2019 Friday 5:00PM but the time zone remain the same.

How can this even be happening ? Please advise...
 

EntonyBirk

New Member
Apr 8, 2019
5
0
1
32
You tried, in that case, you would be best to use UTC for the VM RTC and ensure that the VM OS is aware that the RTC is in UTC.
 

Instigater

New Member
Aug 27, 2015
12
0
1
Latvia
I was very dissapointed today to find out after a week long struggle with Windows timezone offset. No matter what I did, Windows turned its time to Proxmox timezone, UTC in my case. I had to change my Proxmox host to my local timezone to force Windows not to change time to UTC.

Developers, please make a possibility into virtual machine configuration to specify time offset or time zone.
 

Shusky

New Member
Feb 19, 2018
6
1
3
21
Munich, Germany
There is a workaround for this:
1) Set "Linux" as the operating system for Windows VMs within Proxmox.
2) Create the DWORD-Key "RealTimeIsUniversal" within Windows at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation and set the value to "1".
3) Reboot the VM and set the correct time zone.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!