Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E1933184C4 for ; Mon, 26 Oct 2015 16:05:51 +0000 (UTC) Received: (qmail 10186 invoked by uid 500); 26 Oct 2015 16:05:51 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 10130 invoked by uid 500); 26 Oct 2015 16:05:51 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 10119 invoked by uid 99); 26 Oct 2015 16:05:51 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Oct 2015 16:05:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id ADA2C1A2238 for ; Mon, 26 Oct 2015 16:05:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.501 X-Spam-Level: * X-Spam-Status: No, score=1.501 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, KAM_NOCONFIDENCE=0.5, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 2y5EDFjaFvIp for ; Mon, 26 Oct 2015 16:05:37 +0000 (UTC) Received: from smtp01.mail.pcextreme.nl (smtp01.mail.pcextreme.nl [109.72.87.137]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id 4C4CA20562 for ; Mon, 26 Oct 2015 16:05:37 +0000 (UTC) Received: from [IPv6:2001:980:7936:0:f8fc:cf20:42c8:d88] (unknown [IPv6:2001:980:7936:0:f8fc:cf20:42c8:d88]) by smtp01.mail.pcextreme.nl (Postfix) with ESMTPSA id CEB8476337 for ; Mon, 26 Oct 2015 17:05:35 +0100 (CET) Subject: Re: Hyper-V clock on KVM node - CLOUDSTACK-8978 To: dev@cloudstack.apache.org References: From: Wido den Hollander Message-ID: <562E4F50.3090300@widodh.nl> Date: Mon, 26 Oct 2015 17:05:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit On 24-10-15 02:15, Josh Harshman wrote: > Just looking for some feedback on this idea for an improvement. > > > Currently, for any windows guest OS, we set RTC for the clock source. This seems to contribute to clock-drift issues leading to BSODs on Windows Server 2008 R2 Guests. > > I believe a possible improvement would be to set Windows guests to use the hyper-v clock. To do this we will need CloudStack to generate the appropriate Libvirt XML which would look somewhat like the following: > > > > > > > > > > > > > > I believe the following code snippet from LibvirtComputingResource.java could be a starting place to implement this. > > > if (vmTO.getOs().startsWith("Windows")) { > clock.setClockOffset(ClockDef.ClockOffset.LOCALTIME); > clock.setTimer("rtc", "catchup", null); > > > Let me know what you all think about this change. > Is there a better place / way to implement this? > That would indeed be the place to fix this. It's currently rather hardcoded, but that would be the place to go. Wido > > > > > Josh Harshman > > Cloud Engineer > Security+ > > > Intrinium > Tel: (509) 465-1234 x5259 > Fax: (866) 565-4578 > Lync / Skype: Josh.Harshman@intrinium.com > Web: http://intrinium.com > > > [Intrinium Long Sig Logo] > > > [Facebook] [Twitter] [Linkedin] [Youtube] [Blog] > > Information Security and Compliance Consulting | Managed IT and Security Services | Cloud Services > > > > > > ________________________________ > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. >