Restore Vm: From Flat Vmdk [best]

# Disk DescriptorFile version=1 CID=ffffffff parentCID=ffffffff createType="vmfs" RW <sectors> VMFS "myVM-flat.vmdk" The Disk Data Base #DDB ddb.adapterType = "lsilogic" ddb.geometry.cylinders = "xxx" ddb.geometry.heads = "16" ddb.geometry.sectors = "63" ddb.longContentID = "xxxxxxxxxxxxxxxxxxxxxxxx" ddb.thinProvisioned = "0" ddb.virtualHWVersion = "13" Calculate sectors : sectors = size_in_bytes / 512 Example: 10GB disk → 10*1024^3 / 512 = 20,971,520 sectors. Step 3: Recalculate Geometry (Optional but Recommended) For IDE or older OS, use:

Use vi or cat to create /vmfs/volumes/your-datastore/path-to-vm/myVM.vmdk with this template: restore vm from flat vmdk

ls -lh /vmfs/volumes/your-datastore/path-to-vm/VM-flat.vmdk Note the exact size in bytes. Create a new text file named exactly as the original descriptor, but without -flat . Example: If flat file is myVM-flat.vmdk , descriptor must be myVM.vmdk . descriptor must be myVM.vmdk .

restore vm from flat vmdk
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.