{"id":1389,"date":"2021-08-24T05:11:00","date_gmt":"2021-08-24T05:11:00","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=1389"},"modified":"2021-08-24T05:29:12","modified_gmt":"2021-08-24T05:29:12","slug":"start-stop-and-configure-time-sync-for-a-cloud-vm","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/start-stop-and-configure-time-sync-for-a-cloud-vm\/","title":{"rendered":"Start, Stop and Configure Time Sync for a Cloud VM"},"content":{"rendered":"<p>This tutorial will explain the steps to configure Time Sync for VM\u2019s in Cloud. This could alter administrators to synchronise the time by the node despite rebooting of the server.<\/p>\n<h3>Below are the steps which shows, how to Configure Time Sync for Linux ?<\/h3>\n<p><strong>Step 1<\/strong>\u00a0: Log into the server via SSH as administrator<br \/>\n<strong>Step 2<\/strong>\u00a0: Use the following command in the command prompt :<\/p>\n<blockquote><p>vmware-guestd \u2013cmd \u201cvmx.set_option synctime 0 1\u201d<\/p><\/blockquote>\n<h3>How to Configure Time Sync for\u00a0<a title=\"Cloud Hosting Platform\" href=\"https:\/\/ownwebservers.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Cloud Hosting Platform<\/a>\u00a0using Windows 2008 R2\u00a0 ?<\/h3>\n<p><strong>Step 1<\/strong>\u00a0: Access the server using RDP \u2013 Remote Desktop Protocol (Make sure you have administrator rights on the server)<br \/>\n<strong>Step 2<\/strong>\u00a0: Go to the command prompt.<br \/>\n<strong>Step 3<\/strong>\u00a0: Use the following command:<\/p>\n<blockquote><p>w32tm \/config \/manualpeerlist:pool.ntp.org,0x8 \/syncfromflags:MANUAL<br \/>\nnet stop w32time<br \/>\nnet start w32time<\/p><\/blockquote>\n<p>Since its a VM withing Hyper-V, one must disable time sync by going to\u00a0<em><strong>VM settings<\/strong><\/em>\u00a0&gt;&gt;\u00a0<em><strong>Management<\/strong><\/em>\u00a0&gt;&gt;\u00a0<em><strong>Integration Services<\/strong><\/em>\u00a0&gt;&gt;\u00a0<em><strong>uncheck Time Synchronization<\/strong><\/em>.<\/p>\n<p><strong>Step 4<\/strong>\u00a0: Check if the VM syncs the time on reboot, use the below command for that:<\/p>\n<blockquote><p>schtasks \/create \/tn TimeSync \/tr \u201cw32tm \/resync\u201d \/sc onstart<\/p><\/blockquote>\n<p><strong>Step 5<\/strong>\u00a0: You might be prompted to enter your username and password to re-establish connection for Remote Desktop.<\/p>\n<p>Some might receive an error trying to sync time, for example : \u201cRPC Server is Unavailable\u201d, you should use the following to troubleshoot :<\/p>\n<h3><strong>A<\/strong>. Use the following command to Stop the Windows Time Service (WTS) :<\/h3>\n<blockquote><p>net stop W32Time<\/p><\/blockquote>\n<h3><strong>B<\/strong>. Use the below command to Unregister the WTS :<\/h3>\n<blockquote><p>w32tm \/unregister<\/p><\/blockquote>\n<h3><strong>C<\/strong>. Following is the command that would help you re-register the WTS :<\/h3>\n<blockquote><p>w32tm \/register<\/p><\/blockquote>\n<p><strong>Note<\/strong>: You might at times be required to reboot the server before re-registering the service.<\/p>\n<p><strong>D<\/strong>\u00a0: Re-initiate the WTS and ensure that the service is running well, use the following command for the same:<\/p>\n<blockquote><p>net start W32Time sc query W32Time<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will explain the steps to configure Time Sync for VM\u2019s in Cloud. This could alter administrators to synchronise the time by the node despite rebooting of the server. Below are the steps which shows, how to Configure Time Sync for Linux ? Step 1\u00a0: Log into the server via SSH as administrator Step [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-1389","post","type-post","status-publish","format-standard","hentry","category-cloud-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Start, Stop and Configure Time Sync for a Cloud VM - OWS KB<\/title>\n<meta name=\"description\" content=\"The following are the steps to configure Time Sync for VM\u2019s in Cloud. This should enable administrators to synchronise the time by the node despite rebooting of the server.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ownwebservers.com\/kb\/start-stop-and-configure-time-sync-for-a-cloud-vm\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Start, Stop and Configure Time Sync for a Cloud VM - OWS KB\" \/>\n<meta property=\"og:description\" content=\"The following are the steps to configure Time Sync for VM\u2019s in Cloud. This should enable administrators to synchronise the time by the node despite rebooting of the server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/start-stop-and-configure-time-sync-for-a-cloud-vm\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-24T05:11:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-24T05:29:12+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"admin\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"OWS KB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ownwebservers.com\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/start-stop-and-configure-time-sync-for-a-cloud-vm\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/start-stop-and-configure-time-sync-for-a-cloud-vm\/\",\"name\":\"Start, Stop and Configure Time Sync for a Cloud VM - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"datePublished\":\"2021-08-24T05:11:00+00:00\",\"dateModified\":\"2021-08-24T05:29:12+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"description\":\"The following are the steps to configure Time Sync for VM\\u2019s in Cloud. This should enable administrators to synchronise the time by the node despite rebooting of the server.\",\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/start-stop-and-configure-time-sync-for-a-cloud-vm\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/start-stop-and-configure-time-sync-for-a-cloud-vm\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/start-stop-and-configure-time-sync-for-a-cloud-vm\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/start-stop-and-configure-time-sync-for-a-cloud-vm\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/start-stop-and-configure-time-sync-for-a-cloud-vm\/\",\"name\":\"Start, Stop and Configure Time Sync for a Cloud VM\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ba5db5841d48bd7517bb2583e13983e6d2fa56a4099a0b3c61ad2daefc321303?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ownwebservers.com\/kb\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=1389"}],"version-history":[{"count":5,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1389\/revisions"}],"predecessor-version":[{"id":1395,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1389\/revisions\/1395"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=1389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=1389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=1389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}