Subject: pkg/34936: grub degraded?
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jam@pobox.com>
List: pkgsrc-bugs
Date: 10/29/2006 01:35:00
>Number:         34936
>Category:       pkg
>Synopsis:       grub-0.97nb6 cannot boot xen although nb5 could
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 29 01:35:00 +0000 2006
>Originator:     Jam
>Release:        NetBSD 4.99.3
>Organization:
personal
>Environment:
System: NetBSD fs 4.99.3 NetBSD 4.99.3 (sou) #0: Sun Oct 1 00:23:50 JST 2006 jam@fs:/usr/src/sys/arch/i386/compile/sou i386
Architecture: i386
Machine: i386
>Description:
	GRUB 0.97nb6 does not works correctly.  See following dialogue.

    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-lik e line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]

grub> root (hd0,0,a)
 Filesystem type is ufs2, partition type 0xa9

grub> kernel (hd0,0,a)/xen.gz
 Error 13: Invalid or unsupported executable format

grub> kernel (hd0,0,a)/xen
 Error 13: Invalid or unsupported executable format

grub> quit

	GRUB 0.97nb5 could work fine by recognizing xen.gz as Multiboot-elf.


	In addition, both GRUB 0.97nb5 and 0.97nb6 cannot read NetBSD 4
	Multiboot kernel.  :(

>How-To-Repeat:
	Install /usr/pkgsrc/sysutils/xenkernel30.
	Copy /usr/pkg/xen3-kernel/xen.gz to /
	Copy kernel/netbsd-XEN3_DOM0.gz to /
	Add following item into /grub/menu.lst

title Xen / NetBSD (hd0a, vga)
  root(hd0,0,a)
  kernel (hd0,0,a)/xen.gz dom0_mem=128m
  module (hd0,0,a)/netbsd-XEN3_DOM0.gz root=/dev/hda0 ro console=tty0

	Reboot machine and try to start from Xen in GRUB menu.
>Fix:
	I don't know it.