Subject: Re: Problems creating a domU
To: Juan RP <juan@xtraeme.nopcode.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-xen
Date: 03/10/2005 11:41:33
On Thu, Mar 10, 2005 at 04:04:14AM +0100, Juan RP wrote:
> 
> Hi, I'm already working on a domain0 NetBSD/Xen 2.0, but when I try
> to create a new domU:
> 
> [juan@Nocturno][/etc/xen]> sudo xm create -c nbguest
> Using config file "nbguest".
> Error: Adding extent to vbd failed: device (vbd (uname phy:/dev/wd0i) (dev wd0d) (mode r)), error 8
> [juan@Nocturno][/etc/xen]>
> 
> Attached is the file I'm using, I have already created the device xenevt:
> 
> crw-r--r--  1 root  wheel  141, 0 Mar 10 03:28 /dev/xenevt
> 
> wd0i exists and it's mounted:
> 
> /dev/wd0i on /mnt/xen1 type ffs (soft dependencies, local)

This is the problem (but I'm not sure why error 8 is returned here - did the
kernel print something like "xbdback VBD grow domain xx: can't open device 0xyy
(error zz)" ?). Unless it is the raw partition, you can't open a block device
more than once.

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