[nycbug-talk] Confusion around Grub, NetBSD 3.0, DAC960 control (all for Xen)

Tillman Hodgson tillman at seekingfire.com
Fri May 19 12:03:05 EDT 2006


On Mon, May 15, 2006 at 02:18:38PM -0600, Tillman Hodgson wrote:
> I'll try that tonight, which will get me to a normal NetBSD 3.0 system.
> Getting to a domain0 system is the next step -- the NetBSD Xen HOWTO is
> missing a lot of details around the grub section.

I now have a booting system again, thanks :-)

Grub is still not installing happily though:

kernfs on /kern type kernfs (local)
-bash-3.1# grub-install --no-floppy /dev/rld0d
/dev/rld0d does not have any corresponding BIOS drive.

-bash-3.1# dmesg | grep ld0
ld0 at mlx0 unit 0: RAID5, online
ld0: 70040 MB, 8928 cyl, 255 head, 63 sec, 512 bytes/sect x 143441920
sectors
boot device: ld0
root on ld0a dumps on ld0b

#       size   offset fstype [fsize bsize cpg/sgs]
a:   6152895       32 4.2BSD   2048 16384 24952  # (Cyl.    0*-  383*)
b:   2120580  6152927   swap                     # (Cyl.  383*-  515*)
c: 143441888       32 unused      0     0        # (Cyl.    0*- 8928*)
d: 143441920        0 unused      0     0        # (Cyl.    0 - 8928*)
e:   6152895  8273507 4.2BSD   2048 16384 24952  # (Cyl.  515*-  898*)
f:  12289725 14426402 4.2BSD   2048 16384 27568  # (Cyl.  898*- 1663*)
g: 116725793 26716127 4.2BSD   2048 16384 28600  # (Cyl. 1663*- 8928*)

-bash-3.1# mount
/dev/ld0a on / type ffs (local)
/dev/ld0e on /usr type ffs (local)
/dev/ld0f on /usr/pkgsrc type ffs (local)
/dev/ld0g on /virtual type ffs (local)

-bash-3.1# ls -l /dev/rld0d
crw-r-----  1 root  operator  69, 3 May 18 14:23 /dev/rld0d

I found this in the port-xen mailing list archives:
http://mail-index.netbsd.org/port-xen/2005/11/06/0001.html
http://mail-index.netbsd.org/port-xen/2006/03/04/0003.html

The gap in time seems to indicate that grub isn't going to be fixed for
ld devices any time soon.

Unfortunately, it looks like I'll be attempting the rest of the install
remotely (I'm going away for the long weekend). So I wanted to run these
proposed steps by the folks here as as a sanity check:

cd /dev
mknod -g operator -u root c rwd5d 69 3
grub-install --no-floppy /dev/rwd5d
cd /
mkdir /grub
... put in a reasonable /grub/menu.lst file
grub
  grub> root (hd0,a)
  grub> setup --stage2=3D/grub/stage2 --prefix=3D/grub (hd0)
shutdown -r now

Alternatively, is there a way to install the Xen kernel and a NetBSD
domain0 using only the NetBSD boot loader?

Thanks for any pointers,

-T


-- 
"Whoever undertakes to set himself up as a judge of Truth and Knowledge is
 shipwrecked by the laughter of the gods."
    -- Albert Einstein



More information about the talk mailing list