Hi everyone, Hopefully an easy question. Is there some way I can execute a generic script on the Dom0 when a DomU starts up? I have a script which will execute some iptables commands Thanks _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Jonathan, iptables commands usually go to individual vif-scripts. That will be executed when the vif comes up/down. AFAIK, there is no way to execute a script directly at creation time (but the vif-script is executed before the domain is actually started). Regards, Felix Am 13.06.2010 21:44, schrieb Jonathan Tripathy:> Hi everyone, > > Hopefully an easy question. > > Is there some way I can execute a generic script on the Dom0 when a > DomU starts up? I have a script which will execute some iptables commands > > Thanks > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Felix, Ah yes of course, I forgot about that! Do you know any good tutorial on how to make your own vif-scripts? Btw, thank you for your excellent post before regarding my other issue. I will try that out when I get a bit more time. Thanks Jonathan On 13/06/10 20:57, Felix Kuperjans wrote:> Hi Jonathan, > > iptables commands usually go to individual vif-scripts. That will be > executed when the vif comes up/down. AFAIK, there is no way to execute a > script directly at creation time (but the vif-script is executed before > the domain is actually started). > > Regards, > Felix > > Am 13.06.2010 21:44, schrieb Jonathan Tripathy: > >> Hi everyone, >> >> Hopefully an easy question. >> >> Is there some way I can execute a generic script on the Dom0 when a >> DomU starts up? I have a script which will execute some iptables commands >> >> Thanks >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> >> > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Jonathan, I don''t know of any tutorial, but I personally found reading the existing scripts (probably ignore vif-nat and prefer vif-bridge/vif-route) quite straight forward. A good start is to copy one of the scripts and extend it to one''s own needs. The XEN Wiki also explains some basics, but I can''t remember a real tutorial or reference. It also depends too much on the specific situation / needs. Regards, Felix Am 13.06.2010 22:12, schrieb Jonathan Tripathy:> Hi Felix, > > Ah yes of course, I forgot about that! > > Do you know any good tutorial on how to make your own vif-scripts? > > Btw, thank you for your excellent post before regarding my other > issue. I will try that out when I get a bit more time. > > Thanks > > Jonathan > > On 13/06/10 20:57, Felix Kuperjans wrote: >> Hi Jonathan, >> >> iptables commands usually go to individual vif-scripts. That will be >> executed when the vif comes up/down. AFAIK, there is no way to execute a >> script directly at creation time (but the vif-script is executed before >> the domain is actually started). >> >> Regards, >> Felix >> >> Am 13.06.2010 21:44, schrieb Jonathan Tripathy: >> >>> Hi everyone, >>> >>> Hopefully an easy question. >>> >>> Is there some way I can execute a generic script on the Dom0 when a >>> DomU starts up? I have a script which will execute some iptables >>> commands >>> >>> Thanks >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com >>> http://lists.xensource.com/xen-users >>> >>> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, Jun 14, 2010 at 1:42 AM, Jonathan Tripathy <jonnyt@abpni.co.uk> wrote:> Hi Felix, > > Ah yes of course, I forgot about that! > > Do you know any good tutorial on how to make your own vif-scripts?I know a good one here http://www.debian-administration.org/articles/470 try it out and let us know the result. I have used the Debian way. -- Tapas http://mightydreams.blogspot.com http://wiki.xensource.com/xenwiki/Xen_on_4_app_servers _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users