-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
This commit is contained in:
parent
de597af826
commit
e2f863d138
@ -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"]});
|
||||
|
Loading…
Reference in New Issue
Block a user