Prerequisites for VMware vCenter Inventory
Overview
This document provides reference information on the data provider Inventory of VMware vCenter.
VMware vCenter data provider is able to collect information about virtual machines.
Supported Versions
Following versions of ESXi and vCenter have been tested and are supported by the VMware vCenter data provider:
- Version 8.0
- Version 7.0 Update 3
- Version 7.0 Update 2
- Version 7.0 Update 1
- Version 7.0
- Version 6.7 Update 3
- Version 6.7 Update 2
- Version 6.7 Update 1
- Version 6.7
- Version 6.5
- Version 6.0
- Version 5.5
- Version 5.0
- Version 4.1
Ports Used by Connectors and Data Providers
Hyper-V, XenServer and vCenter Inventory Attribute Mapping
-
Requirements
To be able to scan the VMware vCenter infrastructure under a read-only user, select a user that belongs to the Read-only user role in vSphere Client and specify their credentials when configuring the Inventory of VMware vCenter Data Provider.
PowerCLI Requirements
To successfully scan the VMware vCenter infrastructure, you need to install the latest version of PowerCLI on the machine where you run the data gateway.
We only support VMware PowerCLI 11.5 and higher since according to our experience previous versions may show the unexpected behavior (issues).
To check which version is currently installed, run command:
Get-Module VMware.PowerCLI -ListAvailable
Before installing, please be ensure that old version of PowerCLI is uninstalled. Upgrading from previous version is impossible.
To uninstall the previous version of PowerCLI, stop the "Matrix42.Data.Gateway" service and run Powershell ISE (not Powershell ISE (x86)) and run the commands below:
(Get-Module VMware.PowerCLI -ListAvailable).RequiredModules | Uninstall-Module -Force Get-Module VMware.PowerCLI -ListAvailable | Uninstall-Module -Force
Additionally check that PowerCLI instance is not installed under the "Programs and Features" in Windows settings. Otherwise uninstall it manually.
To install the latest version of PowerCLI, run the commands as administrator below:
Install-Module -Name VMware.PowerCLI Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Scope AllUsers -Confirm:$false
Start "Matrix42.Data.Gateway" service.
Troubleshooting
-Name VMware.PowerCLI not found
If this error occurs, please run the following command in PowerShell:
Register-PSRepository -Name PSGallery -SourceLocation https://www.powershellgallery.com/api/v2/ -PublishLocation https://www.powershellgallery.com/api/v2/package/ -ScriptSourceLocation https://www.powershellgallery.com/api/v2/items/psscript/ -ScriptPublishLocation https://www.powershellgallery.com/api/v2/package/ -InstallationPolicy Trusted -PackageManagementProvider NuGet
connect-viserver : Connect-VIServer Error: Invalid server certificate
In this case, run following command in PowerShell:
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Scope AllUsers -Confirm:$false
You can check the compatibility between PowerCLI and VMware vCenter Server by using VMware's compatibility matrix (external link).
If PowerShell does not recognize the Install-Module command, please update Windows Management Framework.
Further Information: