{"id":298,"date":"2014-05-01T16:45:08","date_gmt":"2014-05-01T16:45:08","guid":{"rendered":"http:\/\/www.itcrumbs.com\/?p=298"},"modified":"2019-02-07T04:39:45","modified_gmt":"2019-02-07T04:39:45","slug":"setting-up-ntp","status":"publish","type":"post","link":"http:\/\/www.itcrumbs.com\/?p=298","title":{"rendered":"Setting up NTP"},"content":{"rendered":"<h5><a title=\"http:\/\/blog.mpecsinc.ca\/2014\/05\/hyper-v-standalone-configure-host-as.html\" href=\"http:\/\/blog.mpecsinc.ca\/2014\/05\/hyper-v-standalone-configure-host-as.html\">http:\/\/blog.mpecsinc.ca\/2014\/05\/hyper-v-standalone-configure-host-as.html<\/a><\/h5>\n<h5><a href=\"http:\/\/blog.mpecsinc.ca\/2014\/05\/hyper-v-standalone-configure-host-as.html\">Hyper-V Standalone: Configure the Host as Authoritative Time Server and Guests to Use It<\/a><\/h5>\n<p>We have a number of single server virtualization solutions where the VMs are running at quite a high load point. <\/p>\n<p>This tends to create timing issues with the VMs not being able to keep up with keeping time. In some cases we have SQL VMs that can skew time visibly. <\/p>\n<p>So, we need a reliable time source. We are not able to set pool.ntp.org as the time source for the primary DC in this situation as it would not be keeping time very well either thus requiring a more frequent polling interval. Do that with ntp.org and the server will receive a Kiss-of-Death packet in short order. <\/p>\n<p>So, we configure our Hyper-V host to be an authoritative time server polling ntp.org&#8217;s servers every 30 minutes. <\/p>\n<p>To do so we need to set things up on the host. <\/p>\n<ol>\n<li>Allow UDP Port 123 Inbound on the firewall <\/li>\n<li>Configure the host as a time server: <\/li>\n<li>We run the Fix It Myself steps <\/li>\n<li>Verify <strong>Type<\/strong> is set to <strong>NTP<\/strong>\n<ul>\n<li><a href=\"http:\/\/lh6.ggpht.com\/-M1jqEI2gOog\/U2JUvBkHC3I\/AAAAAAAAJ8c\/0q4rm-u9bgQ\/s1600-h\/image%25255B23%25255D.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/lh3.ggpht.com\/-rf_ia_0Q8GI\/U2JUvq02vMI\/AAAAAAAAJ8k\/3G0rXQOIvf0\/image_thumb%25255B8%25255D.png?imgmax=800\" width=\"496\" height=\"299\" \/><\/a><\/li>\n<\/ul>\n<\/li>\n<li>We specify the regional pool.ntp.org servers <\/li>\n<li>Set AnnounceFlags to 5 in\n<ul>\n<li>HKLM\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\Config\\AnnounceFlags<\/li>\n<\/ul>\n<\/li>\n<li>Enable the NTPServer service by setting <strong>Enabled <\/strong>to <strong>1<\/strong>\n<ul>\n<li><a href=\"http:\/\/lh3.ggpht.com\/-Me1YMaWoso0\/U2JUwSlDe9I\/AAAAAAAAJ8s\/_6LPWXCszxg\/s1600-h\/image%25255B18%25255D.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/lh4.ggpht.com\/-EKp_ajVGYQg\/U2JUw6uKZxI\/AAAAAAAAJ8w\/II8Sip7rzfY\/image_thumb%25255B6%25255D.png?imgmax=800\" width=\"519\" height=\"313\" \/><\/a><\/li>\n<\/ul>\n<\/li>\n<li>Default Poll Interval\n<ul>\n<li><a href=\"http:\/\/lh4.ggpht.com\/-6GGeyuJaYhk\/U2JUxeVcyMI\/AAAAAAAAJ88\/NMREFG0Q0BY\/s1600-h\/image%25255B24%25255D.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/lh5.ggpht.com\/-bYABwwSmHjU\/U2JUx_8DOGI\/AAAAAAAAJ9E\/pO0vp-tsCzU\/image_thumb%25255B9%25255D.png?imgmax=800\" width=\"517\" height=\"310\" \/><\/a><\/li>\n<\/ul>\n<\/li>\n<li>Set the SpecialPollInterval to 15 minutes\n<ul>\n<li><a href=\"http:\/\/lh4.ggpht.com\/-G5hjaLKOUn4\/U2JUySvEVLI\/AAAAAAAAJ9I\/bHBKK-zf1ks\/s1600-h\/image%25255B32%25255D.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/lh3.ggpht.com\/-iVXBc6bKebI\/U2JUy7F12uI\/AAAAAAAAJ9U\/_FSBMO9BDSU\/image_thumb%25255B17%25255D.png?imgmax=800\" width=\"233\" height=\"45\" \/><\/a><\/li>\n<\/ul>\n<\/li>\n<li>Set the phase correction settings to 30 minutes\n<ul>\n<li><a href=\"http:\/\/lh6.ggpht.com\/-SVBkjwDuBoY\/U2JUzhSlkeI\/AAAAAAAAJ9c\/_9KjRk7ncIU\/s1600-h\/image%25255B37%25255D.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/lh4.ggpht.com\/-dOnYBJZ88G4\/U2JU0PNF5hI\/AAAAAAAAJ9g\/CCIigwag1d4\/image_thumb%25255B19%25255D.png?imgmax=800\" width=\"340\" height=\"63\" \/><\/a><\/li>\n<\/ul>\n<\/li>\n<li>net stop w32time &amp;&amp; net start w32time<\/li>\n<\/ol>\n<p>We use this free tool to test our setup from a client system:<\/p>\n<ul>\n<li><\/li>\n<\/ul>\n<p>Drop in the Hyper-V host&#8217;s name and we should see the following:<\/p>\n<p><a href=\"http:\/\/lh4.ggpht.com\/-GUZZT_r09ho\/U2JU0gKr10I\/AAAAAAAAJ9s\/ATz27QZLVRw\/s1600-h\/image%25255B41%25255D.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/lh5.ggpht.com\/-hP-GoQR1nTg\/U2JU1A-WFaI\/AAAAAAAAJ90\/gJ6Vebfv4B8\/image_thumb%25255B21%25255D.png?imgmax=800\" width=\"417\" height=\"176\" \/><\/a><\/p>\n<p>Once we have a successful time poll we run the following command set on the PDCe VM as per our : <\/p>\n<ol>\n<li>w32tm \/config \/syncfromflags:manual &quot;\/manualpeerlist:Hyper-V.DOMAIN.LOCAL,0x1&quot; \/reliable:yes <\/li>\n<li>w32tm \/config \/update <\/li>\n<li>net stop w32time &amp;&amp; net start w32time <\/li>\n<li>w32tm \/resync \/force <\/li>\n<li>w32tm \/query \/source<\/li>\n<\/ol>\n<p>The final result should be the Hyper-V server as source time.<\/p>\n<p>We then create a batch file with the step 4 command in it and schedule that batch file to run as frequently as every minute on the most demanding VMs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/blog.mpecsinc.ca\/2014\/05\/hyper-v-standalone-configure-host-as.html Hyper-V Standalone: Configure the Host as Authoritative Time Server and Guests to Use It We have a number of single server virtualization solutions where the VMs are running at quite a high load point. This tends to create timing issues with the VMs not being able to keep up with keeping time. In some [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-298","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298"}],"version-history":[{"count":1,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions"}],"predecessor-version":[{"id":299,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions\/299"}],"wp:attachment":[{"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}