Hide Forgot
Description of problem: http://documentation-stage.bne.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/96/html/V2V_Guide/ch03s02s04.html Example 3.4. Importing all VMs from the export storage domain to the DataStore storage domain on the Default Data Center $exportdomain = Get-StorageDomain | ? {$_.Name -eq "export"} $datadomain = Get-StorageDomain | ? {$_.Name -eq "DataStore"} $dc = Select-DataCenter Name=Default $cluster = Select-Cluster Name=Default $candidates = Get-VmImportCandidates -StorageDomainId $exportdomain.StorageDomainId -DataCenterId $dc.DataCenterId foreach ($candidate in $candidates) { Import-Vm -DataCenterId $dc.DataCenterId -SourceDomainId $exportdomain.StorageDomainId -DestDomainId $datadomain.StorageDomainId -ClusterID $cluster.ClusterID -VmId $candidate.VmId } The API ClusterID should be ClusterId. Update this avoid customers copy the script directly to run and will fail. Additional info: Set Priority/Severity to high/high and raise the blocker flag, as it's better to fix this doc bug in rhel-6.1.0.
Fixed in http://documentation-stage.bne.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/96/html/V2V_Guide/ch03s02s04.html Example 3.4. Importing all VMs from the export storage domain to the DataStore storage domain on the Default Data Center $exportdomain = Get-StorageDomain | ? {$_.Name -eq "export"} $datadomain = Get-StorageDomain | ? {$_.Name -eq "DataStore"} $dc = Select-DataCenter Name=Default $cluster = Select-Cluster Name=Default $candidates = Get-VmImportCandidates -StorageDomainId $exportdomain.StorageDomainId -DataCenterId $dc.DataCenterId foreach ($candidate in $candidates) { Import-Vm -DataCenterId $dc.DataCenterId -SourceDomainId $exportdomain.StorageDomainId -DestDomainId $datadomain.StorageDomainId -ClusterId $cluster.ClusterId -VmId $candidate.VmId }
Verified this issue: $exportdomain = Get-StorageDomain | ? {$_.Name -eq "export"} $datadomain = Get-StorageDomain | ? {$_.Name -eq "DataStore"} $dc = Select-DataCenter Name=Default $cluster = Select-Cluster Name=Default $candidates = Get-VmImportCandidates -StorageDomainId $exportdomain.StorageDomainId -DataCenterId $dc.DataCenterId foreach ($candidate in $candidates) { Import-Vm -DataCenterId $dc.DataCenterId -SourceDomainId $exportdomain.StorageDomainId -DestDomainId $datadomain.StorageDomainId -ClusterId $cluster.ClusterId -VmId $candidate.VmId } So Change the status to VERIFIED.