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] Accessing xentore data created by VM.add_to_xenstore_data

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-API] Accessing xentore data created by VM.add_to_xenstore_data
From: George Shuklin <george.shuklin@xxxxxxxxx>
Date: Thu, 14 Jul 2011 01:50:58 +0400
Delivery-date: Wed, 13 Jul 2011 14:50:53 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=JJnbh2LE7PnPDwvU97xcxwyAzbC/R3E+MIm+y3fIHbc=; b=duTENTCwelay5omsA3SXO7BT8g5HH+7YeyqAqs03JhnvVhvzKthDcPSmQMMqkPngMz V9w3e6Pl8iGsvpHTOUwidYb+8FIXBfYW2Q7rabZVg1uSl7SmyWliy0BwoLaV5Ld5DFTA +cjBhffJHERLhmVIMQNXESai5MudkgBk1qqlM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAPz9JuVLMeOoE=kH8Scyps3=nNdiWBLHszgMW_3x6=OzKSN+5Q@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: <CAPz9JuVLMeOoE=kH8Scyps3=nNdiWBLHszgMW_3x6=OzKSN+5Q@xxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Icedove/3.1.11
We now using libxs to access xenstore directly on host.

xapi is not very reliable way to get this access (f.e. if master is down, centralized access is unavailable, but xenstore on hosts still works fine), and not very fast, actually.

On 14.07.2011 00:04, Marco Sinhoreli wrote:
Hello all:

I'm trying to access the data stored in xenstore using the xenapi and
it isn't available to read into VM. In VM creation, I used:
VM.add_to_xenstore_data(vm_ref, 'key', 'value')

Consulting the xenstore-data in cli return this:
xe vm-param-get param-name=xenstore-data
uuid=723831a7-b9f6-f3ff-f4df-7462e3a9c8e5
key: value

Where is the path to access this data into VM?

Cheers,



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