[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-API] Accessing xentore data created by VM.add_to_xenstore_data


  • To: Marco Sinhoreli <msinhore@xxxxxxxxx>, xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
  • From: Rabin Karki <rabin.karki@xxxxxxxxxx>
  • Date: Wed, 13 Jul 2011 16:50:57 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Cc:
  • Delivery-date: Wed, 13 Jul 2011 13:51:08 -0700
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
  • Thread-index: AcxBmCDpQDZSrOgUQOqEwGjhca7wEwABdCqA
  • Thread-topic: [Xen-API] Accessing xentore data created by VM.add_to_xenstore_data

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
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.