Guest Time drift: Difference between revisions

From Proxmox VE
Jump to navigation Jump to search
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Note|Article about Proxmox VE 2.0}}
Some tips from [http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Host_Configuration_and_Guest_Installation_Guide/chap-Virtualization_Host_Configuration_and_Guest_Installation_Guide-KVM_guest_timing_management.html RedHat's Virtualization Host Configuration and Guest Installation Guide], if you have time drifts (mainly for windows),


Some tips if you have time drifts (mainly for windows)
== Using the Real-Time Clock ==
 
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Host_Configuration_and_Guest_Installation_Guide/chap-Virtualization_Host_Configuration_and_Guest_Installation_Guide-KVM_guest_timing_management.html
 
 
==WIN XP - WIN2003==
 
Using the Real-Time Clock with Windows Server 2003 and Windows XP guests


=== WIN XP, WIN 2003 Server ===


Windows uses the both the Real-Time Clock (RTC) and the Time Stamp Counter (TSC).  
Windows uses the both the Real-Time Clock (RTC) and the Time Stamp Counter (TSC).  


For Windows guests the Real-Time Clock can be used instead of the TSC for all time sources which resolves guest timing issues.
For Windows guests the RTC can be used instead of the TSC for all time sources, which resolves guest timing issues.
 
To enable the Real-Time Clock for the PMTIMER clock source (the PMTIMER usually uses the TSC), add the following option to the Windows boot settings.
 
Windows boot settings are stored in the boot.ini file.
 
 
Add the following option to the end of the Windows boot line in the boot.ini file:
 
/usepmtimer
 
==WIN VISTA - WIN7 - WIN2008==
 
Add this to your vm configuration:
 
 
args: -no-hpet -no-kvm-pit-reinjection
 
 
then in your windows guest:


C:\Windows\system32>bcdedit /set {default} USEPLATFORMCLOCK on
To enable the RTC for the PMTIMER clock source (usually uses the TSC), add the option '''/usepmtimer''' to the end of the boot line in '''boot.ini'''.


===WIN Vista, WIN7, WIN2008 Server, WIN8, WIN2012 Server, WIN10, WIN2016 Server===


In your windows guest:


C:\Windows\system32>bcdedit /set {default} USEPLATFORMCLOCK on


[[Category:Proxmox_VE_2.0]]
[[Category:HOWTO]] [[Category:Troubleshooting]]

Latest revision as of 11:03, 25 October 2016

Some tips from RedHat's Virtualization Host Configuration and Guest Installation Guide, if you have time drifts (mainly for windows),

Using the Real-Time Clock

WIN XP, WIN 2003 Server

Windows uses the both the Real-Time Clock (RTC) and the Time Stamp Counter (TSC).

For Windows guests the RTC can be used instead of the TSC for all time sources, which resolves guest timing issues.

To enable the RTC for the PMTIMER clock source (usually uses the TSC), add the option /usepmtimer to the end of the boot line in boot.ini.

WIN Vista, WIN7, WIN2008 Server, WIN8, WIN2012 Server, WIN10, WIN2016 Server

In your windows guest:

C:\Windows\system32>bcdedit /set {default} USEPLATFORMCLOCK on