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-devel

[Xen-devel] Problem exporting enbd device from Dom0 to DomU

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Problem exporting enbd device from Dom0 to DomU
From: "Sven Kretzschmar" <sven.kretzschmar@xxxxxx>
Date: Fri, 06 Aug 2004 16:00:00 +0200
Delivery-date: Fri, 06 Aug 2004 15:03:44 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <200408061348320783.00D5CCC9@xxxxxxxxxxx>
Reply-to: sven.kretzschmar@xxxxxx
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
I have got enbd to work in Dom0 (kernel 2.6.7).
This means I can access a remote block device on another
physical server from Dom0.
I have put a file system on it, copied around, etc. Works.
So far so good....
When I try to export the enbd device ("dev/nda") from Dom0
to another unprivileged domain (with kernel 2.4.26) then it does not work.
The interesting part of my xmdefaults file looks like that:

disk = ['phy:nda,sdb,w','phy:hda3,sda1,w]
...
root = "/dev/sda1 ro"

I am using sda1 as root device and wanted to use sdb as an
additonal device to play with.

I am starting the xen-U domain like this:

xm create cpu=-1 ip=192.168.1.75

and the xend log shows:

[2004-08-06 16:35:52 xend] DEBUG (__init__:988) init_domain> Created domain=3 
name=ExampleDomain1 memory=256
[2004-08-06 16:35:52 xend] INFO (__init__:988) Created console id=13 domain=3 
port=9603
[2004-08-06 16:35:52 xend] DEBUG (__init__:988) Creating vbd dom=3 
uname=phy:nda dev=sdb
[2004-08-06 16:35:52 xend] DEBUG (__init__:988) Creating vbd dom=3 
uname=phy:hda3 dev=sda1
[2004-08-06 16:35:52 xend] DEBUG (__init__:988) Creating vif dom=3 vif=0 
mac=aa:00:00:49:eb:59
[2004-08-06 16:35:52 xend] DEBUG (__init__:988) Error: Adding extent to vbd 
failed! (device 2b00)
[2004-08-06 16:35:52 xend] DEBUG (__init__:988) Connecting blkif to event 
channel dom=3 ports=14:4

I think the line starting with "Error:..." is the important one. What does 
device 2b00 mean ?

Btw: I am only trying to create exactly one (unpriv.) Domain.

When I try to access /dev/sdb in the created Domain, I receive an "is not a 
valid block device" error, exactly like
with any other unassigned device.

Are there any known problems with enbd devices and xen ?
Did I made a configuration mistake ?
Has anybody else tried to get enbd to work with xen (with 2.6.7 Dom0 and 2.4.36 
DomU) ?

TIA + Regards,
  Sven




-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel