Astaro User Bulletin Board
Go Back   Astaro User Bulletin Board > Astaro Gateway Products > General Discussion

Welcome to the Astaro User Bulletin Board.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-17-2009, 09:29 AM
Junior Member
 
Join Date: Feb 2009
Posts: 3
Default Huge timedrifts when running under KVM

I'm running ASG 7.306 in a virtualised environment with linux KVM. The timedrift I experience are quite huge. (10 secs on 30 minutes)

With the ntp function I can't seem to catch up, it seems ntpd only syncs when it's started and never again.

Other KVM guests are experience these timedrifts, so I don't blame it on KVM.

Are there ways to keep the timedrift to an absolute minimum? (Kernels of other guests are compiled with KERN_HZ=100, probably this is an issue)
Reply With Quote
  #2 (permalink)  
Old 02-17-2009, 08:44 PM
Moderator
 
Join Date: Jul 2001
Location: southern California
Posts: 5,151
Default

You might be able to pass parameters such as KERN_HZ=100 in through the bootloader (e.g. GRUB).

Otherwise, you could try hacking the NTPd settings to sync more often.

Barry
__________________
http://DealBert.net
Home & business end-user since v1.x
  • ASL 6.3x, HP DL145 Dual Opteron, 1GB RAM, 6 gigE NICs, 50-IP Platinum License
  • ASL 7.3x, Dell PE1550 Dual PIII 1GHz, 1GB RAM, 2 NICs, 50-IP Platinum License
  • ASL 7.5x, 17-watt fanless mini-ITX system: MSI IM-945GSE-A Atom n270, 2GB RAM, Morex T3310 case. 2 Intel GigE, 3 VLANs. 80G 5200rpm 2.5" HD
    Netgear GS108T gigE VLAN switch & Linksys WRT54G WAP
    Total network infrastructure: 27 watts. 100-IP Home User. FiOS 10mb/2mb
Reply With Quote
  #3 (permalink)  
Old 02-18-2009, 01:42 AM
James Bourne's Avatar
Senior Member
 
Join Date: Oct 2001
Location: Sydney, Australia
Posts: 208
Default

KVM? Keyboard/Video/Mouse?

Are you using Virtual Infrastructure 3? VMware Server?

I noticed the VMware image shipped for 7.306 is in an old mode (4) and ships legacy VMware tools. These must be updated to work correctly.

Generally, you should never perform a time sync using an NTP client on a VM. Time synchronisation is always handled by VMware Tools accepting time updates from the underlaying host. This is because the clock calculations are generally incorrect since the number of ticks presented by the virtualised hardware is not necessarily the same as the number of ticks presented by the physical hardware. Here's the best practices guide:

http://www.vmware.com/pdf/vmware_timekeeping.pdf

So if you are using ESX, you need to configure NTP on the ESX host itself and let the time be replicated to the guest: Installing and Configuring NTP on VMware ESX Server

If you are using Server you need to configure NTP appropriately for the host (w32time service on Win and NTPD on Lin syncing against the lowest stratum NTP servers in your region as source from pool.ntp.org). Again ensure you have the latest VMware tools client installed.

Lastly, ensure NTP is disable in your ASG VM.

Hope this helps!

Last edited by James Bourne; 02-18-2009 at 01:45 AM.
Reply With Quote
  #4 (permalink)  
Old 02-18-2009, 03:08 AM
Moderator
 
Join Date: Jul 2001
Location: southern California
Posts: 5,151
Default

KVM is a linux-based VM system, not related to VMWare.

Barry
__________________
http://DealBert.net
Home & business end-user since v1.x
  • ASL 6.3x, HP DL145 Dual Opteron, 1GB RAM, 6 gigE NICs, 50-IP Platinum License
  • ASL 7.3x, Dell PE1550 Dual PIII 1GHz, 1GB RAM, 2 NICs, 50-IP Platinum License
  • ASL 7.5x, 17-watt fanless mini-ITX system: MSI IM-945GSE-A Atom n270, 2GB RAM, Morex T3310 case. 2 Intel GigE, 3 VLANs. 80G 5200rpm 2.5" HD
    Netgear GS108T gigE VLAN switch & Linksys WRT54G WAP
    Total network infrastructure: 27 watts. 100-IP Home User. FiOS 10mb/2mb
Reply With Quote
  #5 (permalink)  
Old 02-18-2009, 08:14 PM
James Bourne's Avatar
Senior Member
 
Join Date: Oct 2001
Location: Sydney, Australia
Posts: 208
Default

Interesting ... not seen that one before. I must give it a go!
Reply With Quote
  #6 (permalink)  
Old 02-19-2009, 07:46 AM
Junior Member
 
Join Date: Feb 2009
Posts: 3
Default

Quote:
Originally Posted by BarryG View Post
You might be able to pass parameters such as KERN_HZ=100 in through the bootloader (e.g. GRUB).

Otherwise, you could try hacking the NTPd settings to sync more often.

Barry
That's not possible, there's no kernel argument to set this. It's even hardcompiled into the kernel.

I've spend several hours into hacking ntpd, but without any success. No matter what I try or do, the ntpd only syncs it's time once.

Last edited by Keiichi; 02-19-2009 at 07:50 AM.
Reply With Quote
  #7 (permalink)  
Old 06-16-2009, 04:13 PM
Junior Member
 
Join Date: Jun 2009
Posts: 2
Unhappy Same thing under VMWare Server

I'm also seeing huge time drift running the official 7.4 virtual machine under VMWare Server. I'm running Server 1.08, and OP is running KVM, neither of which are listed as supported environments in the docs. Could this be the issue?

The VMWare documentation on time sync says

Quote:
VMware Tools clock synchronization has a serious limitation: it cannot correct the guest clock if it gets ahead of real time (except in the case of NetWare guest operating systems).
That's exactly what's happening to me. The clock ends up a week or more into the future making logs very difficult to understand. I've tried recommendations in other threads such as editing the vmx with tools.syncTime=TRUE and the config.ini with cpukHz and noTSC settings. Nothing has worked so far.
Reply With Quote
  #8 (permalink)  
Old 06-21-2009, 01:00 AM
Junior Member
 
Join Date: Jun 2009
Posts: 2
Default Solved

So I installed VMWare Server 2 and my time drift has stopped. I'd recommend the OP run ASG under a supported virtualization environment to fix this issue.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:24 PM.

 

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.


These pages are specifically maintained for the discussion of firewall issues within the Open Source community, and might already reflect new alpha/beta releases under development. Please refer to our product specifications for the functionality of the actual release. Discussions of new/enhanced functionality does not constitute a commitment of Astaro, to integrate this functionality into future releases. issues within the Open Source community, and might already reflect new alpha/beta releases under development. Please refer to our product specifications for the functionality of the actual release. Discussions of new/enhanced functionality does not constitute a commitment of Astaro, to integrate this functionality into future releases.