Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Converting Image File Format From GHO to VMDK and From VMDK to GHO

Created: 02 Jun 2010 | 22 comments
Language Translations
yogeshsadhu's picture
+6 6 Votes
Login to vote

In your environment you may have to use different image 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 images. You can image 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=<image file name>, once it is mounted can be used in all ghost operation.

You may want to use a Physical machine's Ghost image 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=myimage.vmdk -batch -sure 
To convert from VMDK to GHO spliiting into 100MB chunks
ghost32 -clone,mode=create,src=my.vmdk,dst=myimage.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 image
  • 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=myimage.vmdk  -vmdk -sure 
To restore VMDK image on machine directly
Ghost32 –clone,mode=restore,src=myimage.vmdk,dst=1  -vmdk -sure

Comments 22 CommentsJump to latest comment

Akshat's picture

cool tip yogesh..
Thanks a lot

-1
Login to vote
psm1968's picture

I gave this a try, but am getting an ABORT: 11030, Invalid Destination Drive. I've tried moving ghost32.exe to the same location as my GHO file and vice versa. Moved everything to the TEMP directory. Keep getting the same error. Almost like it doesn't have permission to create the file. I am an admin on my workstation, so I am thinking that should not be a problem. (GSS 2.5 v11.0.1.1533)

-1
Login to vote
chicago's picture

Hi , please reference the page
http://service1.symantec.com/SUPPORT/on-technology...

you should be use Ghost versions 11.5.

Good luck

-1
Login to vote
yogeshsadhu's picture

Can you provide the exact command you have used ; Error indicates destination is not accesible , so are providing complete path to dst=<> and it has enough space?

Yogesh Sadhu.

If you feel your issue has been addressed,please use the "Mark as Solution" link for the relevant thread.

+4
Login to vote
scottcopus's picture

I'm also getting the 11030 error.

I also tried creating a VMDK file using the command line:
   ghost32 –clone,mode=create,src=2,dst=myimage.vmdk -vmdk -sure
where my 2nd disk is connected via USB external adapter.  The error I got was:  Invalid switch: vmdk

I'm using Ghost32.exe version 11.0.2 from our GSS suite.  Does it require a newer version of Ghost?

thanks,
Scott

-1
Login to vote
chicago's picture

Hi , please reference the page
http://service1.symantec.com/SUPPORT/on-technology...

you should be use Ghost versions 11.5.

Good luck

+1
Login to vote
Istvan's picture

Hi, I have an image file created with Ghost2003. I would like to create from this image a virtual disk for VMware. I have downloaded VMware vCenter Converter SA, but it does not support .gho files. How can I do it?

Details: The original machine has dead and I changed the motherboard in it and done I full reinstall. Before I reinstalled the OS (XP Prof) I have made a Ghost2003 image of the system. So I have a .gho image and I want to create a virtual machine in VMware.

Thanx!

-1
Login to vote
rvp1001's picture

Need help troubleshooting the conversion of gho to vmdk format?

Not sure why it is complaining invalid destination drive.

Is it a 8.3 DOS thing?

My goal to clone gho image to vmdk so I can test the image.

Suggestion what are solution to convert gho to vmdk within ghost.exe command line.

I know that Vmware local converter has an option to restore from synmetic sv2i  format.

error mesage I'm getting.

O:\>ghost32.exe -clone,mode=restore,src="P:\1.0.2\x64\X64Cgm102.GHO",dst="F:\win
7\x64\vmdk\win7x64.vmdk" -batch -sure

ABORT: 11030, Invalid destination drive

-1
Login to vote
pietje1's picture

commands are OK, but you version of ghost32.exe is not.

when I use ghost32.exe with version 11.0.1.1533 I get the same error

when I use ghost32.exe with version 11.5.0.2113 everything works fine and I can use the vmdk with vmware

-1
Login to vote
Alvinh's picture

I use Ghost32.exe 11.5 version.

GHO to VMDK

CMD==> ghost32 -clone,mode=restore,src=my.gho,dst=myimage.vmdk -batch -sure 

1.How to deceide my restore disk space? => I check VM always get C disk has 120GB

2.How to split the VMDK file? Like from one to two or three file.

VMDK (5GB) => split => VMDK1(2GB) +VMDK2(2GB)+VMDK3(1GB)

-1
Login to vote
jrhudson's picture

I'm trying to convert a encrypted .gho file to a .vmdk.  Is this possible?

-1
Login to vote
yogeshsadhu's picture

