-Honor vm.host placement in clonevm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7541 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
91b0cf722a
commit
9065b0a417
@ -1961,11 +1961,13 @@ sub clone_vms_from_master {
|
||||
my $placement_resources=get_placement_resources(hyp=>$hyp,cluster=>$cluster,destination=>$destination);
|
||||
my $pool=$placement_resources->{pool};
|
||||
my $dstore=$placement_resources->{datastore};
|
||||
my $relocatespec = VirtualMachineRelocateSpec->new(
|
||||
my %relocatespecargs = (
|
||||
datastore=>$dstore, #$hyphash{$hyp}->{datastorerefmap}->{$destination},
|
||||
#diskMoveType=>"createNewChildDiskBacking", #fyi, requires a snapshot, which isn't compatible with templates, moveChildMostDiskBacking would potentially be fine, but either way is ha incopmatible and limited to 8, arbitrary limitations hard to work around...
|
||||
pool=>$pool,
|
||||
);
|
||||
#diskMoveType=>"createNewChildDiskBacking", #fyi, requires a snapshot, which isn't compatible with templates, moveChildMostDiskBacking would potentially be fine, but either way is ha incopmatible and limited to 8, arbitrary limitations hard to work around...
|
||||
);
|
||||
if ($hyp) { $relocatespecargs{host}=$hyphash{$hyp}->{hostview} }
|
||||
my $relocatespec = VirtualMachineRelocateSpec->new(%relocatespecargs);
|
||||
my $clonespec = VirtualMachineCloneSpec->new(
|
||||
location=>$relocatespec,
|
||||
template=>0,
|
||||
|
Loading…
Reference in New Issue
Block a user