WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] help with "error extent to vbd failed: ... error 8"

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] help with "error extent to vbd failed: ... error 8"
From: Sascha Retzki <sretzki@xxxxxx>
Date: Sun, 12 Jun 2005 11:35:14 +0200
Delivery-date: Sun, 12 Jun 2005 09:34:45 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <A95E2296287EAD4EB592B5DEEFCE0E9D2821BA@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: xen-users@xxxxxxxxxxxxxxxxxxx
References: <A95E2296287EAD4EB592B5DEEFCE0E9D2821BA@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2i
On Sun, Jun 12, 2005 at 09:27:48AM +0100, Ian Pratt wrote:
>  > I get a:
> > Error: Adding extent to vbd failed: device (vbd (uname 
> > file:/xen/slackware-linux-10/linu.img) (dev hda1) (mode w)), error 8
> 
> > My dom0-OS is NetBSD 3.0_BETA, btw. This may explain a lot, 
> > still I'd like to have as much detailed information as possible ;) 
> 
> I'll bet you'll need to hack the /etc/xen/scripts/block-file script to
> work on NetBSD unless the syntax for losetup is identical.


Ah, so those files are loopmounted, like in mount -o loop ...?
(Net,Open, Maybe DragonFly)BSD use a different system, with slightly
other syntaxes. Here is the diff I hacked quickly (just taking NetBSD
into account):

[diff]
6c6
< # loop device.  We print the path to the loop device node to stdout.
---
> # loop/vnd device.  We print the path to the loop/vnd device node to stdout.
10a11,21
> if test `uname -s` = "Linux"; then
>       SETUPCMD="losetup"
>       UNBINDSWITCH="-d"
>       DEVICEFILES="/dev/loop*"
> fi
> if test `uname -s` = "NetBSD"; then
>       SETUPCMD="vnconfig"
>       UNBINDSWITCH="-u"
>       DEVICEFILES="`ls /dev/vnd* | sed 's/\/dev\///' | awk '{ print substr($0,
0,4)}'| sort -u`"
> fi
>
13,14c24,25
<               for dev in /dev/loop*; do
<                       if losetup $dev $2; then
---
>               for dev in $DEVICEFILES; do
>                       if $SETUPCMD $dev $2; then
23c34
<               losetup -d $2
---
>               $SETUPCMD $UNBINDSWITCH $2
[/diff]

If you prefer a different diff(1) method, tell me :)

However, that gives me:
Error: Error creating domain: vbd: Segment not found: 
uname=file:/xen/slackware-linux-10/linux.img

I don't know how that "uname=" thing came into there


> 
> Ian
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
> 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users