We help IT Professionals succeed at work.

P2V for CentOS 4.7

Paul S
Paul S asked
on
2,083 Views
Last Modified: 2012-05-10
I am trying to virtualize my CentOS 4.7 server into VMware. I am using an acronis linux boot disk to make a backup and then restore to a VM. When I boot the VM I get a kernel panic.

I am pretty sure that the problem is that CentOS 4.7 is not configured to use the correct SCSI driver which prevents it from finding the root drive which causes the kernel panic. I think I just need to use mkinitrd to compile a new kernel boot image with the VMware LSI SCSI driver.

The problem is that I am a linux novice and I need idiot proof instructions on how to do this. I was able to get the VM to boot if I put in a CentOS 5.2 install disc and upgrade, but then all my applications do not work, because they were compiled for CentOS 4.7. I also tried using a CentOs 4.8 install disc to do an upgrade, but it doesn't redetect my SCSI like the 5.2 install disc did.

Any help would be great.
Comment
Watch Question

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Paul SDesktop Support Manager / Network Administrator
CERTIFIED EXPERT

Author

Commented:
Is that free? Can you provide a link?
Paul SDesktop Support Manager / Network Administrator
CERTIFIED EXPERT

Author

Commented:
I think I found it. Any articles that have VMware converter on Linux for Dummies ?

Commented:
http://www.vmware.com/products/converter/

Check out the FAQ, you can also convert Acronis images.

Commented:
The app is very easy to use, you pick the source machine or image and then pick the destination (ESX/ESXi host, VMware Workstation etc)
Paul SDesktop Support Manager / Network Administrator
CERTIFIED EXPERT

Author

Commented:
Do I install the client or server when asked?

Commented:
I forget which allows you to do remote machines, but it will tell you when you install it if you need server, there is a little info window that pops up.
Paul SDesktop Support Manager / Network Administrator
CERTIFIED EXPERT

Author

Commented:
So I should just start the install on my production CentOS box and see what happens?

Commented:
Unless you want to test it on a quick VM first.
Paul SDesktop Support Manager / Network Administrator
CERTIFIED EXPERT

Author

Commented:
This is the error I am getting:

 tar -xvf VMware-converter-4.0.1-161434.tar.gz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Error exit delayed from previous errors

Commented:
tar xzvf VMware-converter-xxxxxxx

xzvf to unzip and untar.
Paul SDesktop Support Manager / Network Administrator
CERTIFIED EXPERT

Author

Commented:
thanks, i just found that after a google search.
Paul SDesktop Support Manager / Network Administrator
CERTIFIED EXPERT

Author

Commented:
It is asking if I want to install client and/or server. The default is yes to both. use defaults?
Paul SDesktop Support Manager / Network Administrator
CERTIFIED EXPERT

Author

Commented:
It is installing now. I accepted all defaults accept for tcp port numbers which would conflict with the web app on the server.

Commented:
To convert the local machine I think you only need the client.
Paul SDesktop Support Manager / Network Administrator
CERTIFIED EXPERT

Author

Commented:
install done.

now I get this when I run it.

/usr/bin/vmware-converter-client now
/usr/lib/vmware-vcenter-converter-standalone/converter-gui: /usr/lib/libpng12.so.0: no version information available (required by /usr/lib/vmware-vcenter-converter-standalone/lib-client/libQtGui.so.4)
converter-gui: cannot connect to X server

Commented:
Are you running it from X Windows or a command line only boot?
Paul SDesktop Support Manager / Network Administrator
CERTIFIED EXPERT

Author

Commented:
putty ssh session.

Anyways, i skipped that and ran the converter on my windows pc and started the P2v task to one of our ESX boxes. so far so good.

I am hoping to copy the vmdk file from this new VM to use with VMware server 2.x. That should work right?

Commented:
Yes, it will work with all the current versions of VMware and quite a few older ones.
Paul SDesktop Support Manager / Network Administrator
CERTIFIED EXPERT

Author

Commented:
14 % done now. You may not here fro me until tomorrow. I will let you know how it goes. I assume the Converter will install all the needed SCSI drivers for me.

Commented:
It will make the machine bootable then you will want to install the vmware tools
Paul SDesktop Support Manager / Network Administrator
CERTIFIED EXPERT

Author

Commented:
I used vmware converter on my windows pc to connect to the vmware converter client on my linux box, then transfered to my ESX host, installed vmware tools, them shutdown VM and moved the vmdk file to my other server running VMware server 2.x and swapped in the new vmdk file. Worked like a charm.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.