[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#604080: Xen domU fails to boot after install



On Wed, 2011-02-16 at 00:50 +0100, Tech Nux wrote:
> Hi,
> 
> I found an easier solution, Xen dom0 on squeeze / DomU on lenny the
> dist-upgrade and reboot failed. :

Thanks.

This is a somewhat separate (although related) problem to the original
issue with installation.

The original issue was a complete lack of grub2 support in pygrub in
Lenny.

In this case it relates to unsupported syntax in the grub1 menu.lst
configuration file. This unusual syntax arises due to the grub packages'
attempt to ensure the upgrade goes smoothly.

If your dom0 supported grub2 then I think it would prefer the grub2
grub.cfg and you wouldn't see this issue.

Your workaround is reasonable.

Can you dig out the pygrub error code (in xend.log IIRC). Although I
doubt we will ever see this syntax again in future upgrades it would be
worth ensuring that pygrub handles it gracefully.

Ian.
> 
> First mount the /boot partition of your domU to the dom0 :
>  xm block-attach 0 phy:/dev/vm/squeeze xvda w
> mount /dev/xvda1 /mnt
> 
> Then edit /mnt/grub/menu.lst, and comment thoses line :
> 
> #title          Chainload into GRUB 2
> #root           (hd0,0)
> #kernel         /grub/core.img
> #
> #title
> ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
> #root
> #
> #title          When you have verified GRUB 2 works, you can use this
> command to
> #root
> #
> #title          complete the upgrade:  upgrade-from-grub-legacy
> #root
> #
> #title
> ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
> #root
> 
> It seems Pygrub on lenny and squeeze doesn't understant this menu, so
> comment it. Umount partition and disk :
>  xm block-detach 0 xvda

-- 
Ian Campbell

Advertising is the rattling of a stick inside a swill bucket.
		-- George Orwell




Reply to: