Bitácora de EleKtR0

English - Italiano - Deutsch - Français - Português - русский

3 de julio de 2012

Virtualizando máquinas físicas con Vmware Converter 5

Convertir una máquina física a máquina virtual con VMWare Converter puede ser una odisea si la máquina física y el servidor ESXi no están en la misma subred, nos olvidamos de configurar la interfaz de red del vm helper server, le damos a virtualizar el disco con la opción "Min Size" o arrancamos el servidor virtualizado y nos encontramos un kernel panic como una catedral

Para solucionar el problema del kernel panic, que me he encontrado en un Centos 5.5 32bit,  voy a probar la opción 2 que da este usuario en los foros de VMWare:

http://communities.vmware.com/thread/325984

2. Option 2 - rebuild initrd image manually. I have followed the steps described at http://comments.gmane.org/gmane.linux.centos.general/106216 (scroll to the last post) and it worked for me. To summarize the steps I have done:

  • Boot from a rescue disk/live CD
  • Activate the root filesystem logical volume on the target if not recognized (lvchange -a y VolGroup00/LogVol00 should be enough, VolGroup00 and LogVol00 should be replaced with the actual volume group name and logical volume name, they could be obtained through vgscan and lvscan)
  • Mount the root filesystem under e. g. /mnt/root (mount /dev/VolGroup00/LogVol00 /mnt/root)
  • Mount boot partition under /mnt/root/boot (mount /dev/sda1 /mnt/root/boot in case boot partition is /dev/sda1)
  • Mount /dev, /proc and /sys filesystems under /mnt/root with these commands:
    • mount /dev /mnt/root/dev
    • mount /proc /mnt/root/proc
    • mount /sys /mnt/root/sys
  • Change root to be /mnt/root (chroot /mnt/root)
  • Backup the existing initrd image
  • Run mkinitrd command, e. g. mkinitrd -f /boot/initrd-2.6.18-194.32.1.el5.img 2.6.18-194.32.1.el5. Note the initrd image name must be the same as the one originally backed up (because if changed grub.conf should be updated to reflect the new name). The kernel version must also match.
  • Exit and reboot

Actualización 04/07/2012:
La nota de arriba , sacada de los foros de VMWARE, no me ha funcionado y la solución ha sido arrancar la ISO del CD1 de Centos de 5.8 con la opción linux rescue y decirle que monte la instalación encontrada. Más tarde he hehco un chroot de esa unidad y he creado de nuevo la imagen initrd con mkinitrd -f /boot/initrd-2.6.18-194-el5PAE.img 2.6.18-194-el5PAE

Etiquetas: ,

0 comentarios:

Publicar un comentario

Suscribirse a Enviar comentarios [Atom]



<< Inicio