Subject: Re: Image-based Linux-DomUs fail to boot ("VFS: Cannot open root device "hda1" or unknown-block(0,0)")
To: NetBSD/xen <port-xen@netbsd.org>
From: Mark Weinem <mark.weinem@onlinehome.de>
List: port-xen
Date: 08/05/2006 21:55:18
Manuel Bouyer wrote:

>The .tbz files on
> http://cdprojekte.mattiasschlenker.de/Public/Xen-Images/ 
> contains the disk images, not only a tar file of a working installation. 
> It appears that these files are sparse, and our vnd driver doesn't 
> handle this. If you copy the file using 'cp' all works fine.

I tried the "opensuse101-20060514.tbz"opensuse101-20060514.tbz" from there 
and  after "tar -xjf  "opensuse101-20060514.tbz" it contains the 
files "hda6.img", "opensuse101.cfg" and "vmlinuz-2.6.16.13-xen"

I'm not sure what you mean with "using cp" but this is what I did:

	# cp vmlinuz-2.6.16.13-xen /
	
	# vnconfig -c vnd0 hda6.img

	# vi /usr/pkg/etc/xen/opensuse
		
		kernel = "/vmlinuz-2.6.16.13-xen"
		memory = 300
		name = "opensuse"
		vif = [ 'mac=aa:00:00:50:02:f0, bridge=bridge0' ]
		disk = [ 'phy:/dev/vnd0d,0x306,w' ]
		root = "/dev/hda6 rw"


This seems to work now: the Linux domU boots (with many error messges!) 
and I can login as root, but there's no working network 
configuration, ...might be some more work necessary as expected, to get 
it usable :-(  

Many thanks for your help & Greetings, 
Mark