Moving VMs from ESXi 4.0 and 5.0 to 6.5

I've inherited some pretty old ESXi boxes - I've purchased new hardware, and have installed ESXi 6.5 on the new hardware. At this point I need to move the VMs from the current ESXI 4.0 and 5.0 boxes to the new 6.5 one.

I shutdown three VMs, and using SSH (and SCP), I copied the files from the old datastore to a new datastore on ESXi 6.5. All three of the servers failed to power on.

Two of them I believe failed because they have snapshots (I'll delete snaps before trying again)

The third has no snapshots, but it still failed to power on with the errors:

  • File system specific implementation of LookupAndOpen[file] failed
  • The file specified is not a virtual disk
  • Cannot open the disk '/vmfs/volumes/5e45a7c6-7d90d9e0-3242-b49691662e8c/CUCX-XX-CC1/CUCX-XX-CC1_1.vmdk' or one of the snapshot disks it depends on.
  • Module 'Disk' power on failed.

​

My overall question is, what's the best way to move (copy) these VMs from ESXi 4.0 and 5.0 hosts to my new 6.5 host.

Only the new host has support

There is no Vcenter available.

Posted Feb 17, 2020, 7:55 PM UTC

116
cantod21•

Check to see what type of disk format you have some of the old vmdks use to be twoGbMaxExtentSparse on ESXi 4 or 5 think !? Which are unsupported disk formats in newer versions.

Then if your looking at cloning from the command line with:

https://kb.vmware.com/s/article/1028042

- Note the above will only work on block storage and wont work for the likes of NFS (Also the clone will consolidate your snapshots into a single vmdk on the destination and leave your snapshots in place on the source) -Downside you need shared storage, and the vm will need to be powered off and could take a long time depending on how big your vms are.

What error do you see in the vmware.log at the time of the failed power on operation?

Hope this helps !

3
HotButteredGopherOP•

I think you're onto something here. These VMs are in production right now, so I can't shut them down and test. I did try and vmkftools one of my copies using that guide, and my 6.5 install gave the error:

DiskLib_Check() failed for source disk The specified feature is not supported by this version (24).

I'll have to wait until next weekend to power down these VMs again, and try to clone / move them.

1
cantod21•

u/HotButteredGopher

​

Ah I hope this provides more context as well, the multiextent module was removed since the disk formats were changed in newer builds, it hopefully might get you out of a bind :

"Clone or migration operations that involve non-VMFS virtual disks on ESXi fail with an error"

https://www.vmware.com/support/vsphere5/doc/vsphere-esxi-51u3-release-notes.html

​

Powering on a virtual machine on an upgraded host fails with the error: File [VMFS volume] VM-name/VM-name.vmdk was not found (2036572)

https://kb.vmware.com/s/article/2036572

1
DfGuidance•

You can load the 2GB sparse driver

esxcli system module load -m multiextent

and convert your VMs via vmkfstools afterwards

1
HotButteredGopherOP•

Forgot to ask, do you know of a way to tell what disk format I'm using? I dug through the old vsphere 5.0, but couldn't find any information about the disk format.

1
cantod21•

If its a twoGbMaxExtent you will have loads of vmdk files when you look at the datastore.

If you cat one of the descriptor files you see something like this:

[root@esx1:/vmfs/volumes/5cda94dc-71cec4ea-f532-0017a4770028/test-vm_1] cat "test-vm_1-000011.vmdk"

​

# Disk DescriptorFile

version=3

encoding="UTF-8"

CID=da3671c1

parentCID=4f953862

isNativeSnapshot="no"

createType="twoGbMaxExtentSparse"

​

parentFileNameHint="test-vm_1-000010.vmdk"

​

​

​

# Extent description

RW 30474240 SPARSE "test-vm_1-000011-s001.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s002.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s003.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s004.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s005.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s006.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s007.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s008.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s009.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s010.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s011.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s012.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s013.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s014.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s015.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s016.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s017.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s018.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s019.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s020.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s021.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s022.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s023.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s024.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s025.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s026.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s027.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s028.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s029.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s030.vmdk"

RW 30474240 SPARSE "test-vm_1-000011-s031.vmdk"

RW 29939200 SPARSE "test-vm_1-000011-s032.vmdk"

# Change Tracking File

​

changeTrackPath="test-vm_1-000011-ctk.vmdk"

​

# The Disk Data Base

#DDB

​

Sorry for the lack of format !

1
2
HotButteredGopherOP•

These are Cisco CallManager appliances that run a hardened version of linux. I don't have root access to them (and can't get it). I haven't read the docs on the converter, but I would assume it's not possible in this situation.

1

should still be able to do a disk based clone

1
PoSaP•

Might be you are able to use some backup software to backup and restore the VMs? There are a lot of changes between these versions. Not sure what converter could help here. Vladan wrote about changes in 6.5 that could be helpful.

https://www.starwindsoftware.com/blog/vmware-vsphere-6-5-what-to-be-aware-of-before-upgrade

1
WendoNZ•

For those 5.0 hosts I would start by upgrading them to 5.5. Then bring up VM compatibility and then try again.

You could also try Veeam's community edition to replicate them but I don't think it'll have support for 4.0 anymore. Can you upgrade the 4.0 hosts to 5.x?

1
HotButteredGopherOP•

Are you thinking that this is a VMware hardware compatibility issue? I don't have vcenter, so would you still recommend that I move the VMs using SSH as I've attempted to do currently?

I don't want to say that upgrading from 4.0 is out of the question, but I really don't want to poke that bear. I'd much prefer to move VMs off that host (and upgrade those VMs) one at a time.

1
WendoNZ•

I'm more thinking that no one has tested what you're trying to do to confirm it actually works.

Should it work? Probably, but 4.0 is really old and I'd expect any number of VMX changes/additions in that time even if the VMDK format didn't change and I think you'd have a much higher chance of success doing it the way you are if you're just moving by one major version, not two.

You could also try moving the VM's off your 5.x hosts, then try moving your 4.0 VM's to 5.x and use that as a stepping stone to 6.5. I'd still update your 5.0 hosts to 5.5 too since 5.0 is also really old (which should make you wonder about just how old 4.0 is)

1
HotButteredGopherOP•

If I went down the road of upgrading ESXi, would that modify the VMs themselves? u/cantod21 pointed out the disk format has likely changed between versions - if I upgrade ESXi, what is the chance that I wouldn't be able to run that VM once I was done?

Thanks for your input - if I can't get vmkftools to successfully clone these virtual machines, I'll look into upgrading

1
spyckotic•

How many total VMs do you need to move? Not helpful to your question but can you just move data into brand new VMs? Might be a little more work but less headache.

1
bobo_12•

Try vmware convertor. Its free and prety easy to use.

1