VMware Cloud Community
marcgijsman
Contributor
Contributor

VMotion with service console command

Hi All,

Is it possible to vmotion (hot migration) a virtual machine from the service console to a different esx host?

Marc

0 Kudos
5 Replies
espi3030
Expert
Expert

I don't believe so, since vmotion is a Virtual Infrastructure Client feature.

0 Kudos
weinstein5
Immortal
Immortal

You can enable your ESX host for vmotion form the command line but I believe it needs to be intiated form VC since VC is what manages the process -

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

Hello,

You would need to write a VI Perl Toolkit script to talk to VC in order to initiate a vMotion.....


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.

CIO Virtualization Blog: http://www.cio.com/blog/index/topic/168354

As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
admin
Immortal
Immortal

You would need to write a VI Perl Toolkit script to talk to VC in order to initiate a vMotion.....

Another alternative is to use VMware's PowerShell bindings. Using these, VMotion is as simple as get-vm <your vm> | move-vm -destination (get-vmhost desthost).

0 Kudos
Texiwill
Leadership
Leadership

Hello,

Yes that would work as well from outside the Service Console. Since Powershell is not part of the SC (until there is a Linux version), it does not quite answer the question.


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.

CIO Virtualization Blog: http://www.cio.com/blog/index/topic/168354

As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos