Hi
I try to deploy NSX Manager onto VSAN datastore using PowerNSX but it fails.
[Conditions]
+ NSX Manager deployment via web client is successful
-> vCenter, NSX Manager ova, VSAN datastore and the other prameters are same.
+ PowerCLI connection to vCenter is fine.
-> using connect-ViServer.....
+ PowerNSX NSX Manager deployment onto non-VSAN datastore is successful.
-> Although it's not the same vCenter because the VSAN environment only has VSAN datastore,
The Poweshell script (only params are swapped) and ova are same.
[PowerNSX command to fail]
*The parameters are listed in the bottom of this post.
New-NsxManager -NsxManagerOVF $NsxManagerOVF -Name $NsxManagerName -ClusterName $MgmtClusterName -ManagementPortGroupName $ManagementNetworkPortGroupName -DatastoreName $ManagementDatastoreName -CliPassword $NsxManagerPassword -CliEnablePassword $NsxManagerPassword -Hostname $NsxManagerName -IpAddress $NsxManagerIpAddress -Netmask $ManagementNetworkSubnetMask -Gateway $ManagementNetworkGateway -DnsServer $DnsServer1 -DnsDomain $DnsSuffix -NtpServer $NtpServer -EnableSsh -StartVM -Wait -FolderName vm | out-null
[Error]
Import-vApp : 2018/03/08 16:02:43 Import-VApp An error occurred while sending the request.
Location C:\Program Files\WindowsPowerShell\Modules\PowerNSX\3.0.1088\PowerNSX.psm1:5883 Charactor:15
+ ... $VM = Import-vApp -Source $NsxManagerOvf -OvfConfiguration $Ovf ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Import-VApp], ViError
+ FullyQualifiedErrorId : Client20_NfcLease_RunNfcTask_Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.ImportVApp
[Exact Command to fail]
C:\Program Files\WindowsPowerShell\Modules\PowerNSX\3.0.1088\PowerNSX.psm1:5883
$VM = Import-vApp -Source $NsxManagerOvf -OvfConfiguration $OvfConfiguration -Name $Name -Location $ClusterName -VMHost $TargetVMHost -Datastore $DatastoreName -DiskStorageFormat $DiskStorageFormat
-> I checked the parameters by adding "Write-Host $<each param>" before the command in the PowerNSX.psm1 for debugging purpose.
They are all right. *$DiskStorageFormat is set "Thick" by default
[The parameters]
All the params referencing the VMware objects are tested by Get-*** commands -Name $....
$NsxManagerOVF = "E:\NSX\VMware-NSX-Manager-6.3.4-7087695.ova"
$NsxManagerName = "nsxmgr01a"
$NsxManagerPassword = "*****"
$NsxManagerIpAddress = "10.0.0.120"
$VcenterServer = "10.0.0.100"
$vCenterUserName = "administrator@vsphere.local"
$vCenterPassword = "*****"
$MgmtClusterName = "vSAN-Cluster"
$ManagementDatastoreName = "vsanDatastore"
$ManagementNetworkPortGroupName = "nsxMgmt"
$ManagementNetworkSubnetMask = "255.255.0.0"
$ManagementNetworkSubnetPrefixLength = "16"
$ManagementNetworkGateway = "10.0.255.254"
$NtpServer = "10.0.0.101"
$DnsServer1 = "10.0.0.102"
$DnsSuffix = "vsan"
////////////////////
To me it sounds that selecting VSAN datastore in the PowerNSX fails the command.
Many thanks,
Seiji Matsuda