VMware Cloud Community
Rajmohan
Contributor
Contributor

vmotion - vm migration from command line?

hello all,

Can any one help me, how to do a vmotion from ESX console (migrating a vm form ESX console).Iam using ESX 3.0.1

0 Kudos
8 Replies
aleph0
Hot Shot
Hot Shot

as far I know there is no way of vmotioning from command line.

cheers

\aleph0

____________________________

(in italian)

###############

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!

\aleph0 ____________________________ http://virtualaleph.blogspot.com/ ############### If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!
0 Kudos
weinstein5
Immortal
Immortal

I agree with aleph - vmotion is a virtual cneter function -

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
0 Kudos
Mark_Brophy
Contributor
Contributor

You can do it with Powershell and the VI toolkit. It's free and works very well.

0 Kudos
aleph0
Hot Shot
Hot Shot

agree: powershell will work but the question is about vmotioning with command line inside COS.

\aleph0

____________________________

(in italian)

###############

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!

\aleph0 ____________________________ http://virtualaleph.blogspot.com/ ############### If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!
0 Kudos
Erik_Zandboer
Expert
Expert

Hi,

I have seen some hints about how to go about it. The secret appears to lie in vimsh (doesn't it always). Somewhere in the vimsh command line you should request some kind of handle (which is a number), after which you can perform a vmotion by vimsh-ing directly between two hosts. According to this, it should be possible to vmotion without virtualcenter. I have never seen it work, and never took the time to figure it out..

EDIT: After looking through vimsh, I believe it was something related to vmish/vmsvc/acquiremksticket in order to get the "handle" described above. This ticket is needed when issuing the vmotion from vimsh (but where to do that??)

Visit my blog at http://www.vmdamentals.com
0 Kudos
aleph0
Hot Shot
Hot Shot

Yep,

look here

\aleph0

____________________________

(in italian)

###############

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!

\aleph0 ____________________________ http://virtualaleph.blogspot.com/ ############### If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!
0 Kudos
jose_maria_gonz
Virtuoso
Virtuoso

Hi team

I once used perl and SDK( MigrateVM.pl was include) in ESX 2.5 to script it although I guest ESX 2.5 is now out of the equation.

e.j: perl.exe MigrateVM.pl https://vmware-mgment:8443 Administrator passowerd /vcenter/Rack1/Database/test vmware-esx1

-


El Blog de Virtualizacion en Español

http://josemariagonzalez.es

0 Kudos
Rajmohan
Contributor
Contributor

thanks for every one. i understand that no direct way to do migration of Vm from esx console.

0 Kudos