mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	Have kvm update vm.memory if chvm is called
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16536 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -1786,6 +1786,10 @@ sub chvm { | ||||
| 			if ($@ =~ /cannot set memory higher/) { | ||||
| 				xCAT::SvrUtils::sendmsg([1,"Unable to increase memory beyond current capacity (requires VM to be powered down to change)"],$callback,$node); | ||||
| 			} | ||||
| 		} else { | ||||
| 			if ($confdata->{vm}->{$node}->[0]->{memory} and $confdata->{vm}->{$node}->[0]->{memory} != $memory) { | ||||
| 				$updatetable->{vm}->{$node}->{memory}=$memory; | ||||
| 			} | ||||
| 		} | ||||
|          	$vmxml=$dom->get_xml_description(); | ||||
| 		if ($vmxml) { | ||||
| @@ -1803,6 +1807,9 @@ sub chvm { | ||||
|                 foreach (@currmem) { | ||||
|                     $_->setData(getUnits($memory,"M",1024)); | ||||
|                 } | ||||
| 		if ($confdata->{vm}->{$node}->[0]->{memory} and $confdata->{vm}->{$node}->[0]->{memory} != $memory) { | ||||
| 			$updatetable->{vm}->{$node}->{memory}=$memory; | ||||
| 		} | ||||
|  | ||||
|             } | ||||
|             $vmxml=$parsed->toString; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user