We help IT Professionals succeed at work.

Migrate VM from one Host to another

jskfan
jskfan asked
on
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.
b
Any idea why ?

Thank you
Comment
Watch Question

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
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#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.

Author

Commented:
the CD is disconnected from ESX1 and from ESX2

cc
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
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 ?

Author

Commented:
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

Author

Commented:
Trying to migrate to  .102  host:
m
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
Complete the VMware Tools install, or End the VMware Tools install, dismmount the CDROM in the VM.

try again
Seth SimmonsSr. Systems Administrator
CERTIFIED EXPERT

Commented:
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

Author

Commented:
I see... but which option should I choose..
I tried a Client and Host device , still did not work:
s

Author

Commented:
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 ..
c
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
disconnect ALL

Author

Commented:

disconnect ALL

Disconnect what ?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
ISO images and Floppy images.

Author

Commented:
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 ..
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
I think we need to have an overview of your setup.

Is this COLD or HOT (vMotion) migration?

Author

Commented:
The VM is powered On.. the Migration is Manual..
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
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 ?

Author

Commented:
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.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
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 ?

Author

Commented:
you can see VM1 on this screenshot moved from ESX1 to ESX2 when I select : Change both Computer resource and storage
aa
VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017
Commented:
how quick does it transfer the VM?

You could also try powering off the VM, and remove from Inventory and re-add.

Author

Commented:
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.

Author

Commented:
Andrew,

Both ESX hosts now can see the Shared Storage Open Filer...you would think vMotion will work
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
Unless you Lab is not setup correctly.

Author

Commented:
it sill works only when selecting : Change both Computer resource and storage.

Author

Commented:
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.

Author

Commented:
Well.. with Shared Storage: change compute resource only  it worked

Author

Commented:
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
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
difference between Shared Nothing Migration (vMotion) and vMotion.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.