It is not possible to covert an encrypted ghost image to vmdk

Yogesh Sadhu.

If you feel your issue has been addressed,please use the "Mark as Solution" link for the relevant thread.

+4
Login to vote
RogerSchneider's picture

Hi! Is it posible to convert a .gho to .vmdk with a trial version of Symantec Ghost? When I try to do it using the commmand lines mentioned before, after some time it aborts saying that Ghost32 can be used only from Symantec Ghost Console. The menus and options to create the .vmdk from the .gho are not clear to me

Thanks!

Roger.

0
Login to vote
japz87's picture

Hello. I have an old backup image created in .gho format that appears to be damaged. I intend to convert it to use it as a virtual machine, but the conversion process covered here throws me an error saying that my image is corrupt and then abort the operation.

Is there a tool or something that could help me recover this old image???

 

Thanks in advance.

Jorge

0
Login to vote
Nitin's picture

Hi Jorge,

You can try to open the image using Ghost Explorer. If it gives same error message of image corrupt then it is very difficult to retrieve the data.

Regards,
Nitin

If you feel your issue has been addressed to, please use the "Mark as Solution" link for the relevant thread

0
Login to vote
japz87's picture

Hi Nitin. Thanks for the response.

That's what I ended up doing. The image I had was spanned into 4 CD's, the first one was damaged.

To first, to recover the CD I used the software CD Recovery Toolbox Free (http://download.cnet.com/CD-Recovery-Toolbox-Free/3000-2352_4-10646814.html), to succesfully extract the .GHO. Once done that I copied all four .GHO on a single folder and opened the first file with the Ghost Explorer.

With Ghost Explorer, what I did was re compile the image into one file. This file, I was unable to do the conversion process covered in this thread, it just continued saying that the image was corrupt. Then, with the Ghost Boot Wizard I generated a new bootable media to install the image over Linux environment. This worked fine, the bootable recovery was done complete.

Just to add more to the case, this was done on a previously created virtual machine and there was an issue at OS boot, I believe because of hardware differences. So, then, with the image loaded in the virtual machine, I booted with a VM compatible recovery image generator and obtained a new image file. This then was converted with VMware vCenter Converter Standalone software to a completely new virtual machine. And that was it, I got a fully working virtual machin of the original image.

Hope this helps somebody. Have a happy new year everyone.

 

Jorge

0
Login to vote
Nitin's picture

Gorge,

Good to see that your problem is resolved by yourself. For safer side, I would recommend you to take snapshot of this vm as well as gho image so that if anything goes wrong you should have backup images. It depends on how important is the image for you.  

Happy new year you too...

Regards,
Nitin

If you feel your issue has been addressed to, please use the "Mark as Solution" link for the relevant thread

0
Login to vote
joevp_symsym sym's picture

how to convert a gho file which protected by password?

0
Login to vote
nycha's picture

Im getting "Operating system not found"

I created my vmdk file, from ghost files of a win 7 operating system, using the command line, without a hitch.

When i try to load it in VmWare, i get no operating system found.

What might the issue be??

I had previously created a vmdk file from a ghost files  of an XP operating system, using the same steps, and it loads and works fine in the same player.

0
Login to vote
MartinShaw's picture

Hi

I am pretty new to virtual machines but have been using ghost for some years. I followed the instructions to create a vmdk file from a gho file and it worked first time with no problems. My question now is how do I use the vmdk file to create a virtual machine that I can use on vmware player 6?

Martin

0
Login to vote
redleh's picture

Hi,

Just to warn there is an error on the command syntax on both the sections "To create a VMDK file form machine directly" and "To restore VMDK image on machine directly". I can see from the comments people experienced the same error that I did but thought problem was something else.

Basically there is no -vmdk switch, the error message even tells you that!!! the right switch is -batch. In fact if you compare the syntax above (the part about converting) then it is obvious.

After I got the error when I typed

Ghost32 –clone,mode=create,src=1,dst=myimage.vmdk  -vmdk -sure 

Just changed to 

Ghost32 –clone,mode=create,src=1,dst=myimage.vmdk  -batch -sure 

and it worked!

I haven't tried creating from vmdk to machine directly (yet) but seems pretty obvious you need to use -batch instead of -vmdk.

Can you please update the page so other users won't experience some of the issues anymore?

Thanks,

Helder

 

 

+1
Login to vote
smartmeister's picture

Thanks for your help ! Don't hold your breath for the update though, the original poster is probably no longer a symantec employee.

0
Login to vote