From e2f863d138263173dcc947c96bc085df3a8e0500 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sat, 14 Mar 2009 16:37:49 +0000 Subject: [PATCH] -If the guest is windows, default to 'localtime rtc git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2904 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kvm.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index c9db6153d..8a818c53a 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -246,6 +246,12 @@ sub build_xmldesc { } else { $xtree{vcpu}->{content}=1; } + if (defined ($nthash->{$node}->[0]->{os}) and $nthash->{$node}->[0]->{os} =~ /win.*/) { + $xtree{clock}->{offset}='localtime'; + } else { + $xtree{clock}->{offset}='utc'; + } + $xtree{features}->{pae}={}; $xtree{features}->{acpi}={}; $xtree{features}->{apic}={}; @@ -635,7 +641,7 @@ sub grab_table_data{ #grab table data relevent to VM guest nodes $hmhash = $hmtab->getNodesAttribs($noderange,['serialspeed']); } if ($nttab) { - $hmhash = $hmtab->getNodesAttribs($noderange,['serialspeed']); + $nthash = $nttab->getNodesAttribs($noderange,['os']); #allow us to guess RTC config } unless ($vmtab) { $callback->({data=>["Cannot open vm table"]});