VMware Cloud Community
WarlockArg
Enthusiast
Enthusiast

Converting a physical linux host in a ESXi VM using a ghost image

First of all, I was looking another threads related to using a ghost image to create a new VM, but none of the explain the problem I'm having.

The problem is the following. I want to convert an old Suse distribution of Linux (of 4 years ago approximately) into a free ESXi host. The first problem is I don't have the root password of the linux host. The second one is a server in production, so I don't want to make a password recovery process (when I have it virtualized I'll do it).

So, what I did was to take a ghost image of the whole linux host disk drive. Afterward I upload the .gho image to the ESXi host via the VI Client. The problem I'm having now is how to make the VM to see the .gho that is inside the ESXi datastore, because I can create a new VM with a new virtual hard disk and I can boot it using a ghost loader. But inside the VM the ESXi datastore is not seen.

The only way I thought is to install the VM Client inside one of VM that are running. Download the .gho file to one of the VM's virtual hard disk. Create a new virtual hard disk for that VM and boot the VM using the ghost CD. Restore the .gho file and paste it into the new hard disk I had created. Afterward copy the vmdk file of that disk and use it in the new VM I had created for the Linux VM. I think this is not a clever process. I think it is going to work (I haven't done it yet), but it is not straightforward. So, the big question is: is there a better process to create a VM inside a free ESXi host using a ghost image?

Thanks in advance.

WarlockArg.

0 Kudos
8 Replies
marcelo_soares
Champion
Champion

VMWare Converter does not convert .gho files, only .m2vi (that I don't know how to generate with Ghost), sorry about that (I was very angry when I figured out this, because the VMWare Website says it is possible).

If the .gho file is not bigger than 4GB, you can create an iso image containing the file and then boot an VM with some OS cd containing the ghost executable and then plug the iso you generated (and copied before to the VMFS volume).

If it have more that 4GB you will really need to try some workaround as you mentioned.

Marcelo Soares

VMWare Certified Professional 310

Technical Support Engineer

Linux Server Senior Administrator

Marcelo Soares
0 Kudos
WarlockArg
Enthusiast
Enthusiast

Yeah, I forgot to say in my post that after finishing creating the ghost image I realized that VMware Converter didn't recognize the .gho image.

The .gho is 36GB large.

0 Kudos
athlon_crazy
Virtuoso
Virtuoso

Can ghost cd load / restore image from any network share like acronis? If can, just create new VMs for the image, boot with the cd & restore the image from network share.

vcbMC-1.0.6 Beta

vcbMC-1.0.7 Lite

http://www.no-x.org
0 Kudos
WarlockArg
Enthusiast
Enthusiast

Can ghost cd load / restore image from any network share like acronis? If can, just create new VMs for the image, boot with the cd & restore the image from network share.

vcbMC-1.0.6 Beta

vcbMC-1.0.7 Lite

http://www.no-x.org

Sorry, I didn't understand what you mean. Do you say I boot the VM with the Ghost CD and from inside the ghost application I upload the .gho image from a network share? If so, how I'm going to see the network share from Ghost if the VM still doesn't have any operating system to see network share?

0 Kudos
athlon_crazy
Virtuoso
Virtuoso

You dont need any operating system on the VMs. Like acronis bootable cd, it's run minimal OS ( Like BartPE) for you to restore supported image from network share to your empty partition.

vcbMC-1.0.6 Beta

vcbMC-1.0.7 Lite

http://www.no-x.org
0 Kudos
WarlockArg
Enthusiast
Enthusiast

You dont need any operating system on the VMs. Like acronis bootable cd, it's run minimal OS ( Like BartPE) for you to restore supported image from network share to your empty partition.

vcbMC-1.0.6 Beta

vcbMC-1.0.7 Lite

http://www.no-x.org

Ok, and does Acronis support .gho image from Ghost?

0 Kudos
athlon_crazy
Virtuoso
Virtuoso

I dont know whether acronis can support to restore .gho image.

Why not try to restore your .gho to any VMware workstation VM using bootable ghost.

  • - create bootable ghost on usb/iso but include with your .gho images

  • - create VM on VMware workstation with proper partition size

  • - Mount iso/usb and boot your VM using it

  • - Restore your image.

  • - Use VMware converter to transfer the image to ESXi

Donno whether it's working or not but it should be.

vcbMC-1.0.6 Beta

vcbMC-1.0.7 Lite

http://www.no-x.org
0 Kudos
js-hacki
Contributor
Contributor

If acronis true image is available, you can create an image of your linux server and convert the .tib file with the vmware converter into your esxi host.

0 Kudos