[SOLVED] QEMU/KVM clocks

Apr 26, 2018
111
10
23
Does Proxmox control the internal internal clock of QEMU/KVMs?

I also use VirtualBox and that software does control the clock of the VM. Hence my question if Proxmox does likewise.

I found information about clocks on QEMU/KVM systems, but I am unable to determine whether syncing the clock to a time server inside the VM is required.

Thanks again. :)
 
Oops! My mistake. I was focusing on Windows based KVMs. :) That is, do the Windows KVMs need to time sync or does the Proxmox host control the clock?


Proxmox host syncs.
 
Hello upnort,

IIRC ProxMox is preconfigured OOB to timesync to time server. Any VM/CT created will use the same time as the ProxMox server. So make sure you set the correct timezone for your Proxmox server under Proxmox gui > datacenter > yourproxmoxservername> time.

https://pve.proxmox.com/wiki/Configuration_of_Time_Syncronization_(NTP)

Some useful commands:

# timedatectl status
(view time sync status)

and

# cat /etc/systemd/timesyncd.conf
(view current and fallback NTP servers)

There is information about the "use local time for rtc" VM hardware option here (by default it's off, and I usually don't mess with this setting)
https://forum.proxmox.com/threads/how-local-time-for-rtc-affect-on-the-vms.11830/

For me personally I still setup an external timeserver on Windows Server VM's
https://timetoolsltd.com/time-sync/how-to-synchronize-microsoft-windows-to-a-ntp-server/

regards! :)
 
  • Like
Reactions: Hollis

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!