[TriLUG] Semi-OT: vmware vmotion

Jim Ray jim at neuse.net
Tue Feb 22 19:25:44 EST 2011


Share the love, dude. Sounds awesome!

Regards,

Jim Ray, President
Neuse River Networks - ONE(tm) Plan to put IT maintenance behind the
scenes, after-hours and out of your way.

Tel: 919-838-1672 Cell: 919-606-1772 Skype: neusedotnet 
Web: http://www.neuserivernetworks.com Linkedin:
http://www.linkedin.com/in/neuse Facebook:
http://www.facebook.com/neuseriver Twitter: http://twitter.com/neuse



-----Original Message-----
From: trilug-bounces at trilug.org [mailto:trilug-bounces at trilug.org] On
Behalf Of David Black
Sent: Tuesday, February 22, 2011 1:17 PM
To: Triangle Linux Users Group General Discussion
Subject: Re: [TriLUG] Semi-OT: vmware vmotion

Getting the inspiration from someone else who wrote a similar script
using the VMware API, I put together a bash script that does a
suspend-unregister-reregister-resume to effect a poor man's vMotion.  It
leverages ESXi ssh access and included commands.   The downtime when
moving a VM this way is proportional to the amount of RAM in the VM,
typically 5-20 sec for my setup.

Like vMotion, the VM must reside in a datastore visible to both source
and destination ESXi hosts.
If the VM must be moved from one datastore to another, that's doable too
but involves an intermediate copy operation (takes longer).

If anyone wants, I'd be happy to post or share 'vmove' and a companion
script 'vclone' that clones VMs.

Dave

----- Original Message -----
> Jason,
> 
> For vMotion to work, you need the correct license (Enterprise I think)

> to enable vMotion *and* a shared storage solution (NFS, shared iSCSI, 
> or SAN).
> 
> If your two servers only have a locally attached datastore (on-board 
> SATA/SAS drive), you will not be able to vMotion your VM. The best you

> can do is suspend your VM then move the files to the other data store.
> 
> 
> Thanks,
> 
> -Ron
> rkelleyrtp at gmail.com
> 
> On Feb 22, 2011, at 12:42 PM, Jason Evans wrote:
> 
> > Hi all,
> >
> > I've got 2 servers both running esxi 4.1 each with 1 datastore. I'm 
> > trying to get vmotion to work between the two servers with the VM 
> > powered on without creating a go-between NFS share. In vshpere, I 
> > have a datacenter (XYZ) created and under the datacenter, I have 
> > cluster (ABC) created. In the cluster is host 1 and host 2. The VM 
> > is running RHEL5 and the goal is to migrate it from host 1 to host 2

> > without shutting it down. All of the documentation that I've seen 
> > says that an NFS share must be created or an external LUN must be 
> > connected to for this to work. Is there another way of doing this?
> > Thanks.
> >
> > Best Regards,
> > Jason
> > --
> > This message was sent to: Ron Kelley <rkelleyrtp at gmail.com> To 
> > unsubscribe, send a blank message to trilug-leave at trilug.org from 
> > that address.
> > TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> > Unsubscribe or edit options on the web :
> > http://www.trilug.org/mailman/options/trilug/rkelleyrtp%40gmail.com
> > TriLUG FAQ : http://www.trilug.org/wiki/Frequently_Asked_Questions
> 
> --
> This message was sent to: David Black <dave at jamsoft.com> To 
> unsubscribe, send a blank message to trilug-leave at trilug.org from that

> address.
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web :
> http://www.trilug.org/mailman/options/trilug/dave%40jamsoft.com
> TriLUG FAQ : http://www.trilug.org/wiki/Frequently_Asked_Questions

--
A wise and frugal government, ... which shall leave men free to regulate
their own pursuits of industry and improvement, and shall not take from
the mouth of labor the bread it has earned - this is the sum of good
government. - Thomas Jefferson, First Inaugural Address, March 4, 1801. 

--
This message was sent to: Jim Ray <jim at neuse.net> To unsubscribe, send a
blank message to trilug-leave at trilug.org from that address.
TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
Unsubscribe or edit options on the web	:
http://www.trilug.org/mailman/options/trilug/jim%40neuse.net
TriLUG FAQ          :
http://www.trilug.org/wiki/Frequently_Asked_Questions



More information about the TriLUG mailing list