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: "msinhore@xxxxxxxxx" <msinhore@xxxxxxxxx>
Subject: Re: [Xen-API] Accessing xentore data created by VM.add_to_xenstore_data
From: Rabin Karki <rabin.karki@xxxxxxxxxx>
Date: Wed, 13 Jul 2011 18:09:31 -0400
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 13 Jul 2011 15:09:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcxBqBbITP5K4mmkRGCPETGJl3niaQAAXNFR
Thread-topic: [Xen-API] Accessing xentore data created by VM.add_to_xenstore_data
What's the number 65 you're using there? It has to be uuid of the vm you're running this command from.

-
Rabin


-----Original Message-----
From: Marco Sinhoreli [msinhore@xxxxxxxxx]
Received: Wednesday, 13 Jul 2011, 5:59pm
To: Rabin Karki [rabin.karki@xxxxxxxxxx]
CC: xen-api [xen-api@xxxxxxxxxxxxxxxxxxx]
Subject: Re: [Xen-API] Accessing xentore data created by VM.add_to_xenstore_data

Hello Rabin:

I need to access the key in VM shell to setup some resources used by
internal systems. The key isn't created:

[vm_console]# xenstore-read /vm/65/key
xenstore-read: couldn't read path /vm/65/key

Cheers

On Wed, Jul 13, 2011 at 5:50 PM, Rabin Karki <rabin.karki@xxxxxxxxxx> wrote:
> I'm not sure exactly what you mean by "access data into VM," but
> xenstore-read /vm/<vm-uuid>/key will give you the value.
> There are a few other self-explanatory xenstore-* commands.
>
> -----Original Message-----
> From: xen-api-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-api-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Marco Sinhoreli
> Sent: Wednesday, July 13, 2011 4:04 PM
> To: xen-api
> Subject: [Xen-API] Accessing xentore data created by VM.add_to_xenstore_data
>
> 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,
>
>
> --
> Marco Sinhoreli
>
> _______________________________________________
> xen-api mailing list
> xen-api@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/mailman/listinfo/xen-api
>



--
Marco Sinhoreli
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-API] Accessing xentore data created by VM.add_to_xenstore_data, Rabin Karki <=