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-users] Re: Device already mounted in guest domain problem

To: "Xen Users" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Re: Device already mounted in guest domain problem
From: "Antoine Benkemoun" <antoine@xxxxxxxxxxxxx>
Date: Mon, 15 Sep 2008 23:03:13 +0200
Delivery-date: Mon, 15 Sep 2008 14:03:52 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type:references :x-google-sender-auth; bh=yxt5ZuH7dHxfe6JTbPaQC0VXFvHtRzl+wATQDiMS3Lc=; b=TsuENsg9i0CsmpwYoaO275Q8mky2hK8i3sTpvCmwURBVyRIpSWok/8bTM/VB7wbca3 Gh017KzyViivouv1VOISqW4/yIYchL8UcQPsRyHCc/swkSapwNKr4SQ6H9h7+NFrhSk5 ruLMa0RHA8cPVwb5bBUDGOWUorraPHKGUAaes=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:references:x-google-sender-auth; b=OSxBr8EAX4WYpzy0JVsGtq/Gcbo+d/XacU0ZdJzts161ncGWT+Rd6NbqSBOSCZBeEd Pso2wBTBe570EG9z+fBn/jzcVaisPUTzh2JnoWAv7Ro2FveipRM2f7DKaAxFhQnJNB/K 7bnXelZdUsT6uyjJ3AB8ou7YMFlTqG3MWEmrg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <fc1cbedb0809150844x7e40fac9od879341a32c655dd@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <fc1cbedb0809150844x7e40fac9od879341a32c655dd@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Got this fixed after hours of pulling my hair out ! I'm posting the answer so others won't go bald :)

Basically, you need to deallocate the ressource from the previous vm using the xenstore utility which is installed alongside Xen.

In my case, the previous VM's ID was 16 and the device that could not be connected was 768. I had to type this command to get it to work :

xenstore-rm /local/domain/0/backend/vbd/16/768

You can use xenstore-ls to find the right number if you don't know it.


On Mon, Sep 15, 2008 at 5:44 PM, Antoine Benkemoun <antoine@xxxxxxxxxxxxx> wrote:

My first windows VM works perfectly and is nearing pre-prod but the second VM still doesn't quite want cooperate...

The error I get is the following :

xen1:~# xm create -c /etc/xen/examu.cfg
Using config file "/etc/xen/examu.cfg".
Error: Device 768 (vbd) could not be connected.
Device /data/domains/examu/hdd.img is mounted in a guest domain,
and so cannot be mounted now.

I didn't mount this image in any other guest... I googled around and I have seen that people have been having the same problem but without mentionning any fixes.  Have you encountered this error before and found a way to fix this ?

Thank you in advance for your help,


Antoine Benkemoun
Tel :
Port :

Antoine Benkemoun
Tel :
Port :
Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>