PowerCLI Core is a VMware solution based on Microsoft's Powershell. Allows us to use this
powerful tool on Linux, Mac and Docker.
- PowerShell for every system (GitHub)
- PowerCLI Core (fling)
First of all we have to install the dependencies:
Bash
root@redorbita:~# apt-get install ca-certificates curl libunwind8 libicu52 unzip wget libcurl4-openssl-devPowerCLI Core Installation
You can download the latest version of Powershell for your distribution here.
In my case I am doing the installation on a Debian 8 (I have downloaded the Ubuntu 14.04 version)
Bash
root@redorbita:~# wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.18/powershell_6.0.0-alpha.18-1ubuntu1.14.04.1_amd64.debWe install the package and execute apt-get -f install to resolve missing dependencies.
Bash
root@redorbita:~# dpkg -i powershell_6.0.0-alpha.11-1ubuntu1.14.04.1_amd64.deb
root@redorbita:~# apt-get install -fWe create the directory for the module
Bash
root@redorbita:~# mkdir -p ~/.local/share/powershell/ModulesWe download the module and unzip it in the directory created previously.
Bash
wget https://download3.vmware.com/software/vmw-tools/powerclicore/PowerCLI_Core.zip
unzip PowerCLI_Core.zip && unzip ‘PowerCLI.*.zip’ -d ~/.local/share/powershell/ModulesWe try to access the powershell console
Bash
root@redorbita:~# powershell
PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.In order to connect via powercli to vsphere We do it in the following way:
text
PS /root> Connect-VIServer -Server <DIRECCION IP O NOMBRE> -User <USUARIO@vsphere.local> -Password <CONTRASEÑA>All the best.
:wq!
Comments