[Bug 745603] New: time is not synchronized correctly to Xen guests
https://bugzilla.novell.com/show_bug.cgi?id=745603 https://bugzilla.novell.com/show_bug.cgi?id=745603#c0 Summary: time is not synchronized correctly to Xen guests Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: x86-64 OS/Version: openSUSE 11.4 Status: NEW Severity: Normal Priority: P5 - None Component: Xen AssignedTo: jdouglas@suse.com ReportedBy: wolfgang@rosenauer.org QAContact: qa@suse.de Found By: Community User Blocker: --- I had the same setup in the past with an earlier version of openSUSE and had no problems back then. Since I switched to 11.4 as Xen Dom0 my guests have a wrong time. The Xen host is configured for NTP and the guests are using default behaviour which apparently is to sync time with the Dom0. I can confirm that all guests have (almost) synced time but it's almost 7 minutes in the future. Incorrect time is a very bad thing for servers. Is there really no fix besides setting up NTP and enabling independent wallclock? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=745603
https://bugzilla.novell.com/show_bug.cgi?id=745603#c
Charles Arnold
https://bugzilla.novell.com/show_bug.cgi?id=745603
https://bugzilla.novell.com/show_bug.cgi?id=745603#c1
Charles Arnold
https://bugzilla.novell.com/show_bug.cgi?id=745603
https://bugzilla.novell.com/show_bug.cgi?id=745603#c2
Wolfgang Rosenauer
For fully virtualized guests, each one needs to point at a common NTP server in order to stay in sync. Para-virtualized guests get their time from dom0 unless someone has set /proc/sys/xen/independent_wallclock within the guest.
Sorry, I didn't mention that. I only use para-virtualized openSUSE guests and had independent_wallclock set to 0 (disabled / default). In exactly that setup the time was off around 7 minutes in every guest compared to the Dom0.
If the fully virtualized guests still have a problem even pointing at an NTP server, then trying the following may solve the problem.
I've setup NTP on every guest now because I needed a correct time. Does your following description only apply to full virtualization?
1. Edit the guests menu.lst file and on the kernel line add: notsc divider=10 Reboot the guest after making the change.
2. The openSUSE 11.4 dom0 uses Xen 4.0.x which has a new guest configuration file option called tsc_mode. This can be used on a per domain basis and allows for the following values. The non-default choices for tsc_mode are: - tsc_mode=1 (always emulate). All rdtsc instructions are emulated; - tsc_mode=2 (never emulate). This is the same as prior to Xen 4.0. - tsc_mode=3 (PVRDTSCP). High-TSC-frequency apps may be paravirtualized (modified) to obtain both correctness and highest performance. If tsc_mode is left unspecified (or set to tsc_mode=0), a hybrid algorithm is utilized to ensure correctness while providing the best performance possible.
Please report your results.
As written above I only have para-virtualized guests so should I try anything with the tsc_modes at all? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=745603
https://bugzilla.novell.com/show_bug.cgi?id=745603#c3
--- Comment #3 from Charles Arnold
https://bugzilla.novell.com/show_bug.cgi?id=745603
https://bugzilla.novell.com/show_bug.cgi?id=745603#c4
Jan Beulich
https://bugzilla.novell.com/show_bug.cgi?id=745603
https://bugzilla.novell.com/show_bug.cgi?id=745603#c5
Wolfgang Rosenauer
https://bugzilla.novell.com/show_bug.cgi?id=745603
https://bugzilla.novell.com/show_bug.cgi?id=745603#c6
Jan Beulich
https://bugzilla.novell.com/show_bug.cgi?id=745603
https://bugzilla.novell.com/show_bug.cgi?id=745603#c7
Wolfgang Rosenauer
https://bugzilla.novell.com/show_bug.cgi?id=745603
https://bugzilla.novell.com/show_bug.cgi?id=745603#c8
Charles Arnold
I cannot deliver the information in that case as I have no hardware access to the system as it's a rented Rootserver at some hosting provider. I also cannot shutdown several production machines to reboot the host. As I could solve the issue by running NTP on every guest and you say I'm the only one where it happens apparently there's nothing I can do here.
Without hardware access I think we've done all we can. Thanks for your help. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com