Ok...I have good news. I got the script to work, but now I am stuck with another issue. Let me explain what I was doing wrong first. I was running vifpinit on BOTH servers THAN trying run the script. I re-read you directions (which by the way are EXCELLENT) and I missed the step where you only ran the init on ONE server, the source, ran the script and it worked, partially.
My issue now, like I said I ran the script, it connected to my SOURCE server, I was able to select the VM I wanted to migrate, and it migrated it to the DETINATION server. Although, when I log into the DESTINATION server the VM is NOT there. At the bottom of the "recent tasks window" I have the following error listed..
Register Virtual Machine ha-datacenter X-The Object or item referred to could not be found. intiated by vi-admin00
Not sure why this is happening. The vm still resides on the SOURCE server, BUT I have to go into the datastore and re-register the .vmx file. The VMis no where on the DESTINATION server.The script does everything and reports NO errors at all.
Any idea? I dont think I am missing anything....let me know if you need more information.
Thanks!
EDIT: Ahhhh CRAP! I didnt read this part, sorry! ...*
migrations of virtual machines residing on shared storage between the hosts. *These are two different machines, NOT sharing storage, so this script will not work correct between two NON-shared storage devices.
Really nice script though, maybe once I get some shared storage I can utilize something like this.