
Una vez instalado el sistema, modificamos los siguientes parámetros del grub:
title CentOS Xen (2.6.18-53.1.14.el5xen)
root (hd0,0)
kernel /xen.gz-2.6.18-53.1.14.el5
module /vmlinuz-2.6.18-53.1.14.el5xen ro root=/dev/VolGroup00/LogVol00
module /myinitrd.img
Modificamos las líneas en negrita por:
title CentOS (2.6.18-53.1.14.el5xen)
root (hd0,0)
kernel /vmlinuz-2.6.18-53.1.14.el5xen ro root=/dev/VolGroup00/LogVol00
initrd /myinitrd.img
Reiniciamos con el nuevo kernel y creamos un nuevo initrd, sino nos aparecerá el error:
mount: could not find filesystem '/dev/root'
Setting up other filesystems.
Setting up new root fs setuproot:
...
Booting has failed
Genramos el nuevo initrd. El nuevo initrd hay que generarlo ignorando el soporte SCSI mediante la siguiente línea:
mkinitrd --omit-scsi-modules --with=xennet --with=xenblk --preload=xenblk initrd-$(uname -r)-no-scsi.img $(uname -r)
Apagamos la maquina virtual y modificamos los siguientes parámetros mediante el CLI para que XenServer reconozca que tiene que arrancar esta máquina como PV.
xe vm-param-set uuid= HVM-boot-policy=""
xe vm-param-set uuid= PV-bootloader=pygrub
xe vm-param-set uuid= PV-args="console=ttyS0 xencons=ttyS"
La volvemos arrancar y tendría que iniciarse correctamente. Si aparece siguiente el error:
Error: (2, 'Invalid kernel', "elf_xen_note_check: ERROR: Not a Xen-ELF image: No ELF notes or '__xen_guest' section found.\n")
significa que hay algún problema con la config del grub, comprueba que el kernel que has configurado en el grub sea el correcto.
No hay comentarios:
Publicar un comentario