Subject: Re: Image-based Linux-DomUs fail to boot ("VFS: Cannot open root device "hda1" or unknown-block(0,0)")
To: Mark Weinem <mark.weinem@onlinehome.de>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-xen
Date: 08/06/2006 22:37:08
On Sat, Aug 05, 2006 at 09:55:18PM +0200, Mark Weinem wrote:
> 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!) 

This is because the hda6.img file is sparse (a good way to check is to
see if the output of ls -l hda6.img and du hda6.img match).
To make it non-sparse
cp hda6.img hda6.img.ok
mv hda6.img.ok hda6.img

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