Subject: Re: Bootstrapping a Linux domU from scratch in a NetBSD dom0
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: port-xen
Date: 04/06/2007 16:35:33
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"

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).


		--Steve Bellovin, http://www.cs.columbia.edu/~smb