VMware Cloud Community
raimundasjan
Contributor
Contributor

Restoring vm in ESXi 4.0

Hello all,

currently i have two esxi hosts, one of them is esxi 3.5 u4 and other esxi 4.0. I have configured free backup solution with esxi_backup.pl script and successfully tested it backing up and restoring virtual machines on the same esxi 3.5 u4 host. Now i'm trying to move my vm's to the new esxi 4.0 host to upgrade old esxi 3.5 (i'm doing this becouse i need 64 bit support on guests, but when i was installing my first esxi host i forgot to enable Intel VT in BIOS), but when i move vm backup to my new esxi 4.0 server the vm does not start displaying error "coul'd not find file xxxxx-000003.vmdk". I have tryed to change virtual disk name in vmx file to xxxxx.vmdk and it works, but the state of vm is not from last snapshot but from the first install.

I would like to ask what do i need to do to load my vm with last snapshot.

Thanks

0 Kudos
6 Replies
athlon_crazy
Virtuoso
Virtuoso

If you still have the old image of the VM, use VMware converter to import the image to your ESXi 4.0 host. Converter will commit the snapshot but I believed it will maintain the last state of your VM.

vcbMC-1.0.6 Beta

vcbMC-1.0.7 Lite

http://www.no-x.org
0 Kudos
raimundasjan
Contributor
Contributor

i have vmware converter starter version, and it can only convert physical computer into vm, i could't import as appliance with it.

0 Kudos
raimundasjan
Contributor
Contributor

here is my vmware.log:

Nov 02 12:23:10.838: vmx| VMXVmdb_LoadRawConfig: Loading raw config

Nov 02 12:23:10.841: vmx| DISK: OPEN scsi0:0 '/vmfs/volumes/4ae974b9-de54c280-c9ad-00265558430a/Windows_XP/winxp-000004.vmdk' persistent R[]

Nov 02 12:23:10.856: vmx| DISKLIB-VMFS : "/vmfs/volumes/4ae974b9-de54c280-c9ad-00265558430a/Windows_XP/winxp-000004-delta.vmdk" : failed to open (The system cannot find the file specified): AIOMgr_Open failed. Type 8

Nov 02 12:23:10.856: vmx| DISKLIB-LINK : "/vmfs/volumes/4ae974b9-de54c280-c9ad-00265558430a/Windows_XP/winxp-000004.vmdk" : failed to open (The system cannot find the file specified).

Nov 02 12:23:10.856: vmx| DISKLIB-CHAIN : "/vmfs/volumes/4ae974b9-de54c280-c9ad-00265558430a/Windows_XP/winxp-000004.vmdk" : failed to open (The system cannot find the file specified).

Nov 02 12:23:10.856: vmx| DISKLIB-LIB : Failed to open '/vmfs/volumes/4ae974b9-de54c280-c9ad-00265558430a/Windows_XP/winxp-000004.vmdk' with flags 0xa (The system cannot find the file specified).

Nov 02 12:23:10.857: vmx| Msg_Post: Error

Nov 02 12:23:10.857: vmx| http://msg.disk.fileNotFound VMware ESX cannot find the virtual disk "/vmfs/volumes/4ae974b9-de54c280-c9ad-00265558430a/Windows_XP/winxp-000004.vmdk". Please verify the path is valid and try again.

Nov 02 12:23:10.857: vmx| http://msg.disk.noBackEnd Cannot open the disk '/vmfs/volumes/4ae974b9-de54c280-c9ad-00265558430a/Windows_XP/winxp-000004.vmdk' or one of the snapshot disks it depends on.

Nov 02 12:23:10.857: vmx| http://msg.disk.configureDiskError Reason: The system cannot find the file specified.----


Nov 02 12:23:10.862: vmx| Module DiskEarly power on failed.

Nov 02 12:23:10.862: vmx| VMX_PowerOn: ModuleTable_PowerOn = 0

Nov 02 12:23:10.862: vmx| WORKER: asyncOps=0 maxActiveOps=0 maxPending=0 maxCompleted=0

Nov 02 12:23:10.916: vmx| Vix: : VMAutomation_ReportPowerOpFinished: statevar=1, newAppState=1873, success=1

Nov 02 12:23:10.917: vmx| Vix: : VMAutomation_ReportPowerOpFinished: statevar=0, newAppState=1870, success=1

Nov 02 12:23:10.917: vmx| Transitioned vmx/execState/val to poweredOff

Nov 02 12:23:10.917: vmx| Vix: : VMAutomation_ReportPowerOpFinished: statevar=0, newAppState=1870, success=0

Nov 02 12:23:10.917: vmx| VMX idle exit

Nov 02 12:23:10.919: vmx| Vix: : VMAutomation_LateShutdown()

Nov 02 12:23:10.919: vmx| Vix: : VMAutomationCloseListenerSocket. Closing listener socket.

Nov 02 12:23:10.921: vmx| Flushing VMX VMDB connections

Nov 02 12:23:10.927: vmx| IPC_exit: disconnecting all threads

Nov 02 12:23:10.927: vmx| VMX exit (0).

0 Kudos
DSTAVERT
Immortal
Immortal

Remove the snapshot from the VM on ESXi 4 before you move it. How did you move the VM to ESXi 3.5

-- David -- VMware Communities Moderator
0 Kudos
raimundasjan
Contributor
Contributor

I have backed up guest vm in esxi 3.5 host with script to my local disk (the script has made snapshot of a running vm, copied *.vmdk, *.vmx, *.nvram, *.vmsd, *.vmxf and flat.vmdk files to my computer and deleted the snapshot) and then from my local disk i have uploaded entire directory to new esxi 4.0 host.

0 Kudos
raimundasjan
Contributor
Contributor

thank you all for replys. I made transfer to another esxi host vm's powered off via copying all vm's files.

0 Kudos