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

RE: [Xen-API] xapi toolstack

To: Ritu kaur <ritu.kaur.us@xxxxxxxxx>, "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-API] xapi toolstack
From: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>
Date: Fri, 26 Feb 2010 17:23:18 +0000
Accept-language: en-US
Acceptlanguage: en-US
Cc: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>
Delivery-date: Fri, 26 Feb 2010 09:24:54 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <29b32d341002231335xbe63b43t187eda56c12719bd@xxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <29b32d341002231335xbe63b43t187eda56c12719bd@xxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acq00FcZ/LMHj5tvQPSGJxZmCUYyugCN9JvA
Thread-topic: [Xen-API] xapi toolstack
> Its my understanding that virtual interfaces(vif, vbd...) are created by
> xapi toolstack when a vm is installed i.e basically xapi toolstack
> controls creation/deletion of interfaces in dom0 when VM's come and go. Is
> it true that xapi toolstack runs in domU as well since interfaces are
> created there for netfront drivers? If I were to create a temp device
> under /sys/bus/xen-backend/devices/(this is where I see vif, vbd and other
> devices are present in dom0), I believe I have to modify xapi toolstack is
> that correct?

[from Ian Campbell]

The vif hotplug script is probably the closest that currently exists. It is 
called via udev from /etc/udev/rules.d/xen-backend.rules.

The parameters are the action (online, add, remove, etc) and "vif" or "tap" 
depending on which type of virtual device. The domid and devid are then 
obtained from $XENBUS_PATH (vif) or $INTERFACE (tap) both of which are part of 
the hotplug environment.

Other relevant info is retrieved from xenstore where it was stashed by xapi.

The info in xenstore includes e.g. the vif-uuid so someone could implement a 
/etc/xensource/scripts/vif.d/<uuid> type mechanism or something else along 
those lines.

Cheers,
Ian

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

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