Avatar of jskfan
jskfan
Flag 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.
b
Any idea why ?

Thank you
VMware

Avatar of undefined
Last Comment
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

8/22/2022 - Mon
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

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.
jskfan

ASKER
the CD is disconnected from ESX1 and from ESX2

cc
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

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 ?
Your help has saved me hundreds of hours of internet surfing.
fblack61
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
jskfan

ASKER
Trying to migrate to  .102  host:
m
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

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

try again
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Seth Simmons

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
jskfan

ASKER
I see... but which option should I choose..
I tried a Client and Host device , still did not work:
s
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 ..
c
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

disconnect ALL
jskfan

ASKER

disconnect ALL

Disconnect what ?
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

ISO images and Floppy images.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
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 ..
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

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

Is this COLD or HOT (vMotion) migration?
jskfan

ASKER
The VM is powered On.. the Migration is Manual..
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

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 ?
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.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

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 ?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
jskfan

ASKER
you can see VM1 on this screenshot moved from ESX1 to ESX2 when I select : Change both Computer resource and storage
aa
ASKER CERTIFIED SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
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.
jskfan

ASKER
Andrew,

Both ESX hosts now can see the Shared Storage Open Filer...you would think vMotion will work
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Unless you Lab is not setup correctly.
jskfan

ASKER
it sill works only when selecting : Change both Computer resource and storage.
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.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
jskfan

ASKER
Well.. with Shared Storage: change compute resource only  it worked
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
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

difference between Shared Nothing Migration (vMotion) and vMotion.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck