1 2 Previous Next 18 Replies Latest reply on Jan 30, 2013 11:42 AM by ereal

    Converting a Cent OS xen vm to esxi

    pprajapati Novice

      I converted a Cent OS VM on Xenserver to ESXi 5.0 using VMware converter. when i try to boot up the VM in esxi, i get the attached error.centos.PNG

        • 1. Re: Converting a Cent OS xen vm to esxi
          TonyNguyen Novice

          Do you convert to the VMWare Infrastructure or VMWare Workstation format?

           

          Also, what version of VMWare Converter did you use?

           

          In general, I've found a good catchall to solve problems post conversion is to use the OVF Tool. Download the VMWare OVF tool, convert the VMX to a OVF template and deploy in vCenter. Seems to work everytime.

           

          Hope this helps.

          • 2. Re: Converting a Cent OS xen vm to esxi
            pprajapati Novice

            I converted to the VMware infrastructure. I used VMware converter 5.0

             

            I will the suggestion you made and let you know.

             

            Thanks

             

            Sent from my HTC smartphone on the Now Network from Sprint!

            • 3. Re: Converting a Cent OS xen vm to esxi
              TonyNguyen Novice

              To use the OVF, try converting to workstation if doing the vsphere conversion doesn't work. The OVF file will use the vmx files and disks as the source input.

               

              Hope it helps!

              • 4. Re: Converting a Cent OS xen vm to esxi
                continuum Guru
                Community WarriorsUser ModeratorsvExpert

                Why do you think OVF will help here ?
                That would just be a completely unnecessary extra step - good idea if you get paid per hours..

                 

                The problem here obviously is the re-configuration of the guest - and maybe also the use of a XEN enabled kernel.
                For this problem OVF will be no help at all.

                 

                Also an export with Converter to Workstation is not an option for Linux - Linux VMs must be directly imported to ESXi as only on ESXi targets the reconfiguration procedure works.

                • 5. Re: Converting a Cent OS xen vm to esxi
                  pprajapati Novice

                  Then is there something called VMware kernel like xen kernel

                  Jus wondering as the error says about xen kernel.

                   

                   

                  Sent from my HTC smartphone on the Now Network from Sprint!

                  • 6. Re: Converting a Cent OS xen vm to esxi
                    cyclooctane Enthusiast

                    This is a grub error.

                    It has nothing to do with the method of V2V that was used

                     

                    Error 13 (according to the man pages) is as follows

                     

                    "13 : Invalid or unsupported executable format
                    This error is returned if the kernel image being loaded is not  recognized as Multiboot or one of the supported native formats (Linux  zImage or bzImage, FreeBSD, or NetBSD)."

                     

                    In all likelihood it is being caused by the line

                    kernel = /vmlinuz-2.6.18-194.17.4.el5xen


                    Grub can not find this kernel

                     

                    This could be for several reasions.

                     

                    Option 1. The name of the kernel is wrong. (since this is a xen kernel this would not supprise me)

                    Try editing the line in the grub boot loader and remove the "xen" from the end of it.

                     

                     

                    Option 2: Grub is looking in the wrong place on the file system for the kernel.

                    Again there is a good chance that this was caused by the V2V, possibly changing the partition numbers.

                     

                    To fix this one

                    Try running the following at the grub prompt

                    grub > find /vmlinuz

                    This should display the something like the following.

                    (hd0,0)

                     

                    Note that if it is different use what grub shows, it should be in the format (hd,X,Y)

                     

                    Next to get the full name of the kernel type

                    "grub > null (hd0,0) /vmli" and press TAB

                    This should output something like the following

                      Possible files are: vmlinuz vmlinuz-2.6.18-194.17.4.el5, vmlinuz-2.6.18-194.17.4.el5xen

                     

                    Lets say for this segment that the kernal is called (again use the grub output from the prevous line to gude you)

                    /vmlinuz-2.6.18-194.17.4.el5

                     

                    Now that you know the full name try typing the following

                     

                    grub > root (hd0,0)

                    grub > kernel = /vmlinuz-2.6.18-194.17.4.el5 root=/dev/VolGroup00/LogVol00

                    grub > boot

                     

                    This should boot the system (hopefully as long as nothing else it wrong)

                     

                    I hope this helps

                    Once you are up and running you will need to reconfigure grub.

                    There is plenty of data on google showing how to do this.

                     

                    Regards

                     

                    Cyclooctane

                    • 7. Re: Converting a Cent OS xen vm to esxi
                      pprajapati Novice

                      Sorry if I'm being a noob... But how do I get into grub? Do I have to do this by booting the old machine up in xenserver?

                       

                      Sent from my HTC smartphone on the Now Network from Sprint!

                      • 8. Re: Converting a Cent OS xen vm to esxi
                        pprajapati Novice

                        Figured it out. Will post the results soon

                         

                        Sent from my HTC smartphone on the Now Network from Sprint!

                        • 9. Re: Converting a Cent OS xen vm to esxi
                          pprajapati Novice

                          This is what i get when i run 'grub > find /vmlinuz'

                           

                          "Error 15: File not found"

                           

                          what do i do?

                          • 10. Re: Converting a Cent OS xen vm to esxi
                            cyclooctane Enthusiast

                            Sorry

                             

                            I forgot that grub does not support wild cards in the prompt. (or I can not remember how to use them)

                             

                            Any way when you type

                            find /vmlinuz

                            at the prompt, press TAB

                             

                            This should auto complete the line.

                            Then press enter.

                             

                            That should work.

                             

                            Also you will get an

                            Error 27: Unrecignized command

                            when you run

                            "grub > null (hd0,0) /vmli" and press TAB

                            However the autocomplete should work and you will get the name of the file anyway.

                             

                            The rest of the list should then work fine.

                             

                            I just tested it on a centos 5 system (that uses the same version of grub) and it works fine.

                            I just hope that the V2V will not cause driver issues.

                             

                            Regards

                             

                            Cyclooctane

                            • 11. Re: Converting a Cent OS xen vm to esxi
                              pprajapati Novice

                              Below is the error I get now

                               

                              cid:image001.png@01CD958C.D68FC9C0

                               

                               

                              Thanks,

                              Pratik Prajapati

                              • 12. Re: Converting a Cent OS xen vm to esxi
                                cyclooctane Enthusiast

                                I will look into this and try and replicate the problem.

                                 

                                Regards

                                 

                                Paul Duncan

                                • 13. Re: Converting a Cent OS xen vm to esxi
                                  pprajapati Novice

                                  I was able to finally figure it out!

                                   

                                  I had to go into linux rescue mode, set the IP and then ssh into the vm.

                                  Then, I had to modify few lines under /etc/inittab and then install a regular linux kernel.

                                  Uninstall Xen kernels, shut down the vm and boot it normally. Then remove the citrix .repo file and install vmware tools.

                                   

                                  All good!

                                   

                                  Thanks a lot for your help. Let me know if you need further details.

                                   

                                   

                                  Thanks,

                                  Pratik Prajapati

                                  • 14. Re: Converting a Cent OS xen vm to esxi
                                    cyclooctane Enthusiast

                                    So it was most likely a driver issue with the kernel drivers then.

                                    (since you had to modify /etc/inittab and install the normal kernel)

                                    I will make a note that ESXI does not like xen kernels.

                                     

                                    Anyway, great to know that it works.

                                    I am happy to help if anything else comes up.

                                     

                                    Posting what you did to the /etc/inittab here would most likely help someone who has the same problem.

                                     

                                    Regards

                                     

                                    Cyclooctane

                                    1 2 Previous Next