Not long ago VMware discharged the VMware Infrastructure Toolkit (for Windows). This was another PowerShell interface for VMware Infrastructure 3. I'm a major enthusiast of the power and effortlessness of PowerShell, so I thought I'd attempt to make something with the content and show it off amid my discussion at VMworld on Deploying VMware in a Microsoft Shop. The inquiry is what do I make? There has been some significant discussion about Microsoft's Quick Migration and VMware's VMotion and are they meet or not, do they take care of similar issues, and so on.
This post isn't to return to that discussion. Something that was additionally raised again and again in the exchange was the way that Quick Migration was free and accompanied Hyper-V since it depended on Microsoft Clustering while VMware VMotion was just accessible in the most costly Enterprise SKU of VMware Infrastructure. So there it was - I have to make Quick Migration for the lower valued and free VMware arrangements. I went off, constructed my little content, and demonstrated it off at VMworld. There was an excellent reaction to it, so I'm posting it here for others to utilize or enhance anyway you see fit.
The content merely works like Microsoft Quick Migration - the virtual plate is put away on shared capacity, the VM is suspended to drive, and the VM is then continued on the goal. Presto! Here's a quick video:
To set this up in your condition you'll require a couple of things:
- 2 VMware Infrastructure 3 has
- Windows PowerShell (and the majority of the pre-necessities for that if necessary)
- VMware Infrastructure Toolkit (for Windows)
- The VM Migrator content from me
- A VM you need to relocate - it doesn't make a difference what the visitor OS is
Once you have the majority of that, you're prepared to go. Accepting you have Microsoft PowerShell introduced and the VMware Toolkit introduced over that you ought to be set up to run the content. PowerShell has some worked in security so you may need to either (an) answer yes when it prompts you to run unsigned contents, (b) sign this content and make it yours, or (c) Set-ExecutionPolicy unhindered. After you have the majority of that dealt with merely run the content by opening another PowerShell window, changing to the way of the document, and moving it utilizing ./vmmigrator-1.0.ps1. The material will invite you to the VirtualCenter address and a proper username and secret word to associate with it. You'll next provoked for which VM you need to move and where you need to run it. The content does some essential checking for arranging, datastore, and associated gadgets before it will give you a chance to run.
Some very late notes:
- I'm not an engineer or scripter regarding professional career. This thing can most likely be enhanced a considerable measure. Don't hesitate to do only that.
- You can post the content or your alterations wherever you need. I request a cordiality connect back to here also.
- Lamentably, the free ESXi has a negligible API set empowered in the current 3.5 U2 discharge. This content won't work with it. I've conveyed this to the item supervisor's consideration, and I'm trusting we can open the API set up to everything in a matter of seconds. Not sure why it was confined in any case. For the time being, you'll require in any event the Foundation SKU of Virtual Infrastructure.
Some future things I'd jump at the chance to do with this:
- I say the content requires shared capacity at this moment. However, it doesn't. The PowerShell cmdlet that moves completes a "Move VM" which will move the space for the VM starting with one central datastore then onto the next. That procedure is SLOW. However, it works. At the present time the content is hardcoded to keep things on the same datastore. With some slight adjustments, it can complete a Quick Migration with two independent hosts. I'll most likely make a form 2 that will do that.
- I need to incorporate this into PowerGUI so you can right-tap on a VM in Virtual Center and run this content which will complete a Quick Migration to a large group of your decision. That task is a little further down my plan for the day.
I trust you appreciate the content. Don't hesitate to leave remarks to fill me in as to whether this is helpful or not.