naeyder
Goto Top

KVM Zeitsynchronisation ohne NTP

Hallo zusammen,

wir haben einen Server laufen auf dem wir NUR virtuelle Maschinen laufen haben.
Im Moment haben wir in jeder VM einen ntp-Dienst laufen, davon wollen wir weg!

Server-OS: Debian 6.0.5 minimal
Software: QEMU/KVM-Paket

Gibt es eine Möglichkeit das lediglich der Host über NTP die Zeit synchronisiert und die Gäste sich mit dem Host synchronisieren? Sprich ohne NTP?

Über Vorschläge wäre ich sehr dankbar!

Content-Key: 189584

Url: https://administrator.de/contentid/189584

Printed on: April 16, 2024 at 14:04 o'clock

Member: Lochkartenstanzer
Lochkartenstanzer Aug 14, 2012 updated at 10:37:28 (UTC)
Goto Top
Moin:

man kvm :

...
       -rtc [base=utc|localtime|date][,clock=host|vm][,driftfix=none|slew]
           Specify base as "utc" or "localtime" to let the RTC start at the current UTC or local time, respectively. "localtime" is required for correct date in MS-DOS or Windows. To start at a specific point in time, provide date in the format "2006-06-17T16:01:21" or "2006-06-17". The default base is UTC.  By default the RTC is driven by the host system time. This allows to use the RTC as accurate reference clock inside the guest, specifically if the host time is smoothly following an accurate external reference clock, e.g. via NTP.  If you want to isolate the guest time from the host, even prevent it from progressing during suspension, you can set clock to "vm" instead. Enable driftfix (i386 targets only) if you experience time drift problems, specifically with Windows' ACPI HAL. This option will try to figure out how many timer interrupts were not processed by the Windows guest and will re-inject them.
...
Member: naeyder
naeyder Aug 14, 2012 at 10:38:08 (UTC)
Goto Top
Danke face-smile
werde es sofort ausprobieren!