VMware

Quick Migrate Function

VERSION 1 Published

Created on: Jul 31, 2009 12:43 PM by justingrote - Last Modified:  Jul 31, 2009 12:46 PM by justingrote

VMWare Quick Migration Function


Author: Justin Grote <jgrote NOSPAMAT enpointe DOT com>
Credit: Inspired by Mike DiPetrillo's Quick Migration Script: http://www.mikedipetrillo.com/mikedvirtualization/2008/10/quick-migration-for-vmware-the-power-of-powershell.html
Version: 0.1
Last Revised: 31 July 2009

Description: Performs the fucntional equivalent of a Hyper-V Quick Migration by suspending a VM,
moving it to a new host, and resuming it. This does not require vMotion licensing.
it works by providing required VM objects via the pipeline or the second argument,
and specifying the Destination host in the first argument.
The commeand accepts both text strings and VMHost objects for the VMHost Parameter

Prerequisites:
Powershell v1
VMWare PowerCLI 4.0 (May work with earlier version but not tested)

Instructions to Install: Save this script and import into your session with, for example, . C:\temp\quickmigrate.ps1
You can also include it in your PowerCLI profile to have it automatically included.

Command Usage: get-vm MyTestVM | Quick-MigrateVM "MyTestHost2"

Attachments:
Average User Rating
(1 rating)




There are no comments on this document

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities