VMware Cloud Community
maksum
Contributor
Contributor

Migrate with SSH

Hello

I want to ask a question.Can we migrate a virtual machine one esx host to other esx host with ESX console or SSH ,For example with Putty..

Thanks your help..

0 Kudos
7 Replies
vmroyale
Immortal
Immortal

If you want to move powered off VMs across ESX hosts, try using FastSCP or winscp to move the VMs.

Good Luck!

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
0 Kudos
jshelly
Enthusiast
Enthusiast

I recently had to do this and simply used putty and scp via command line. worked like a charm.

Login to the host server where the vm resides. (I tar'd the vm's directory)

scp source.tgz root@destservername:/vmfs/volumes/datastorename/

Unless I'm wrong, I don't believe there is a way to use winscp from esx host to esx host without copying local first

0 Kudos
sbeaver
Leadership
Leadership

SSH would be the best bet and I have done this before on numerous occasions but it is painly slow no matter how fat the network is.

Steve Beaver

VMware Communities User Moderator

Orlando Area VMware User Group Leader

====

Co-Author of "VMware ESX Essentials in the Virtual Data Center"

(ISBN:1420070274) from Auerbach

*Virtualization is a journey, not a project.*

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
0 Kudos
maksum
Contributor
Contributor

Sorry

I think , I ask my question bad.I want to ask that , We have Esx cluster.I want to migration with command line.Not VMware Infrastructure Client.Can I migrate a vm machine other host with command line !!

0 Kudos
sbeaver
Leadership
Leadership

With powershell and the powershell toolkit for VMware you can yes

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
0 Kudos
jshelly
Enthusiast
Enthusiast

If it's powered off. see my post

0 Kudos
azn2kew
Champion
Champion

You might have to use vmkfstools command line to import/export vmdk (guests). Here is more details of command line syntax.

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

Regards,

Stefan Nguyen

iGeek Systems Inc.

VMware, Citrix, Microsoft Consultant

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!! Regards, Stefan Nguyen VMware vExpert 2009 iGeek Systems Inc. VMware vExpert, VCP 3 & 4, VSP, VTSP, CCA, CCEA, CCNA, MCSA, EMCSE, EMCISA
0 Kudos