You can use the VMware vcbRestore utility to restore a Disk Image for a VMware Virtual Machine, whether the backup was performed from a VCB Proxy Server or from the Service Console. This type of restore will overwrite all existing data for the particular Virtual Machine if restored to the existing location.
Required Capability: See Capabilities and Permitted Actions
To
restore a corrupted or missing VMware Virtual Machine using vcbRestore
vcbRestore -h esxserver.mydomain.com -u root -p password -M 1 -s /vmfs/volumes/44c529af-b8365ad6-7307-0011435b35d5/restorevm
Where:
-h ESX
Server Host Name
-u ESX Server root login
-p ESX Server root password
-M 1 Restore the VM(vmsys1-flat.vmdk)to a
single file
-s <dir> Directory of backup image files
dir=/vmfs/volumes/SanBackup1/restorevm
NOTES
[2006-07-25 16:23:29.924 'App' 3076452480 info]
Current working directory: /root/scripts
[2006-07-25 16:23:29.972 'BaseLibs' 9620400 warning] [Vmdb_Unset] Unsetting
unknown path: /vmomi/
Converting "/vmfs/volumes/Vmfs3Vol1//restorevm/vmsys1.vmdk" (VMFS (flat)):
0%=====================50%=====================100
**************************************************
VMware ESX Server Question:
Registering the virtual machine
"/ha-folder-root/ha-datacenter/vm/adoniswin23"
would replace the already registered VM
"[Vmfs3Vol1] /adoniswin23/adoniswin23.vmx".
How do you want to proceed?
0) Abort Restore
1) Keep Existing
2) Replace Existing
Please choose a number [0-2]:
At the prompt, select 2 to replace the existing entry in the ESX Sever inventory.
NOTES