Subject: Re: Bootstrapping a Linux domU from scratch in a NetBSD dom0
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-xen
Date: 04/06/2007 23:17:20
On Fri, Apr 06, 2007 at 04:35:33PM -0400, Steven M. Bellovin wrote:
> On Fri, 6 Apr 2007 22:01:32 +0200
> Manuel Bouyer <bouyer@antioche.eu.org> wrote:
> 
> 
> > > Major comment: it won't boot:
> > > 
> > > 	VFS: Cannot open root device "hda1" or unknown-block(0,0)
> > > 	Please append a correct "root=" boot option
> > > 	Kernel panic - not syncing: VFS: Unable to mount root fs on
> > > 	unknown-block(0,0)
> > > 
> > > I suspect the problem is that I need a /dev entry for hda1, but I
> > > have
> > 
> > No, you don't. Here's what I use for a linux domU on xen3:
> > disk = [ 'file:/domains/house0.vnd,hda,w']
> > 
> > root = "/dev/hda1 ro"
> > 
> > I'm not sure you can use 'hda1' instead of 'hda' in the disk entry
> > with Xen3.
> > 
> 
> Still not working.  Here's my config file:
> 
> kernel = "/usr/pkg/etc/xen/vmlinuz-2.6-xenU"
> memory = 128
> name = "diesel"
> vif = [ 'bridge=bridge0' ]
> disk = [ 'file:/usr/vnd/diesel.vnd,hda,w' ]
> root = "/dev/hda1 ro"
> extra = "init=/bin/sh"

Your vnd then needs a MBR parition table, with the root partition in
partition 1 (the first partition). Or try root = "/dev/hda ro",
maybe it'll work.

> 
> I found a web page that suggests I need an initrd entry:
> http://www.mail-archive.com/fedora-xen@redhat.com/msg00308.html
> However, I have no idea how to create one when I have no access to
> Linux systems running 2.6.16.29 (that being the version I seem to have
> obtained).

I used the linux kernel from xen 3.0.3, it doens't need a ramdisk.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--