David Hill, my VMware vCloud partner in crime, has already put together a post about how to completely Uninstall vCloud Director, that also explains the manual removal of the vCloud Host Agent for version 1.0.1. As we are seeing with my recent post about Properly Stopping a vCloud Cell, some things are changed with 1.5. In fact removing the agent is another one of these little things.
If you are using 1.0.1 you will notice that the agent has an un-installer in the uninstalls directory of /opt/vmware, but on 1.5 there is not such a directory. This is because 1.5 uses the new VIB model of installing agents. ESXi 4.1 used the bundle model for updates so the method is completely different. In order to even see the installed agents you need to now use the “esxcli” commands with various switches. I wanted to provide a quick post of the new commands needed to uninstall the vCloud Director agent for version 1.5
To locate the name of the new vCloud Director 1.5 Agent (ESXi 5.0):
~ # esxcli software vib list | grep vcloud vcloud-agent 1.5.0-453916 VMware VMwareCertified 2011-08-25
To remove the vCloud Director 1.5 agent manually (ESXi 5.0):
~ # esxcli software vib remove -n vcloud-agent
Once you have the agent removed you can try to “Prepare” the host again from inside the vCloud Director 1.5 portal. If you have a mixed environment vCloud Director 1.5 still drops the old agent to the 4.1 hosts so you may still need to use the old uninstaller shown below.
To remove the vCloud Director 1.0.1 agent manually (ESXi 4.1):
/opt/vmware/uninstallers # ./vslad-uninstall.sh