VMware Cloud Community
liviodl
Contributor
Contributor

vcbRestore, Error: Failed to reconfigure virtual machine

Hi all,

I tried to use vcbRestore to restore a VM backed up with vmbk.pl.

I used this command:

vcbRestore -h 127.0.0.1 -u root -p -s . -a catalog -L 6

The restore was good until the end, when I obtained this error:

...

\[2007-05-28 18:05:10.386 'vcbRestore' 3076464768 error] Error: Failed to reconfigure virtual machine: The datastore name "/vmfs/volumes/storage1/test_1/test_1.vmdk" is invalid.

\[2007-05-28 18:05:10.806 'App' 3076464768 verbose] Got vmdb error -14 (Pipe connection has been broken) when invoking \[logout] on \[vim.SessionManager:ha-sessionmgr]

\[2007-05-28 18:05:10.813 'vcbRestore' 3076464768 info] Error on logout (ignored): vmodl.fault.HostNotReachable

\[2007-05-28 18:05:10.817 'vcbRestore' 3076464768 verbose] Shutting down VMDB service...

\[2007-05-28 18:05:10.817 'vcbRestore' 3076464768 verbose] Unregistering callback...

\[2007-05-28 18:05:10.821 'vcbRestore' 3076464768 verbose] ...done

Why does it appear? The path /vmfs/volumes/storage1/test_1/test_1.vmdk is good, is there something wrong with the parameters I used?

0 Kudos
15 Replies
mike81
Hot Shot
Hot Shot

Try to use absolute path when running vcbRestore

vcbRestore -h 127.0.0.1 -u root -p vmware -s /vmfs/volumes/storage1/

Rgrds,

Mike

0 Kudos
Chaton
Contributor
Contributor

Hi all,

I try to use the different vcb's command line. I don't know if i'm using the right way: in fact, i woul'd like to exclude one of my two disk from my backup. For doing this, I created my second hard disk with the independent mode (persistent).

Then, i use vcbMounter to perform a backup. When I try to restore my backup with vcbRestore, i have an error message:

2007-12-03 12:04:10.229 'vcbRestore' 3076448384 error Error: Failed to reconfigure virtual machine: The datastore name "" is invalid.

Here is the command line I used to backup my VM (I've already wrote my authentification informations in the backuptools.conf)

vcbMounter -a ipaddr:192.168.1.162 -r /vmfs/volumes/VMFS3-ISCSI-TEST2/backupvito -t fullvm -M 1

vcbRestore -s /vmfs/volumes/VMFS3-ISCSI-TEST2/backupvito

How can I exclude my second hard disk from my backup ?

Thanks for your help !

0 Kudos
donk1
Contributor
Contributor

Has anyone come up with a solution for the reconfigure error? My machine restores, but then I get the error "Error: Failed to reconfigure virtual machine: The datastore name "" is invalid." even tho the path is valid.

I am using vmbk to backup the virtual machines.

Any ideas?

0 Kudos
jkyriazakos
Contributor
Contributor

'vcbRestore' 3076453184 error] Error: Failed to reconfigure virtual machine: The datastore name "" is invalid.

Hi i get the above error when i try to restore my virtual machine. I am sure the datastore name and path are correct. Does anyone have an idea?

0 Kudos
terranus
Contributor
Contributor

I get the same error. After executing some tests I found that this error is occured as a result of backuping a virtual machine configured with virtual disks in independent mode. In this mode disks can not be snapshotted (snapshot is required for utilizing backup tools) and vcbMounter execute no error. It simply backup configuration and log files without "independent" disks.

To solve problem just check off independent mode and create backup again.

0 Kudos
terranus
Contributor
Contributor

Yes, you can. Just comment with '#' all lines describe your second hard disk in *.vmx file that lie in your backup folder.

0 Kudos
dconvery
Champion
Champion

You will also need to edit the .vmxf file most likeley...

Dave

************************

Accomplishing the impossible means only that the boss will add it to your regular duties.

Doug Larson

Dave Convery, VCDX-DCV #20 ** http://www.tech-tap.com ** http://twitter.com/dconvery ** "Careful. We don't want to learn from this." -Bill Watterson, "Calvin and Hobbes"
0 Kudos
terranus
Contributor
Contributor

Unfortunately, it's not possible 'cause in backup created by vcbMounter .vmxf file does not exist. In modified form it is merged by catalog file created automaticly.

0 Kudos
dconvery
Champion
Champion

Yes - the vmxf info is stored in the catalog file you can edit that.

Dave

************************

Accomplishing the impossible means only that the boss will add it to your regular duties.

Doug Larson

Dave Convery, VCDX-DCV #20 ** http://www.tech-tap.com ** http://twitter.com/dconvery ** "Careful. We don't want to learn from this." -Bill Watterson, "Calvin and Hobbes"
0 Kudos
proussel
Contributor
Contributor

I also get the same error, and after checking, my VM is not configured with virtual disks in independent mode (none of them are)... Did someone find out another explanation/solution? It would greatly help.

Thanks

0 Kudos
dconvery
Champion
Champion

did you check the vmx and catalog files?

Dave Convery

VMware vExpert 2009

Careful. We don't want to learn from this.

Bill Watterson, "Calvin and Hobbes"

Dave Convery, VCDX-DCV #20 ** http://www.tech-tap.com ** http://twitter.com/dconvery ** "Careful. We don't want to learn from this." -Bill Watterson, "Calvin and Hobbes"
0 Kudos
proussel
Contributor
Contributor

I checked both, it seems ok for me but I don't really know what I should look for... What could influence the recovery step?

Thanks

0 Kudos
dconvery
Champion
Champion

Those file include information about the associated VMDK files. If it is missing or had a different name, you can rename them. BTW, have you tried using VMware Converter to do this?

Dave Convery

VMware vExpert 2009

Careful. We don't want to learn from this.

Bill Watterson, "Calvin and Hobbes"

Dave Convery, VCDX-DCV #20 ** http://www.tech-tap.com ** http://twitter.com/dconvery ** "Careful. We don't want to learn from this." -Bill Watterson, "Calvin and Hobbes"
0 Kudos
proussel
Contributor
Contributor

Thanks again for your answer... Both files are here and with the good name... I tried this morning to use converter but i got this error:

Unable to connect network Share

I think my path's syntax i wrong, I tried both
192.168.xx.xx\vmfs\storage1\path\to\backup\vm.vmx and with / instead of \and the log don't tell me anythingmore usefull...

0 Kudos
dconvery
Champion
Champion

You won't be able to use Converter if they are on the VMFS LUN. Only if they are on a CIFS share. Did you "nano" or "vi" the catalog and vmx files and check the paths to the vDisk? sometimes the "scsi0-0-0-vmname-s001.vmdk" listed in the catalog is different from what is listed in the vmx.

Dave Convery

VMware vExpert 2009

Careful. We don't want to learn from this.

Bill Watterson, "Calvin and Hobbes"

Dave Convery, VCDX-DCV #20 ** http://www.tech-tap.com ** http://twitter.com/dconvery ** "Careful. We don't want to learn from this." -Bill Watterson, "Calvin and Hobbes"
0 Kudos