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] Find domID from domU

To: "Pepe Barbe" <elventear@xxxxxxxxx>
Subject: Re: [Xen-users] Find domID from domU
From: "Todd Deshane" <deshantm@xxxxxxxxx>
Date: Thu, 8 May 2008 20:11:05 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 08 May 2008 17:11:34 -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:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=uvo92dGN+di4ZtSvDbZN8zs2knEuL38QhVBcc5gPlDc=; b=k4QVGWnctYOYs9t3bvSoDg+FQdYRtu2MvQun+m1mH0jzX5l+OakGCQKNXWNJGtvs9t5AKKSFp9IeXPfcxt6djPH8tkeBiOw8A3gUuAflxRKr3WRWHGHfH6uu4onl4gUg6kfc0R3FBeyBB+dRCrf/slk5LElA5zdrhs4NFy7tSbs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Jif11t9tcG2VgZhFhHXHaADpE42++0DdRF3mq4qevziWQjS15mTbkfLBZLl3idaqnecvvKmkcfZkdfGYHaQF+b4Kef1nsMCi9okH4TigxxSmz8ZCwPxg0OWFFboLseyH5eo9+sqYciOUpHb3LOhSHpwpNiCsJ8dsvFfoeJFL2cc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <70521147-0D5A-47D7-99D6-B01D8788929C@xxxxxxxxx>
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>
References: <70521147-0D5A-47D7-99D6-B01D8788929C@xxxxxxxxx>
Reply-to: deshantm@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, May 8, 2008 at 4:38 PM, Pepe Barbe <elventear@xxxxxxxxx> wrote:
> Hello,
>
>  I am trying to write a script to add to the proper bridge any vif that is
> brought up trying to use a domU as a backend.
>
>  After much researching, I don't know if I have found the proper solution
> but, at least, a viable one.
>
>  I see that I can read the bridge name in xenstore from the following key:
>
>  /local/domain/<domid>/backend/vif/<vif num>/bridge
>
>  But I have found two obstacles to this solution.
>
>  First, by default a domU cannot list /local/domain, so the only way to find
> my domID would be to guess, up to the maximum number of domain IDs that Xen
> can have, which is a horrid solution. I can change the permissions so that
> key can be listed, and then I can try to read the different domain IDs until
> one succeeds, which would be a better way of guessing my own domID.
>
>  So my question is. Is there a deterministic way of reading the proper key
> /local/domain/<domid>/backend/vif/<vif num>/bridge from the domU, or a way
> to determine my domID in a deterministic fashion or change the the default
> permissions, so that if I ever reboot my dom0 I can bring everything back
> automatically.
>

I am not sure if this exactly answers your question, but might be along the
lines that you are looking for.

http://lists.xensource.com/archives/html/xen-users/2005-08/msg00089.html

Regards,
Todd

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

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