Eugene Istomin
2011-Jul-27 08:10 UTC
[Xen-users] Get parameters from dom0 to domu on domu start
Hello, I have a question about dom0<->domu xenstore interaction. Assume, we have some pv domu with some logic inside (like "if grep -Fxq "echo noop > \/sys\/block\/$DISK\/queue\/scheduler" $INIT_BOOTLOCAL then echo "$DISK exist in $INIT_BOOTLOCAL" else echo "echo noop > \/sys\/block\/$DISK\/queue\/scheduler" >> $INIT_BOOTLOCAL fi " ) ''Cos of many gw/mtu/zabbix/bacula parameters we need to know all of this parameters on domu side before init 1. Assume we have some xenstore custom structure in xenstore, that describes thoose parameters. Is it possible to run some custom script from dom0 on domu start which: 1) get some extra info form config file (network name, domain name, etc) 2) copy some parameters from one xenstore tree (custom) to another (/local/$domid)? AFAK 1) is resolved by extra=".." in xm/xl config What about 2)? -- Best regards, Eugene Istomin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
eugene.istomin
2011-Jul-27 08:27 UTC
[Xen-users] Get parameters from dom0 to domu on domu start
Hello, I have a question about dom0<->domu xenstore interaction. Assume, we have some pv domu with some logic inside (like "if grep -Fxq "echo noop > \/sys\/block\/$DISK\/queue\/scheduler" $INIT_BOOTLOCAL then echo "$DISK exist in $INIT_BOOTLOCAL" else echo "echo noop > \/sys\/block\/$DISK\/queue\/scheduler" >> $INIT_BOOTLOCAL fi " ) ''Cos of many gw/mtu/zabbix/bacula parameters we need to know all of this parameters on domu side before init 1. Assume we have some xenstore custom structure in xenstore, that describes thoose parameters. Is it possible to run some custom script from dom0 on domu start which: 1) get some extra info form config file (network name, domain name, etc) 2) copy some parameters from one xenstore tree (custom) to another (/local/$domid)? AFAK 1) is resolved by extra=".." in xm/xl config What about 2)? -- Best regards, Eugene Istomin -- View this message in context: http://xen.1045712.n5.nabble.com/Get-parameters-from-dom0-to-domu-on-domu-start-tp4637969p4637969.html Sent from the Xen - User mailing list archive at Nabble.com. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2011-Jul-28 15:20 UTC
Re: [Xen-users] Get parameters from dom0 to domu on domu start
On Wed, Jul 27, 2011 at 8:27 AM, eugene.istomin <eugene.istomin@gmail.com> wrote:> Hello, > > I have a question about dom0<->domu xenstore interaction. > > Assume, we have some pv domu with some logic inside > (like > "if grep -Fxq "echo noop > \/sys\/block\/$DISK\/queue\/scheduler" > $INIT_BOOTLOCAL > then > echo "$DISK exist in $INIT_BOOTLOCAL" > else > echo "echo noop > \/sys\/block\/$DISK\/queue\/scheduler" >> > $INIT_BOOTLOCAL > fi " > ) > > ''Cos of many gw/mtu/zabbix/bacula parameters we need to know all of this > parameters on domu side before init 1. Assume we have some xenstore custom > structure in xenstore, that describes thoose parameters. > > Is it possible to run some custom script from dom0 on domu start which: > 1) get some extra info form config file (network name, domain name, etc) > 2) copy some parameters from one xenstore tree (custom) to another > (/local/$domid)? > > AFAK 1) is resolved by extra=".." in xm/xl config > What about 2)? >To me this sounds like a better xen-devel question, see: http://wiki.xensource.com/xenwiki/AskingXenDevelQuestions Thanks, Todd -- Todd Deshane http://www.linkedin.com/in/deshantm http://www.xen.org/products/cloudxen.html http://runningxen.com/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users