Solved

P2V for CentOS 4.7

Posted on 2010-09-02
22
1,833 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.
0
Comment
Question by:Paul S
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 12
  • 10
22 Comments
 
LVL 22

Accepted Solution

by:
Matt V earned 250 total points
ID: 33592247
VMware converter standalone supports Linux P2V.
0
 
LVL 11

Author Comment

by:Paul S
ID: 33592254
Is that free? Can you provide a link?
0
 
LVL 11

Author Comment

by:Paul S
ID: 33592265
I think I found it. Any articles that have VMware converter on Linux for Dummies ?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 22

Expert Comment

by:Matt V
ID: 33592267
http://www.vmware.com/products/converter/

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

Expert Comment

by:Matt V
ID: 33592272
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)
0
 
LVL 11

Author Comment

by:Paul S
ID: 33592295
Do I install the client or server when asked?
0
 
LVL 22

Expert Comment

by:Matt V
ID: 33592307
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.
0
 
LVL 11

Author Comment

by:Paul S
ID: 33592310
So I should just start the install on my production CentOS box and see what happens?
0
 
LVL 22

Expert Comment

by:Matt V
ID: 33592341
Unless you want to test it on a quick VM first.
0
 
LVL 11

Author Comment

by:Paul S
ID: 33592413
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
0
 
LVL 22

Expert Comment

by:Matt V
ID: 33592431
tar xzvf VMware-converter-xxxxxxx

xzvf to unzip and untar.
0
 
LVL 11

Author Comment

by:Paul S
ID: 33592445
thanks, i just found that after a google search.
0
 
LVL 11

Author Comment

by:Paul S
ID: 33592453
It is asking if I want to install client and/or server. The default is yes to both. use defaults?
0
 
LVL 11

Author Comment

by:Paul S
ID: 33592464
It is installing now. I accepted all defaults accept for tcp port numbers which would conflict with the web app on the server.
0
 
LVL 22

Expert Comment

by:Matt V
ID: 33592467
To convert the local machine I think you only need the client.
0
 
LVL 11

Author Comment

by:Paul S
ID: 33592472
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
0
 
LVL 22

Expert Comment

by:Matt V
ID: 33592481
Are you running it from X Windows or a command line only boot?
0
 
LVL 11

Author Comment

by:Paul S
ID: 33592526
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?
0
 
LVL 22

Expert Comment

by:Matt V
ID: 33592536
Yes, it will work with all the current versions of VMware and quite a few older ones.
0
 
LVL 11

Author Comment

by:Paul S
ID: 33592553
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.
0
 
LVL 22

Expert Comment

by:Matt V
ID: 33592579
It will make the machine bootable then you will want to install the vmware tools
0
 
LVL 11

Author Closing Comment

by:Paul S
ID: 33598467
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.
0

Featured Post

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question