All of lore.kernel.org
 help / color / mirror / Atom feed
* extra parameters for a custom vif-script
@ 2013-04-10 13:21 Alexandre Bezroutchko
  0 siblings, 0 replies; only message in thread
From: Alexandre Bezroutchko @ 2013-04-10 13:21 UTC (permalink / raw)
  To: xen-devel@lists.xen.org

Hello,

I am trying to develop custom xen vif- and network- scripts and can't
figure out how to passing parameters. When creating a domain, I would
like to be able to specify two additional parameters for each vif and
get access to them via from my custom vif-script.

I have done some research and found I can easiliy extend the list of
parameters accepted by 'xm create' command by editing
/usr/lib/xen-4.0/lib/python/xen/xm/create.py. It all works just fine in
the dry mode, I see the parameters and their value dumped on the output.
But when the domain gets created these values don't see to be retained
in the config, I see no traces of them in the output of 'xm list VMID'.

I have also attempted to edit vif_params in main.py to add same two
parameters to 'network-attach' command handler. It has not helped, the
parameter don't seem to make it into the config nor xenstore anyway.

I could use an advice how this can be implemented properly. I thinking
about customizing create.py further, to store values I need to persist
in xenstore under /vm/UUID/device/vif/NNN/. Just wondering if I am
overlooking some more elegant solution. Any advise is appreciated.

PS. I use xm toolstack on Xen 4.0.1 on Debian.

Best regards,
Alex

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-10 13:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-10 13:21 extra parameters for a custom vif-script Alexandre Bezroutchko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.