VMware Cloud Community
Marecki
Contributor
Contributor
Jump to solution

restore VM to another ESX host

situation is:

2 ESX hosts (esx01 and esx02) + storage named ESX + 1 VC server, connected also VCB machine.

There is also second esx cluster ESX03 and ESX04 + storage called ESX (but without VC).

Now I make VCB backup of one vm that is physically placed on ESX01 (let's assume it is named VM01) and storage also called ESX. So path is /vmfs/volumes/ESX/VM01.

When I have this backed via VCB I would like to copy this backed VM via SCP to ESX03 (connected to ESX storage). So I make this step with no problems, then I login via VI Client to ESX03 directly, I browse ESX Storage, I see copied VM files, I add vmx file to Inventory, but when I try to power it on I get error:

"A file was not found".

How to fix this thing? Thanks for any answers.

0 Kudos
1 Solution

Accepted Solutions
VMKR9
Expert
Expert
Jump to solution

ok you need to do a vcb restore, use restore.exe or vmware converter

View solution in original post

0 Kudos
11 Replies
VMKR9
Expert
Expert
Jump to solution

Check the path to the vmdks in the vmx file, a simple fix would be remove the disks from the vms properties and add them back in.

0 Kudos
oreeh
Immortal
Immortal
Jump to solution

Open the VMX file in an editor and check for invalid paths.

0 Kudos
Marecki
Contributor
Contributor
Jump to solution

I removed both disks, then when I try to add existing vmdk, I don't see any files in this browser. When I go to putty, I see, that both vmdk files are present in vm folder Smiley Sad

0 Kudos
VMKR9
Expert
Expert
Jump to solution

hmm, sounds like your copy has not worked correctly, can you provide a directory listing from the console so we can see?

0 Kudos
oreeh
Immortal
Immortal
Jump to solution

With two disks you should see four VMDK files.

Two descriptor files and two flat files.

0 Kudos
VMKR9
Expert
Expert
Jump to solution

also try doing a vmkfstools -i just copy to same directory but name the vmdk differently and that should confirm if the vmdk is valid?

0 Kudos
Marecki
Contributor
Contributor
Jump to solution

login as: root

root@172.29.28.137's password:

Last login: Tue May 20 14:40:56 2008 from 172.29.68.85

# cd /vmfs/volumes/ESX/

# ls

VM01 VM02

# cd VM01/

# ls

catalog VM01.vmxf vmware-1.log vmware-5.log

VM01.nvram scsi0-0-0-VM01.vmdk vmware-2.log vmware-6.log

VM01.vmsd scsi0-1-0-VM01_1.vmdk vmware-3.log vmware.log

VM01.vmx unmount.dat vmware-4.log

0 Kudos
oreeh
Immortal
Immortal
Jump to solution

You are missing the flat files.

Should be scsi0-0-0-VM01-flat.vmdk and scsi0-1-0-VM01_1-flat.vmdk in your case.

0 Kudos
Marecki
Contributor
Contributor
Jump to solution

don't worry (regarding to names) I already changed all names while pasting to this post Smiley Happy

As I said those files listed in post are made by VCB backup. When it backs up VM by VCB it makes only each vmdk file for each disk. That is why I now think it will be not possible to restore such VM without Virtual Center, am I right?

0 Kudos
VMKR9
Expert
Expert
Jump to solution

ok you need to do a vcb restore, use restore.exe or vmware converter

0 Kudos
Marecki
Contributor
Contributor
Jump to solution

ok, with VMWare Converter it works. Thank You all for help.

0 Kudos