Orphaned VM in VMWare 6.5

Posted by robd on January 24, 2019
vmware / No Comments

Had an issue where I’d deleted a VMDK from a LUN and was left with orphaned VM in vSphere, no problem I thought…right click and remove from inventory.  The problem is, all options were greyed out:

So what to do?

Enable SSH on the host.

Connect wit Putty and run:

List all registered VMs

vim-cmd /vmsvc/getallvms

Then to unregistered:

vim-cmd /vmsvc/unregister <id>


Tags: , , ,

Ratio of Physical CPUs to Virtual CPUs in VMware

Posted by robd on August 06, 2018
powershell, vmware / 1 Comment

My colleague Welsh Dai made this sweet bit of PowerShell to see the ratio of physical CPUs to Virtual CPUs:

$allhosts = @()
$cluser2hosts = Get-VMHost | where {$_.Parent -LIKE "ClusterName"} 
foreach ($vmhost in $cluser2hosts)
   $vms = $vmhost | Get-VM | select name,numcpu | measure -Property numcpu -Sum
   $hostload = New-Object psobject -Property @{
            hostname = $vmhost.Name
            PhysicalCPUs = $vmhost.NumCpu
            vCPUs = $vms.Sum
            hostratio = $vms.sum / $vmhost.NumCpu
    $allhosts += $hostload 

$allhosts  | select hostname,physicalCPUs,vCPUs,hostratio | sort hostratio


Here’s a picture

Tags: , , ,

HP G7 N54L running ESXi 6.5 and Ubuntu

Posted by robd on December 11, 2017
Linux / 5 Comments

I run a HP G7 N54L which has ESXi 6.5 installed, its getting old but its brilliant.

Anyhow, I ran a Windows 10 VM which I had Plex installed on, for some reason Plex gave up the ghost so I decided to install Ubuntu and was planning on installing Plex on there.

Grabbed the ISO and installed and 5 minutes after install the Ubuntu server froze, so rebooted, froze again.

After some digging I post a post that mentioned its a hardware issue sorted in ESXi 6.5 update 1.

So downloaded and update my server (note there was a warning that future releases of ESXi wont be supported on this CPU) and ran Ubuntu and it worked flawlessly.


Tags: , , , ,

ESXi 10-15-2014 Patches can break Citrix Netscaler VPX Appliance

Posted by robd on April 10, 2016
Citrix, ESX / No Comments

CAG drops off network after updates to ESXi hosts, reboot fixes for a short time but then it drops off again.




Detailed fix in Citrix KB


Tags: , ,

ESXi 5.1 to 5.5 Upgrade with Update Manager

Posted by robd on December 08, 2014
ESXi 5.5, vSphere / No Comments

So a client asked me to upgrade their ESXi server from 5.1 to 5.5.  Fairly straight forward if you rememeber this:

  1. Update vCenter to 5.5,
  2. Update vSphere Update Manager to 5.5,
  3. Lastly update ESXi to 5.5.

So lets get going:

Update vCentre:

Firstly download the vCentre ISO: VMware-VIMSetup-all-5.5.0-2183112-20140901-update02.iso (or what ever is the latest version).

Logon to your vCentre server and run the ISO.

If all the components of the existing vCenter Server infrastructure are installed on the same machine, the easiest and fastest upgrade way it to select Simple Install on VMware vCenter 5.5 Installer screen. Remember that upgrading from 5.0 or 5.1 is much easier as SSO will be already installed and the upgrade of SSO will be almost seamless.
It will upgrade all necessary components of vCenter Server, starting with SSO. As you can see, I am upgrading from a version with SSO already installed (i.e. 5.1) so it says it will upgrade it.

After a few checks the upgrade process for SSO will start making sure that SSO users, groups and Lookup Services are migrated. The previous version will be uninstalled and the new one configured:
After Web Client, the next element is Inventory Service. You’ll be asked if you want to keep or overwrite your database:

And now vCenter Server itself will be upgraded:
After asking if the vCenter Server database should be upgraded
the installer will ask you a few other questions like if host agents should be updated automatically once vCenter Server upgrade is done or which account vCenter Server service should run on as well as you will be able to customized port used by vCenter Server. Finally the upgrade starts:
and the whole process completes successfully:
Once the vSphere Client is upgraded, you can check version of your vCenter Server:
Done. Almost everything has been done automatically and we were asked only for necessary information. If you want to have much more control over the upgrade process or if your vCenter Server components are installed on different machines, check the next post in the series when I show how to upgrade them.

Udate vSphere Update Manager:

Run the ISO again and choose Vsphere Update manager:


Tick the download if you have a internet connection:


Type your password for your installation:




Next through:



The installation will take the service off line so make sure no other Admins are working. Once finished you need to update your client.

vSphere Update Manager client update:

Open the vSphere Client, and log into the vCenter

From Plug-ins menu, select Manage Plug-ins

This should show the plug-in manager, that will show the VMware vSphere Update Manager, and blue link to download and install the plug-in.
At the end of the install, the plug-in will attempt to connect to the VUM server, accept the default certificate that is presented.


Note: This should add an Update Manager icon to the “Solutions and Application” portion of the vSphere Client:


Finally update the host!!

Update the host:

Download a ESXi image from VMware or if you have a HP as I do (HP ProLiant DL385 G7), then you can use the below which has all the HP drivers etc:

First put your chosen host into Maintenance mode.


Connect to your vCenter server using vSphere client. Click on Solutions and Applications -> Update Manager. Click on ESXi Images Tab and Select “Import ESXi Image”


Click on Browse and browse towards the ESXi 5.5 ISO image from your system and click on Next


Import ESXi Image wizard will detect the ESXi 5.5 information and click on Next to complete the Import.


Create a New Baseline for ESXi host upgrade.Enter the name ,description and Select Host Upgrade under Host baselines and click on Next


Select the ESXi Image to be included as part of this Upgrade baseline and click on Next.


Review the information for this baseline and click on Finish.


Select the cluster or Host to attach the newly created Host upgrade Baseline. Select the Update Manager tab and click on Attach. Select the checkbox for the baseline to attach to the Host. I am attaching this host upgrade baseline to my ESXi 5.5 host Click on Attach


Click on Scan to check the compliance for the Host against the attached baseline.


If the attached baseline is applicable to the selected Host, Click on Remediate and click on Next.


Accept the End user License Agreement for this ESXi 5.5 upgrade and click on Next.


Verify the Upgrade settings.Select the checkbox if you want to remove the installed third-party software that is incompatible with the upgrade, and continue with the remediation and click on Next.


Enter the Task name and description. If you want to perform this upgrade in later time,Select the checkbox At time and define the time. I am doing it with immediately option. Click on Next.


Specify the Host Remediation option as per your requirement and click on Next.


Specify the cluster Remediation options as per your requirement and click on Next.


Review the selected remediation settings and click on Finish to start the Upgrade process.

Once Upgrade Baseline Remediation is completed, your done!!

upgrade17 upgrade18

Tags: , , , , ,

Sound from a VM on ESXi

Posted by robd on March 05, 2014
vmware, vSphere, Windows 7 / 3 Comments

So I have a ESXi 5.1 set-up at home where I have a few Windows 7 machines running.  After connecting to a win7 VM the other day via RDP I noticed no sound was being passed.  Sound was enabled via RDP which left the VM itself, after some digging I found I had to edit the VMX file of the VM to add sound.  So after turning the VM off and browsing to the datastore I downloaded the VMX file and added these entries:

sound.present = “TRUE”

sound.virtualDev = “es1371”

sound.fileName = “-1”

sound.autodetect = “TRUE”

sound.startConnected = “TRUE”

Once I re-uploaded the VMX, Boom (literally), sound!!

Tags: , , , , ,

ESXi 5.0 – The free one

Posted by robd on June 14, 2012
ESXi 5.0, vmware / 6 Comments

So I tried to install ESXi 5.0 (the free edition) on a Dell OptiPlex 790 yesterday when I ran into a few issues with the Integrated Intel® 82579LM Ethernet LAN 10/100/1000 network card!!

Basically I kept getting this message:

So after some annoyance I found out I could inject the drivers for the network card into a ISO and obviously from there create a CD and install ESXi!!

So here how I did it:

  1. Download ESXi-Customizer (by Andreas Peetz) from here:
  2. Download the drivers that have been adjusted for ESXi from here:
  3. Start ESXi-Customizer, browse to the ESXi ISO, browse to the above drivers, browse to where you want the new ISO going! Click RUN!
  4. Bun the ISO and jam it in your 790!!

Job Done!

Tags: ,