Migrate VMware vSphere 5.5 / 6.0 to 6.5U2 with CLI

Steps to migrate VMware vSphere 5.5 / 6.0 to 6.5U2 with CLI A. Upgrade the vCenter Server Appliance (VCSA) 6.0 to 6.6U2d It will provision a new VCSA 6.5 which is now running on PhotonOS during the migration and export / import all data from existing VCSA 6.0 to 6.5 automatically Prepare a VcsaUpgrade.json file …

Read moreMigrate VMware vSphere 5.5 / 6.0 to 6.5U2 with CLI

Install PowerShell Core with PowerCLI on ubuntu 18.04

Steps to install PowerShell Core with PowerCLI on ubuntu 18.04 Switch to root and install PowerShell Core #Switch to root su – # Download the Microsoft repository GPG keys wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb # Register the Microsoft repository GPG keys sudo dpkg -i packages-microsoft-prod.deb # Update the list of products sudo apt-get update # Install PowerShell …

Read moreInstall PowerShell Core with PowerCLI on ubuntu 18.04

Sample Preventive Maintenance Reports with PowerCLI

Refer to the list of Sample Preventive Maintenance Reports with PowerCLI Connect to vCenter with PowerCLI #Import VMware Module Import-Module VMware.VimAutomation.Core $vCenter = “10.253.24.16” $User = “administrator@vsphere.local” $Password = “P@ssw0rd” Connect-VIServer -Server $vCenter -User $User -Password $Password -WarningAction SilentlyContinue To get hardware inventory for all VMware ESXi host $VMHosts = Get-VMHost Foreach ($VMHost in $VMHosts) …

Read moreSample Preventive Maintenance Reports with PowerCLI

PowerCLI-Import OVF | The OVF descriptor is not available

I always encounter “The OVF descriptor is not available” when using the Web client to import OVF If i use the PowerCLI below to import OVF with the same OVF file, it will be always successfully #Login to vCenter / vSphere Host Connect-VIServer -Server 192.168.1.121 -User administrator@vsphere.local -Password P@ssw0rd #Map Network Drive to T: $net …

Read morePowerCLI-Import OVF | The OVF descriptor is not available

Install PowerCLI 10 on Windows 10

Please refer to the steps below on how to Install PowerCLI 10 on Windows 10 Set the Execution Policy to RemoteSigned Set-ExecutionPolicy RemoteSigned #Install NuGet Install-PackageProvider -Name NuGet -RequiredVersion 2.8.5.201 -Force Download VMware.PowerCLI (Around 539MB) and store it in C:\Temp\PowerCLI Save-Module -Name VMware.PowerCLI -Path C:\Temp\PowerCLI It will take few minutes to complete depending on your …

Read moreInstall PowerCLI 10 on Windows 10

Linked Clone in vSphere 6 without vCenter

Please refer to the following steps on how to create Linked Clone with 1 Master Image (Windows 2012 R2 Server) without vCenter in my Lab on SSD Hard Disk Install Windows 2012 R2 Server with latest patches and do run SYSPREP and save it for our Master Image C:\Windows\System32\SysPrep\SysPrep.exe Check “Generalize” to generate a new …

Read moreLinked Clone in vSphere 6 without vCenter

Clone VM without vCenter & Provisioning of first VM via CLI

Please refer to the following guide on how to Clone Virtual Machine (VM) without vCenter Create a Directory for your new VM, for example AVENTIS-VEEAM mkdir /vmfs/volumes/240/AVENTIS-VEEAM Clone a new vmdk file from the VM Template that i had prepared using **vmkfstool -i with -d thin (thin provisioning) – **the based VM is installed with Windows …

Read moreClone VM without vCenter & Provisioning of first VM via CLI

VMware-Upgrading VCSA 5.5 with localhost.localdom hostname to VCSA 6.x

One of the common issues that we are facing during the upgrading of VMware VCSA 5.5 to 6.x was the existing hostname was NOT properly configured in existing VCSA 5.5, most of it are using the default localhost.localdom We have to change the hostname to DNS resolvable FQDN prior performing the upgrade , else we …

Read moreVMware-Upgrading VCSA 5.5 with localhost.localdom hostname to VCSA 6.x

Installation of PowerCLI 10 in Windows 2012R2

Please refer to the steps below on how to install VMware PowerCLI 10 on Windows 2012R2 Server Upgrade the PowerShell 4.0 to PowerShell 5.1 Install Nuget Prackage Provider Download the VMware PowerCLI (Offline Install) and copy all the modules to $pshome\module Ignore the SelfSign Certificate Warning when connecting to vSphere Host / vCenter Import the …

Read moreInstallation of PowerCLI 10 in Windows 2012R2