Converting Xen VM to VMware VM failed !

ashsysad
ashsysad used Ask the Experts™
on
Hello,

I'm involved in Server consolidation project using VMware. I could successfully convert several physical servers to VMware VM using vCenter vConvertor. However am facing problem in converting a VM hosted on XEN server to VMware VM. After the conversion is done, when I tried to bring up the converted VM, it failed at boot. It says the Kernel couldn't be loaded. I tried few options to resolve this problem but couldn't succeed. Please help me in this. Please let me know if you have a standard steps for converting a Xen VM to VMware VM.

Thankyou.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
If you've not watch and read the best practices video these may be of help, and also Bestway's article.

What VM are you converting, what OS?

Download VMware vCenter Converter here

http://downloads.vmware.com/d/info/datacenter_downloads/vmware_vcenter_converter_standalone/4_0

VMware vCenter Converter Standalone 4.x Documentation

http://www.vmware.com/support/pubs/converter_pubs.html

VMware vCenter Converter Standalone 4.3 User Guide

http://www.vmware.com/pdf/convsa_43_guide.pdf

For the conversion steps, read fellow Expert Bestway's article.

http://www.experts-exchange.com/Software/VMWare/A_3639-VMware-vConverter-P2V-for-Windows-Servers.html

Best Practice Video Guide here

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004588

Author

Commented:
@hanccocka, thanks for the links. I already have most of the documents which you mentioned and has a vConvertor plugin installed on my vCenter server. I did a good search to find the procedure to convert a LINUX VM hosted on a XENSERVER to VMware VM but unfortunately i couldn't find any.

I found guides for converting Windows HyperVM or Ghost image to VMware VM but no guides for XEN VMs :(

Author

Commented:
Please note I need steps for converting a LINUX Xen VM to VMware VM.
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
You may find the Standalone Conveter has a better success at conversion that the vCenter plugin.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:

Author

Commented:
Mhh let me give a try and update you the status. thanks for your help !
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:

Author

Commented:
Thanks again :)

Author

Commented:
@@hanccocka, I tried with VMware Standalone convertor but getting the same problem. The conversion goes fine but when I tried to boot the converted VM, it doesn't boot.

Here's the screenshot. Xen VM doesn't boots up after conversion
Commented:
***I highly suggest that you copy and past the commands below***


I have had to do this several times....here is what I do....

each step, I'll give you a short description of what to do and then I'll follow with the commands....

***if you are wondering why I have you building a local repository first, it's because most VMs that have the XEN kernel take extensive configuring for network connectivity and this speeds things up!

1. mount the distro to the local VM
2. go through the following commands to copy all RPM files from the local disk, install the createrepo RPM, create a local repository.

# mkdir /mnt/cdrom
(this creates a directory for you to manually mount the CD/DVD drive to your VM

# mount /dev/cdrom /mnt/cdrom
(this mounts the CD/DVD drive to the VM so you can access the distro CDs/DVD files

# cd /mnt/cdrom
(go to the temporarily mounted CD/DVD disk

*MAKE SURE YOU GIVE A "dir" COMMAND AND SEE THE CDS/DVD CONTENTS!!!

#mkdir -p /var/repo/isorepo/Server
(this creates a directory for you to store the RPM files from the CDs/DVD)

# find . -iname "*.rpm*" -exec cp -rf {} /var/repo/isorepo/Server \;
(this recursively finds all RPM files and copies them to the directory that you created just above)

*wait for the copying to finish

# cd /var/repo/isorepo/Server ; eject
(this takes you to the location that you copied all the RPMs and also ejects the CDs/DVD that you mounted)

# rpm -Uvh create*
(this will install the "createrepo" RPM that will allow you to build your own local repository)

# cd /var/repo
(this is where you will build your local repository)

# createrepo .
(this starts the build of your local repository)

let the building of your local repository finish!!!

# echo -e "[test]\ngpgcheck=0\nname=localisorepository\nbaseurl=file:///var/repo/" > /etc/yum.repos.d/isorepo.repo
(this will create the "local repository" configuration file)

# yum clean all ; rm -rf /var/lib/rpm/__* ; rpm --rebuilddb ; yum repolist
(this will clean up your repository settings on your VM, and finalize your local respoitory)

..............................................................................
You now have a local repository setup on your VM......

NOW,

1. do a yum search for a NON XEN kernel....

# yum search kernel | grep -e ^kernel

2. copy and past the name of the kernel (NON XEN kernel)

# yum install kernelnamehere


3. reboot your machine (MAKE SURE THAT UPON THE GRUB BOOTUP SCREEN, YOU HIT A KEY AND INTERRUPT THE BOOTUP PROCESS......THEN SELECT THE NON XEN KERNEL

4. if you did everything correctly (and I didn't have any typos or leave something out,.......) you should be able to complete the last of the steps


5. look for all XEN packages installed

# yum list installed | grep -i xen

6. yum remove putxenpackagenameshere

7. reboot machine

8. reinstall vmware tools to clean everything up.....and thats it


Author

Commented:
Thankyou for helping me.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial