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/
Home Products Support Community News


[Xen-devel] xm/xl block-detach issue

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] xm/xl block-detach issue
From: Sébastien Riccio <sr@xxxxxxxxxxxxxxx>
Date: Sat, 09 Jul 2011 16:34:42 +0200
Delivery-date: Sat, 09 Jul 2011 07:35:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0
Hi dear list,

I'm using xen 4.1.1 (built from tar.gz) with kernel + blkback
module and I'm getting into an issue trying to detach a block device
from a domain.

What I did:

root@mybox:~# vhd-util create -s 50000 -n /cloud/data2/machines/vm1.vhd
root@mybox:~# xl block-attach 0 tap:vhd:/cloud/local/vm1.vhd xvda rw 0

everything fine, xvda shows up in the dom0 and I can access it.

Now i want to detach it to reattach it to another domain:

root@mybox:~# xl block-list 0
Vdev  BE  handle state evt-ch ring-ref BE-path
51728 0   0      4     99     8        /local/domain/0/backend/vbd/0/51728

root@mybox:~# xl block-detach 0 51728
Error: Device 51728 not connected
Usage: xm block-detach <Domain> <DevId> [-f|--force]

Destroy a domain's virtual block device.

game over :(

Any idea what could be wrong ? Bug ?

Thanks in advance for your advices.


Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>