Thursday, September 18, 2008

Updating ESXi

Theres no gui update?!?!  Wassup with that? After all the update file comes in a nice little zip file all packaged up already.   Well heres the command to do it but you will have to go download the VMware Infrastructure Remote CLI tool from vmware and install it.

C:\Program Files\VMware\VMware VI Remote CLI\bin>vihostupdate.pl --server 10.0.200.70  -i -b c:\tmp\txt\VMware_ESXi_bug_fix_for_expire\ESXe350-200807812-O-BG.zip

Oh and you can go download and check for updates from here:  http://support.vmware.com/selfsupport/download/

So far there are 2 patches that I know you will need for the ESXi:
  1. ESXe350-200807812-O-BG.zip
  2. ESXe350-200808201-O-UG.zip
And you have to install them in this order also.  Dont forget a reboot is required after each one!

Wednesday, September 17, 2008

ESXi Register a Host using the CLI

So you copied a VM's directory and want to move it over to another host, but how do you make it show up in the console so that you can start it.  First you need to go download the VMware Infrastructure Remote CLI tools and install it.  If you are on a windows machine you punch in the following command:

C:\Program Files\VMware\VMware VI Remote CLI\bin>vmware-cmd.pl -H 10.0.200.70 -U root -P myPassword -s register [datastore1]RHEL4/RHEL4.vmx localhost.localdomain default_resource_pool

You will have to create a resource pool and put it in there.  To create one just right click on your datacenter icon in the console and click on New Resource Pool