VMware Cloud Community
wayneb14
Contributor
Contributor
Jump to solution

Moving VM from one host to another ESXi

Hi All

Quick question, If i wanted to move a VM hosted on one ESXi server to another ESXi server what is the simplest way? Do I have to use converter to do it?

Thanks

0 Kudos
1 Solution

Accepted Solutions
AndreTheGiant
Immortal
Immortal
Jump to solution

ESXi 4.1 (Vsphere Hypervisor)

So have Free Vmware Vsphere Client

In this case options are:

  • Standalone converter
  • Datastore browser (download and upload files)
  • SCP or FastSCP and then add the VM to the inventory with datastore browser
Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro

View solution in original post

0 Kudos
14 Replies
schepp
Leadership
Leadership
Jump to solution

If you don't have vCenter, you could simply shut down the vm, log into the esx server via ssh and copy the vm over to the second esxi using scp

e.g.:

scp -r /vmfs/volumes/volume1/path/to/vm-directory esx2:/vmfs/volumes/volume1

Regards

0 Kudos
chasecrum
Contributor
Contributor
Jump to solution

This will depend on what version of ESXi you're using.

The easiest way is to find the virtual instance and highlight it, then

export the instance (file>virtual appliance>export). This will download

the instance in a folder to where you are viewing it from. then just

reverse the process in import. I am not sure if this works in all

versions but I do know it works up until 3i (3.5.0)

-Chase

0 Kudos
wayneb14
Contributor
Contributor
Jump to solution

ESXi 4.1 (Vsphere Hypervisor)

So have Free Vmware Vsphere Client

Regards

0 Kudos
jeanes
Contributor
Contributor
Jump to solution

If you are using vCenter, the easiest way is: right-click vm, migrate, move to another Host, step through the rest of the steps.

0 Kudos
ABDJBR
Enthusiast
Enthusiast
Jump to solution

Hi ,

you have one of two option :

- install vCenter and move the VM from ESX host to another via vMotion ( ofcourse you have to connect to the vCenter using VI client and Manage both hosts via this vCenter )

- or use VMware Converter without ( in this case you don't need vCenter installed ) but in this case you will need to power down your VM , while in the first option you can do that without the hastle

0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

ESXi 4.1 (Vsphere Hypervisor)

So have Free Vmware Vsphere Client

In this case options are:

  • Standalone converter
  • Datastore browser (download and upload files)
  • SCP or FastSCP and then add the VM to the inventory with datastore browser
Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
akreitman
Contributor
Contributor
Jump to solution

We have a slightly different problem.  We have an ESX system that we're planning to us to create and configure VMs.   We want to then copy those VMs to ESXi systems that will be distributed as demo systems on private networks that may or may not have internet access.  Assume the same release level on both systems.  Those systems will be managed with the perl/power shell command line tools and scripts.  We need to copy the vms, their file systems and snapshots.   Is there any special magic we need to do beyond scp?

Thanks

0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

To use SCP you must enable SSH and root access.

To use FastSCP see Veeam docs.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
ABDJBR
Enthusiast
Enthusiast
Jump to solution

if you are using the same version of ESX & ESXi then managing those host with vCenter will offer you vMotion which will be the easiest way to migrate from one host to another rapidlly please check the link : http://www.vmware.com/files/pdf/VMware-VMotion-DS-EN.pdf

0 Kudos
akreitman
Contributor
Contributor
Jump to solution

We're not using vCenter.   Its too heavy for our requirements, too many prerequsites for a simple system that will consist of a SINGLE EXS system and a single ESXi system that will be running a half dozen (the same on both) vms.  We're deploying identical copies of the ESXi system by simple disk imaging.   Think simple, not the job security enhancing complicated.

0 Kudos
ABDJBR
Enthusiast
Enthusiast
Jump to solution

if you can afford downtime then you have a very simple time consuming solution : " Copy the VM files from one Host to another using SCP or using Datastore Browsing "

0 Kudos
akreitman
Contributor
Contributor
Jump to solution

These aren't production systems, so downtime issue don't exist.   Back to the question, beyond copying them, is there any other special magic I'll need to do?

0 Kudos
ABDJBR
Enthusiast
Enthusiast
Jump to solution

you will need to change the network config on both source and dest VMs if they are power on in the same time , and there is another suggestion which in my openiun better than the SCP method and will not require any Prequisties vmware standalone convertor also in this method you will not need to modify any thing if you have a DHCP server on the network

0 Kudos
tinovarghese
Contributor
Contributor
Jump to solution

enable vmotion and right click on ESX migrate host to another ESX ( Net work name should  same otherwise can't migrate )

0 Kudos