Link to home
Start Free TrialLog in
Avatar of jskfan
jskfanFlag for Cyprus

asked on

Migrate VM from one Host to another

Migrate VM from one Host to another

I m trying to migrate one VM from one host to another, but I keep getting the error shown on the screenshot below.
User generated image
Any idea why ?

Thank you
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

disconnect CDROM (ISO). Is it currently installing VMware Tools!

We covered this in another question! - https://www.experts-exchange.com/questions/29172805/Vmware-OVF-Export.html?anchorAnswerId=43031066#a43031066

Maybe my comment in that question needs to be selected as a Solution for you!!!!

BUT it's not good practice to keep ISOS or Floppy images attached to VMs, because it can and sometimes stops vMotion, or HA events, so always disconnect when finished.
Avatar of jskfan

ASKER

the CD is disconnected from ESX1 and from ESX2

User generated imageUser generated image
is VMware Tools currently being installed ?

is this a .linux VM ?

Click End VMware Tools.

Is that VMware Workstation you are using to Manage ESXi ?
Avatar of jskfan

ASKER

is VMware Tools currently being installed ?  : YES

is this a .linux VM ? : YES

Click End VMware Tools. : Already Installed

Is that VMware Workstation you are using to Manage ESXi ?
:  NO I am doing it from Vcenter
Avatar of jskfan

ASKER

Trying to migrate to  .102  host:
User generated image
Complete the VMware Tools install, or End the VMware Tools install, dismmount the CDROM in the VM.

try again
NO I am doing it from Vcenter

you might be trying to move the vm from vCenter, but the screenshots from your second post are clearly from workstation
looks like you are running esx nested as a guest there along with vCenter

yes, the cd is disconnected, but you are looking at the wrong place
you need to look at the guest running in esx (VM1), not esx itself
the guest has the mounted iso that needs to be disconnected for the move to complete
you need to right click VM1, go to edit settings and disconnect the iso or go to guest -> end tools installation
that is the place andrew is talking about; it's configured on the guest, not the host
Avatar of jskfan

ASKER

I see... but which option should I choose..
I tried a Client and Host device , still did not work:
User generated image
Avatar of jskfan

ASKER

With either Client / Host Device, Migration works only if I select : Change both Computer resource and storage. If I select  change compute resource only and click next the other ESX host will not show up in the wizard as Destination ..
User generated image
Avatar of jskfan

ASKER


disconnect ALL

Disconnect what ?
Avatar of jskfan

ASKER

there is not any connected

I still can Migrate VM  if I select : Change both Computer resource and storage.
If I select  change compute resource only and click next the other ESX host will not show up in the wizard as Destination ..
I think we need to have an overview of your setup.

Is this COLD or HOT (vMotion) migration?
Avatar of jskfan

ASKER

The VM is powered On.. the Migration is Manual..
if the VM is on that's a LIVE Migration e.g. it's a vMotion, which may require Shared Storage.

Do you have Shared Storage that this VM is stored on ?

Have you created your vMotion Network ?
Avatar of jskfan

ASKER

Mmmm you are right I do not have shared storage yet. But I do not understand why VM gets Migrated from one Host to another if I select the option : Change both Computer resource and storage.
Okay, there is a function called "Shared Nothing Migration" which does not use Shared Storage.

and does it work... and actually move the VM and it's storage from ESXi host A to ESXi host B?

and you can see the virtual machine now on ESXi Host B datastore ?

and here are the requirements

https://docs.vmware.com/en/VMware-vSphere/6.5/com.vmware.vsphere.vcenterhost.doc/GUID-9F1D4A3B-3392-46A3-8720-73CBFA000A3C.html

Argh....

This is nested ESXi in VMware Workstation.

Can you remove the CDROM device from the VM, just to check if this error is a red herring.

did you ever insyall VMware Tools on this Linux VM ?

and you have Ended the VMware Tools install ?

and dismounted the cdrom in the OS ?
Avatar of jskfan

ASKER

you can see VM1 on this screenshot moved from ESX1 to ESX2 when I select : Change both Computer resource and storage
User generated imageUser generated image
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

normal speed since the VM is linux and very small

My question was about when selecting the option : change compute resource only
There will be no Migration, because in the Migration Wizard it will not be able to see the Other ESX Host.
Avatar of jskfan

ASKER

Andrew,

Both ESX hosts now can see the Shared Storage Open Filer...you would think vMotion will work
Avatar of jskfan

ASKER

it sill works only when selecting : Change both Computer resource and storage.
Avatar of jskfan

ASKER

it sill works only when selecting : Change both Computer resource and storage
Unless if when Migrated to the Datastore of the other ESX host, it will force also to do state (CPU,Memory) Migration.
Avatar of jskfan

ASKER

Well.. with Shared Storage: change compute resource only  it worked
Avatar of jskfan

ASKER

Thank you:
what I learned:

I tried to migrate VM from one ESX host to another , they do not have Shared Storage. I was not able to Migrate it by selecting : change compute resource only, but I was able to Migrate it when selected: Change both Compute-resource and storage
After I added Shared Storage, I was able to  Migrate  it by selecting: change compute resource only  from one ESX to another and also by selecting  Change both Compute-resource and storage even from the shared storage to the local ESX host datastore
difference between Shared Nothing Migration (vMotion) and vMotion.