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

Re: [Xen-devel] Write a key-value pair to xenstore using the libxl

On Wed, 2011-07-06 at 08:42 +0100, zhikai wrote:

> I want to add a new key-value pair in vm config file and then need to
> get the value in VM using xenstore_read(). But I don't know how to
> store the key-value to xenstore using the libxl? Which method in libxl
> can I use to do this? Would anyone help me?

When you create a domain via libxl you can pass an "xsdata" in the
libxl_domain_create_info which will cause extra xenstore keys to be

This is not currently exposed via the xl tool though so if you are using
that you'll need to patch xl to read a key from the cfg file and
populate this field.


Xen-devel mailing list



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