View Single Post
  #1  
Old 11th July 2012, 08:43
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,034
Thanks: 265
Thanked 152 Times in 132 Posts
Default XenServer to VMware (Debian Squeeze)

I've got a XenServer VM what I would like to convert to VMware.
This can "in theory" be done with "VMware vCenter Converter Standalone Client".

In theory...

When you run the Converter as is, it will give an error when 99% is done of the converting.
Code:
FAILED: An error occurred during the conversion: 'GrubInstaller::InstallGrub: /usr/lib/vmware-converter/installGrub.sh failed with return code: 127, and message: Installing GRUB1 on (hd0)... /vmware-updateGrub.sh: 59: grub:
not found Error installing GRUB Error running vmware-updateGrub.sh through chroot into /mnt/p2v-src-root '
Basically the error is caused because the NEW layout responce string from: grub-install -v (grub-install (GRUB) 1.98+20100804-14+squeeze1)
The converter does not recognize the responce.
It should be: grub-install (GNU GRUB 1.98+20100804-14+squeeze1)

To fix this I added the following to /usr/sbin/grub-install:

Code:
if [ $# -eq 1 -a "$1" = "-v" ] ; then
  echo "grub-install (GNU GRUB 1.98+20100804-14+squeeze1)"
  exit 0
fi
Now when running the converter I get the following error:
Code:
FAILED: An error occurred during the conversion: 'GrubInstaller::InstallGrub: /usr/lib/vmware-converter/installGrub.sh failed with return code: 1, and message: Installing GRUB2 on (hd0)... /usr/sbin/grub-setup: error:
no such disk. Error installing GRUB Error running vmware-updateGrub.sh through chroot into /mnt/p2v-src-root
Unfortinatly running the created VM I get the error:
Code:
Error loading operating system_
When I boot from CD into rescue mode, I do see all the files
I guess that the only problem is Grub.
Now how do I reinstall Grub, and where should it be installed?
Using the Reinstall GRUB boot loader option from the rescue option does not fix the problem.

Anyone here who might know how and where to install the GRUB boot loader?
__________________
Never execute code written on a Friday or a Monday.
Reply With Quote
Sponsored Links