<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Professional VMware &#187; time</title> <atom:link href="http://professionalvmware.com/category/time/feed/" rel="self" type="application/rss+xml" /><link>http://professionalvmware.com</link> <description>How Many Turtles Can You Fit On A Rock?</description> <lastBuildDate>Thu, 24 May 2012 13:39:29 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>Time Is Marching On&#8230; Disabling TimeSync, Completely.</title><link>http://professionalvmware.com/2009/10/time-is-marching-on-disabling-timesync-completely/</link> <comments>http://professionalvmware.com/2009/10/time-is-marching-on-disabling-timesync-completely/#comments</comments> <pubDate>Tue, 06 Oct 2009 15:15:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[powershell]]></category> <category><![CDATA[time]]></category> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[VMware]]></category> <category><![CDATA[PowerCLI]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2009/10/time-is-marching-on-disabling-timesync-completely/</guid> <description><![CDATA[Time is critical. In VMs this criticality is even more pronounced. Time slips… CPU instructions go askew, and things get weird. That said, there are situations when you may wish to disable the built in VMware Tools Time sync service… completely. What do I mean by completely? Well, even with the tools time sync set [...]]]></description> <content:encoded><![CDATA[<p></p><p>Time is critical.</p><p>In VMs this criticality is even more pronounced. Time slips… CPU instructions go askew, and things get weird. That said, there are situations when you may wish to disable the built in VMware Tools Time sync service… completely. What do I mean by completely? Well, even with the tools time sync set to disabled, VMware will force a VM to sync with the host in some specific situations, and despite my valiant Google effort, I was unable to uncover exactly what these are.</p><p>According to <a
href="http://kb.vmware.com/kb/1189">KB 1189</a>, you can disable TimeSync completely by adding a few parameters to the config file:</p><blockquote><p>If you want to completely disable time synchronization in the guest, open the virtual machine&#8217;s configuration file (<tt>.vmx</tt>) in a text editor and set the following options to zero, as shown below.</p><p><tt>tools.syncTime = &quot;0&quot;</tt> <br
/><tt>time.synchronize.continue = &quot;0&quot;</tt> <br
/><tt>time.synchronize.restore = &quot;0&quot;</tt> <br
/><tt>time.synchronize.resume.disk = &quot;0&quot;</tt> <br
/><tt>time.synchronize.shrink = &quot;0&quot; <br
/></tt><tt>time.synchronize.tools.startup = &quot;0&quot;</tt></p></blockquote><p>While that is borderline awesome… when combined with <a
href="http://get-admin.com/blog/?p=828">Glenn’s script from get-admin</a>:</p><pre>$ExtraOptions = @{
    &quot;<tt>tools.syncTime</tt>&quot;=&quot;0&quot;;
    &quot;time.synchronize.continue&quot;=&quot;0&quot;;
    &quot;time.synchronize.restore&quot;=&quot;0&quot;;
    &quot;time.synchronize.resume.disk&quot;=&quot;0&quot;;
    &quot;time.synchronize.shrink&quot;=&quot;0&quot;;
    &quot;time.synchronize.tools.startup&quot;=&quot;0&quot;;
}&#160;&#160; # build our configspec using the hashtable from above.  I prefer this
# method over the use of files b/c it has one less needless dependency.
$vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec
# note we have to call the GetEnumerator before we can iterate through
Foreach ($Option in $ExtraOptions.GetEnumerator()) {
    $OptionValue = New-Object VMware.Vim.optionvalue
    $OptionValue.Key = $Option.Key
    $OptionValue.Value = $Option.Value
    $vmConfigSpec.extraconfig += $OptionValue
}
# Get all vm's not including templates
$VMs = Get-View -ViewType VirtualMachine -Property Name -Filter @{&quot;Config.Template&quot;=&quot;false&quot;}&#160;&#160; # Do it!
foreach($vm in $vms){
    $vm.ReconfigVM_Task($vmConfigSpec)
}</pre><p>There you have it. Time disabled in all your VMs.</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2009/10/time-is-marching-on-disabling-timesync-completely/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>WTF Is A Step Ticker?  &#8211; Step Tickers. and Why They Matter</title><link>http://professionalvmware.com/2009/05/wtf-is-a-step-ticker-step-tickers-and-why-they-matters/</link> <comments>http://professionalvmware.com/2009/05/wtf-is-a-step-ticker-step-tickers-and-why-they-matters/#comments</comments> <pubDate>Thu, 14 May 2009 16:19:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[ESX]]></category> <category><![CDATA[ntp]]></category> <category><![CDATA[time]]></category> <category><![CDATA[Troubleshooting]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2009/05/14/wtf-is-a-step-ticker-step-tickers-and-why-they-matters/</guid> <description><![CDATA[What is a “Step Ticker” You know, it’s one of those little pedometer things you strap onto your hip and tracks how far you’ve walked. Ok, so it’s not that. At least not within the context of servers &#38; virtualization. So what IS it? It’s a horribly named NTP (network time protocol) concept. Yup. That’s [...]]]></description> <content:encoded><![CDATA[<p></p><h3>What is a “Step Ticker”</h3><p>You know, it’s one of those little pedometer things you strap onto your hip and tracks how far you’ve walked. Ok, so it’s not that. At least not within the context of servers &amp; virtualization. So what <em>IS</em> it? It’s a horribly named NTP (network time protocol) concept. Yup. That’s it. You were expecting at least two other paragraphs, no?</p><h3>What does it do?</h3><p>Hate to disappoint, this paragraph is going to be short too. A Step Ticker is basically a way to tell the NTP daemon to check a server or two, and correct time on startup, rather than relying on the time that was restored from the hardware.</p><p>This is meaningful, because often the hardware time has drifted. If you are running applications that are exceedingly time sensitive, like virtualization, you’ll of course want accurate time. So setting up Step Tickers is a “Good Idea”. So how do we do that?</p><h3>Setting Up Step Tickers</h3><p>I’ll show you how to do this on a single host, as well, that’s easy, and I’m lazy. To deploy in mass, you’ll likely want this as part of your kickstart process. If you don’t have automated builds, shame on you, but you should have it as part of your QC process then. As for scripting the change out to each host, that is best left to you, the reader (but can be done in PoSH with plink).</p><p>Enough rambling, open /etc/ntp/step-tickers and add some lines that look like this</p><p><span
style="font-family: Courier New; color: #ff8040;">0.vmware.pool.ntp.org<br
/> 1.vmware.pool.ntp.org<br
/> 2.vmware.pool.ntp.org </span></p><p>From here, save the file and restart ntp (service ntpd restart).</p><p>Questions? Drop a line in the comments.</p><p>Sources: <a
href="http://www.tripwire.com/configcheck/remediation.cfm?tid=T0003898&amp;policy=com/tripwire/checker/data/VMware_ESX_Server_v3.5_Security_TE_7.1_Policy.xml">Tripwire KB</a>, <a
href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1339">VMware KB</a>, and some random <a
href="http://www.flux.org/pipermail/linux/2002-February/007547.html">UseNet/Mailing list  post about ntpd</a>.</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2009/05/wtf-is-a-step-ticker-step-tickers-and-why-they-matters/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> <item><title>VMware Time Keeping Best Practices KB Updates</title><link>http://professionalvmware.com/2009/02/vmware-time-keeping-best-practices-kb-updates/</link> <comments>http://professionalvmware.com/2009/02/vmware-time-keeping-best-practices-kb-updates/#comments</comments> <pubDate>Tue, 24 Feb 2009 23:28:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[time]]></category> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[VM]]></category> <category><![CDATA[VMware]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2009/02/24/vmware-time-keeping-best-practices-kb-updates/</guid> <description><![CDATA[VMware has updated their Time Keeping Best Practices KB’s. The new timekeeping articles are: 1006427 Timekeeping best practices for Linux 1007020 Linux using TSC clocksource stops responding 1008284 Time falls behind in a virtual machine when the guest operating system writes to previously unwritten regions of its virtual disk 1005861 Time falls behind in virtual [...]]]></description> <content:encoded><![CDATA[<p></p><p>VMware has updated their <a
href="http://blogs.vmware.com/kb/2009/02/new-timekeeping-articles.html">Time Keeping Best Practices KB’s.</a></p><p>The new timekeeping articles are:</p><p><strong><a
href="http://kb.vmware.com/kb/1006427">1006427</a></strong></p><p>Timekeeping best practices for Linux</p><p><strong><a
href="http://kb.vmware.com/kb/1007020">1007020</a></strong></p><p>Linux using TSC clocksource stops responding</p><p><strong><a
href="http://kb.vmware.com/kb/1008284">1008284</a></strong></p><p>Time falls behind in a virtual machine when the guest operating system writes to previously unwritten regions of its virtual disk</p><p><strong><a
href="http://kb.vmware.com/kb/1005861">1005861</a></strong></p><p>Time falls behind in virtual machine when the memory of the virtual machine paged from disk by the VMkernel</p><p><strong><a
href="http://kb.vmware.com/kb/1006072">1006072</a></strong></p><p>Time in a virtual machine drifts due to hardware timer drift</p><p><strong><a
href="http://kb.vmware.com/kb/1006113">1006113</a></strong></p><p>Time in a Linux 2.6 guest operating system runs faster than real time due to lost tick overcompensation</p><p><strong><a
href="http://kb.vmware.com/kb/1005953">1005953</a></strong></p><p>Time runs too fast in a Windows virtual machine when the Multimedia Timer interface is used</p><p><strong><a
href="http://kb.vmware.com/kb/1006090">1006090</a></strong></p><p>Time drifts in the virtual machine and the service console due to the HPET misreporting its frequency</p><p><strong><a
href="http://kb.vmware.com/kb/1006086">1006086</a></strong></p><p>Time in a Linux virtual machine jumps backward when using clock=pit</p><p><strong><a
href="http://kb.vmware.com/kb/1006088">1006088</a></strong></p><p>Time runs slower than real time due to lost timer interrupts</p><p><strong><a
href="http://kb.vmware.com/kb/1005802">1005802</a></strong></p><p>Determining and changing the rate of timer interrupts a guest operating system requests</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2009/02/vmware-time-keeping-best-practices-kb-updates/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Time Keeps on Slipping&#8230; Time Keeping Best Practices for Linux</title><link>http://professionalvmware.com/2008/12/time-keeps-on-slipping-time-keeping-best-practices-for-linux/</link> <comments>http://professionalvmware.com/2008/12/time-keeps-on-slipping-time-keeping-best-practices-for-linux/#comments</comments> <pubDate>Mon, 08 Dec 2008 15:19:59 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[ESX]]></category> <category><![CDATA[esx 3.5]]></category> <category><![CDATA[esxi]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[ntp]]></category> <category><![CDATA[time]]></category> <category><![CDATA[VM]]></category> <category><![CDATA[VMware]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2008/12/08/time-keeps-on-slipping-time-keeping-best-practices-for-linux/</guid> <description><![CDATA[Had a situation in which time in a Linux guest kept creeping about, slower, faster, etc. To the point where NTP wasn’t helping before. This in turn, like all good questions, turned me to that which is the holy oracle of all knowledge: Google. Google, showed me that I am not alone in my struggles, [...]]]></description> <content:encoded><![CDATA[<p></p><p><img
src="http://farm1.static.flickr.com/190/493172644_5724130f00_m.jpg" /></p><p>Had a situation in which time in a Linux guest kept creeping about, slower, faster, etc. To the point where NTP wasn’t helping before. This in turn, like all good questions, turned me to that which is the holy oracle of all knowledge: Google.</p><p>Google, showed me that I am not alone in my struggles, and gave me some direction in my quest. That direction was to <a
href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1006427">VMware’s KB 1006427: Timekeeping best practices for Linux</a></p><p>It seems as each distribution does things slightly differently, there are kernel parameters that can be set to overcome the time slippage.</p><blockquote><p>This article presents best practices for Linux timekeeping. These recommendations include specifics on the particular kernel command line options to use for the Linux operating system of interest. There is also a description of the recommended settings and usage for NTP time sync, configuration of VMware Tools time synchronization, and Virtual Hardware Clock configuration, to achieve best timekeeping results.</p></blockquote> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2008/12/time-keeps-on-slipping-time-keeping-best-practices-for-linux/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>
