Converting Image File Format From GHO to VMDK and From VMDK to GHO
Converting Image File Format From GHO to VMDK and From VMDK to GHO
yogeshsadhu's picture
yogeshsadhu
02 Jun 2010

In your environment you may have to use different p_w_picpath file format while performing imaging or cloning operations, Ghost and Vmware are widely used technologies for preparing machine either for development or for testing purpose.

Ghost treats virtual disks as p_w_picpaths. You can p_w_picpath a machine to a virtual disk (create a vmdk file instead of a .gho file), and you can restore a machine from a vmdk file. While performing any imaging operation GHO is the default file format of ghost

VMDK files cannot be opened in Ghost explorer, You can mount a VMDK file by using ghost with switch –ad=<p_w_picpath file name>, once it is mounted can be used in all ghost operation.

You may want to use a Physical machine's Ghost p_w_picpath in vmdk or otherwise, you may want to use a vmdk to prepare a Physical machine .

By performing following simple commands you can convert the GHO files to VMDK and a VMDK file to GHO.

To convert from GHO to
VMDK
ghost32 -clone,mode=restore,src=my.gho,dst=myp_w_picpath.vmdk -batch -sure

To convert from VMDK to GHO spliiting into 100MB chunks
ghost32 -clone,mode=create,src=my.vmdk,dst=myp_w_picpath.gho -batch -sure -split=100

There are some more switch available

* vmdktype: Used for specifying the VMDK file type , which can be Sparse or Flat
* vmdksplit: Used for splitting the VMDK p_w_picpath
* vmdksize: Used in specifying the size of vmdk file
* vmdkAdapter: Specifying the type of disk adapter for created
vmdk

To create a VMDK file form machine directly
Ghost32 –clone,mode=create,src=1,dst=myp_w_picpath.vmdk -vmdk -sure

To restore VMDK p_w_picpath on machine directly
Ghost32 –clone,mode=restore,src=myp_w_picpath.vmdk,dst=1 -vmdk -sure