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
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 !
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.
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
You can load the 2GB sparse driver
and convert your VMs via vmkfstools afterwards
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.
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 !