<div dir="ltr"><div><div><div>Hi,<br><br></div>Indeed, running the agent as a container requires giving the container many privileges : access to the host network, host PID namespace, bind mount /run/netns and the Open vSwitch socket. So it's pretty much equivalent to running the Skydive executable (that has no external dependency).<br>The analyzer does not need these privileges and can be started as a "regular" container.<br></div><br></div><div>To start the agent container, the command is :<br>docker run --privileged --net=host --pid=host -v 
/var/run/openvswitch/db.sock:/var/run/openvswitch/db.sock -v 
/var/run/netns:/host/run -e SKYDIVE_NETNS_RUN_PATH=/host/run skydive agent<br><br></div><div>Now, to answer your question, you can either :<br></div><div>- use environment variables by adding "-e SKYDIVE_AGENT_ANALYZERS=<a href="http://1.2.3.4:8082">1.2.3.4:8082</a>" to the previous command line.<br></div><div><br>- create the configuration file on the host (for instance /etc/skydive.yml) with a section :<br>agent:<br>  analyzers: <a href="http://1.2.3.4:8082">1.2.3.4:8082</a><br>and bind mount it into the container agent by adding the parameter "-v /etc/skydive.yml:/etc/skydive.yml" to the previous command line.<br><br></div><div>One final hint, you could easily bootstrap an analyzer with elasticsearch (for graph and flows history) on your first node by using the docker-compose service provided in the Skydive repository in one command : "docker-compose up"<br></div><div><br></div><div>Regards,<br></div><div>Sylvain<br></div><div><br><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 6, 2016 at 11:19 AM, Kostya <span dir="ltr"><<a href="mailto:konstantin.dorfman@gmail.com" target="_blank">konstantin.dorfman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello Akshay,<div>I'm recently new to the project, so take this with a grain of salt:</div><div><br></div><div>Running analyzer/agent in container gives to it same access to host's network stack as running skydive as a process.<br></div><div>Integration of skydive and openstack is about how to configure openstack, so that skydive agent will run automatically on every compute node and analyzer will run on controller. It is not about how to configure skydive to gather specific topology/flow information.</div><div><br></div><div>Thanks,</div><div>Kostya</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div><div class="gmail-h5"><div dir="ltr">On Tue, Dec 6, 2016 at 11:16 AM Akshay Kumar Sanghai <<a href="mailto:akshaykumarsanghai@gmail.com" target="_blank">akshaykumarsanghai@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-h5"><div dir="ltr" class="gmail-m_2057965538529313406gmail_msg">Hi,<div class="gmail-m_2057965538529313406gmail_msg">I have a muti-node openstack setup. I want to run skydive in docker containers on the controller and compute nodes. </div><div class="gmail-m_2057965538529313406gmail_msg">I followed this link <a href="http://skydive-project.github.io/skydive/getting-started/docker/" class="gmail-m_2057965538529313406gmail_msg" target="_blank">http://skydive-project.<wbr>github.io/skydive/getting-<wbr>started/docker/</a> but it doesnt say anything about how to specify the analyser for the agent and how to change other parameters. </div><div class="gmail-m_2057965538529313406gmail_msg">If i run skydive in container, will it be able to fetch the hosts' network informatiion?</div><div class="gmail-m_2057965538529313406gmail_msg">How do i run skydive in container in multi-node openstack setup?</div><div class="gmail-m_2057965538529313406gmail_msg"><br class="gmail-m_2057965538529313406gmail_msg"></div><div class="gmail-m_2057965538529313406gmail_msg">Thanks</div><div class="gmail-m_2057965538529313406gmail_msg">Akshay</div></div></div></div>
______________________________<wbr>_________________<br class="gmail-m_2057965538529313406gmail_msg">
Skydive-dev mailing list<br class="gmail-m_2057965538529313406gmail_msg">
<a href="mailto:Skydive-dev@redhat.com" class="gmail-m_2057965538529313406gmail_msg" target="_blank">Skydive-dev@redhat.com</a><br class="gmail-m_2057965538529313406gmail_msg">
<a href="https://www.redhat.com/mailman/listinfo/skydive-dev" rel="noreferrer" class="gmail-m_2057965538529313406gmail_msg" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/skydive-dev</a><br class="gmail-m_2057965538529313406gmail_msg">
</blockquote></div>
<br>______________________________<wbr>_________________<br>
Skydive-dev mailing list<br>
<a href="mailto:Skydive-dev@redhat.com">Skydive-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/skydive-dev" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/skydive-dev</a><br>
<br></blockquote></div><br></div></div></div></div>