Ah, ok, you didn't mention XenAPI. Those fields is not a 'real time communication way'. If you need to have it, you need to create your own xenstore-based application to be ran in dom0. Or create xapi plugin for this.

This is not really 'API-like', but my experience (we performs about 100-150 writes/reads per second on every host in cloud) says this is single way to have nice real-time communication with domU via xenstore.

pitfall:
Note that VM can reboot itself (new domain - no 'foreign' data in xenstore). Same for migration - every migration move VM to new domain.

On 19.01.2012 20:33, R J wrote:


On Thu, Jan 19, 2012 at 5:44 PM, George Shuklin <[email protected] <mailto:[email protected]>> wrote:

    What 'correct data' you mean? If you write data/foo "bar" from
    domU you can read them from dom0 as /local/domain/$domid/data/foo


I'm using API VM.add_to_xenstore_data to add data to a running domU which is reflected in xe vm-param-get param-name=xenstore-data uuid=UUID_OF_VM but if I do "xenstore-ls data" in domU then it does not reflect the updated/new entries.

If I reboot the domU then it is able to show updated entries with same "xenstore-ls data" command.



    On 18.01.2012 18:31, R J wrote:
    Hello List,

    I'm not able to fetch correct xenstore data in guest. If I reboot
    the guest then it loads with latest xenstore data but if I change
    the content of xenstore data while the VM is running then the
    data does not reflect in guest.

    Is this normal or am I missing anything ?


    Note: XCP version 1 and guest tools are installed.

    - RJ


    _______________________________________________
    xen-api mailing list
    [email protected]  <mailto:[email protected]>
    http://lists.xensource.com/mailman/listinfo/xen-api


    _______________________________________________
    xen-api mailing list
    [email protected] <mailto:[email protected]>
    http://lists.xensource.com/mailman/listinfo/xen-api



_______________________________________________
xen-api mailing list
[email protected]
http://lists.xensource.com/mailman/listinfo/xen-api

Reply via email to