VMware Cloud Community
AkilaHarinaraya
Enthusiast
Enthusiast

Need Clarification on Vmware powercli Installation through powercli>

While Installing powerCLI through the following command Install-Module -Name Vmware.PowerCLI  getting : 
8 Replies
AkilaHarinaraya
Enthusiast
Enthusiast

While Installing powerCLI through the following command Install-Module -Name Vmware.PowerCLI  getting Below Error :

As network connection is not enabled in the machine is there any other possible way to install the same

WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''.

WARNING: Unable to download the list of available providers. Check your internet connection.

PackageManagement\Get-PackageProvider : Unable to find package provider 'NuGet'. It may not be imported yet. Try

'Get-PackageProvider -ListAvailable'.

At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7415 char:30

+ ... tProvider = PackageManagement\Get-PackageProvider -Name $script:NuGet ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo          : ObjectNotFound: (Microsoft.Power...PackageProvider:GetPackageProvider) [Get-PackageProvider], Exceptio

   n

+ FullyQualifiedErrorId : UnknownProviderFromActivatedList,Microsoft.PowerShell.PackageManagement.Cmdlets.GetPackageProvider

Install-Module : NuGet provider is required to interact with NuGet-based repositories. Please ensure that '2.8.5.201' or newer

version of NuGet provider is installed.

0 Kudos
LucD
Leadership
Leadership

Yes, but you will ultimately need at least 1 machine from where you can connect to the Internet.

On that machine you can do a Save-Module, an use these files then to install on other stations.

See section Offline Install of PowerCLI to a Computer Without an Internet Connection  in Welcome PowerCLI to the PowerShell Gallery – Install Process Updates


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
AkilaHarinaraya
Enthusiast
Enthusiast

Thank you so much LucD for your timely help Smiley Happy

0 Kudos
AkilaHarinaraya
Enthusiast
Enthusiast

could you please let me know what is the difference between the port group and vlan ids.

if we are moving vms from one host to another how it identifies the port group which relies on the another host?

0 Kudos
LucD
Leadership
Leadership

The VLANId is a property of a portgroup.
When moving VMs you should make sure that the VLANId of the new portgroup corresponds.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

AkilaHarinaraya
Enthusiast
Enthusiast

Thanks much LucD Smiley Happy Smiley Happy

If the Destination host is not having the same port-group what will happen to the v motion process? will get failed or will it take any available port-group on the destination host?

0 Kudos
LucD
Leadership
Leadership

You will have to provide one or more portgroups on the Portgroup parameter of the Move-VM cmdlet.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

AkilaHarinaraya
Enthusiast
Enthusiast

Thanks LucD

0 Kudos