[fixed] time drift in all W8K guests
EDIT: see fix at the bottom thread in my last post
----
REOPENED: I wrote too fast.
The problem is still there.
-----
EDIT: the following command fixed the problem.
For Windows 2008/R2 guests only (Windows 7 does not have any problem):
bcdedit /set {default} useplatformclock true
-----
Hi all,
I have a strange bug with qemu / proxmox.
On one server, there are 2 x64 kvm guests (win 2008 r2).
Both have a time drift of 1s/h (ie: after 6h the guest time is 6s less than the real time).
And if i reboot one of the guest, its time is 2s less than the host time ! (which is correclty sync with a ntp).
note: 1st has 1cpu 512Mo ram, 2nd has 4cpu 6Go ram. So not cpu dependant.
On a second server (same cpu/ram), with the same setup and a freshly installed guest, there is no time drift. The guest time is exactly the host time.
I've checked the conf files, they are the same.
Both pveversion -v and uname are the same:
pve-manager: 1.6-5 (pve-manager/1.6/5261)
running kernel: 2.6.35-1-pve
proxmox-ve-2.6.35: 1.6-7
qemu-server: 1.1-22
pve-firmware: 1.0-9
libpve-storage-perl: 1.0-14
vncterm: 0.9-2
vzctl: 3.0.24-1pve4
vzdump: 1.2-8
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1dso1
pve-qemu-kvm: 0.12.5-2
ksm-control-daemon: 1.0-4
uname -a
Linux xxxx 2.6.35-1-pve #1 SMP Tue Oct 26 11:05:44 CEST 2010 x86_64
I've also tryed to add args: -no-kvm-pit-reinjection
No luck: still the 2s delta at boot time (I've not checked the drift though).
I've also tryed to add args: -rtc-td-hack
No luck.
I've also tryed to sync time with a ntp, the stop and restart a drifting vm.
After sync the time is perfectly synced. After stop/start the time is 2s late.
Ah, there is a difference.
On the drifting server, both vms are using qcow2 format. On the correct server, the vm is using raw format.
On one drifting vm, i converted all disks to raw. After start the time is still 2s late.
Ah there is another difference. drifting vms are both in driver testsigning mode.
I turned off test signing on one of the drifting vm and stopped started it.
still no luck.
Currently i've installed the ntp client service attached in the following post to get the time synced. If you have any idea how to fix ...
https://bugzilla.redhat.com/attachment.cgi?id=384566
EDIT: see fix at the bottom thread in my last post
----
REOPENED: I wrote too fast.
The problem is still there.
-----
EDIT: the following command fixed the problem.
For Windows 2008/R2 guests only (Windows 7 does not have any problem):
bcdedit /set {default} useplatformclock true
-----
Hi all,
I have a strange bug with qemu / proxmox.
On one server, there are 2 x64 kvm guests (win 2008 r2).
Both have a time drift of 1s/h (ie: after 6h the guest time is 6s less than the real time).
And if i reboot one of the guest, its time is 2s less than the host time ! (which is correclty sync with a ntp).
note: 1st has 1cpu 512Mo ram, 2nd has 4cpu 6Go ram. So not cpu dependant.
On a second server (same cpu/ram), with the same setup and a freshly installed guest, there is no time drift. The guest time is exactly the host time.
I've checked the conf files, they are the same.
Both pveversion -v and uname are the same:
pve-manager: 1.6-5 (pve-manager/1.6/5261)
running kernel: 2.6.35-1-pve
proxmox-ve-2.6.35: 1.6-7
qemu-server: 1.1-22
pve-firmware: 1.0-9
libpve-storage-perl: 1.0-14
vncterm: 0.9-2
vzctl: 3.0.24-1pve4
vzdump: 1.2-8
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1dso1
pve-qemu-kvm: 0.12.5-2
ksm-control-daemon: 1.0-4
uname -a
Linux xxxx 2.6.35-1-pve #1 SMP Tue Oct 26 11:05:44 CEST 2010 x86_64
I've also tryed to add args: -no-kvm-pit-reinjection
No luck: still the 2s delta at boot time (I've not checked the drift though).
I've also tryed to add args: -rtc-td-hack
No luck.
I've also tryed to sync time with a ntp, the stop and restart a drifting vm.
After sync the time is perfectly synced. After stop/start the time is 2s late.
Ah, there is a difference.
On the drifting server, both vms are using qcow2 format. On the correct server, the vm is using raw format.
On one drifting vm, i converted all disks to raw. After start the time is still 2s late.
Ah there is another difference. drifting vms are both in driver testsigning mode.
I turned off test signing on one of the drifting vm and stopped started it.
still no luck.
Currently i've installed the ntp client service attached in the following post to get the time synced. If you have any idea how to fix ...
https://bugzilla.redhat.com/attachment.cgi?id=384566
Last edited: