From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: Re: Q: How to find own domid or uuid from domU? Date: Thu, 18 May 2006 15:43:18 +0200 Message-ID: <446C79F6.8020103@suse.de> References: <87fyj7ravp.fsf@pike.pond.sub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <87fyj7ravp.fsf@pike.pond.sub.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Markus Armbruster Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Markus Armbruster wrote: > I can access xenstore /local/domain/DOMID in domU's kernel through the > xen/xenbus.h API. What I can't figure out for love or money is how to > determine DOMID. Or UUID, for that matter. Ideas? Use relative paths: code10:~ # xenstore-read vm /vm/0fa9cb1b-1275-7027-9cab-80089db40ed4 code10:~ # xenstore-read domid 1 That's it. But adding a watch for these doesn't work (at least it didn't last time I tried), so you can't easily get notified in case the domid changes due to migration or save/restore. cheers, Gerd --=20 Gerd Hoffmann Erst mal heiraten, ein, zwei Kinder, und wenn alles l=E4uft geh' ich nach drei Jahren mit der Familie an die B=F6rse. http://www.suse.de/~kraxel/julika-dora.jpeg