Hi,<div><br></div><div>change lines 54 and 55 of ebtables-xen script to reflect the full path of the xm executable (typically /usr/sbin/xm).</div><div><br></div><div>I suggest you migrate to OpenNebula 2.2</div><div><br></div>
<div>cheers,</div><div>Jaime</div>
<div><br><br><div class="gmail_quote">2011/5/6 高建平 <span dir="ltr"><<a href="mailto:13810416995@qq.com" target="_blank">13810416995@qq.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="padding-right:0px;padding-left:0px;font-size:14px;min-height:auto;padding-bottom:0px;margin-right:170px;padding-top:0px;font-family:'lucida Grande',Verdana;min-height:auto">
<div>Dear </div>
<div> </div>
<div dir="ltr"> I have some problem when I using ebtables to isolate vlans. My OpenNebula version is 1.4,and i'm using Xen(3.0.3) and centos(5.4;nodes os). and I have done sone configuration according to Private Cloud Computing with OpenNebula 1.4 document:</div>
<div dir="ltr"> 1. install ebtables and configure sudoers on every nodes. </div>
<blockquote dir="ltr" style="margin-right:0px">
<div dir="ltr"><span lang="EN-US" style="font-size:10.5pt">oneadmin ALL=(ALL) NOPASSWD: /usr/local/sbin/ebtables*</span></div></blockquote>
<div dir="ltr"> 2. modify my one configure, <span lang="EN-US" style="font-size:10.5pt">/opt/nebula/ONE/etc/oned.conf:</span></div>
<blockquote dir="ltr" style="margin-right:0px">
<div dir="ltr"><span lang="EN-US" style="font-size:10.5pt">VM_HOOK = [<br> name ="ebtables-start",<br> on ="running",<br> command ="/opt/nebula/ONE/share/hooks/ebtables-xen",<br>
arguments ="one-$VMID",<br> remote ="yes" ]</span></div>
<div dir="ltr"><span lang="EN-US" style="font-size:10.5pt">VM_HOOK = [<br> name ="ebtables-flush",<br> on ="done",<br> command ="/opt/nebula/ONE/share/hooks/ebtables-flush",<br>
arguments ="",<br> remote ="yes" ]</span></div></blockquote>
<div dir="ltr"><span lang="EN-US" style="font-size:10.5pt"> <font size="4">but when VM is created the ebtables rules is empty,and the oned.log has this msg:</font></span></div>
<blockquote dir="ltr" style="margin-right:0px">
<div dir="ltr"><span lang="EN-US" style="font-size:10.5pt">Thu May 5 15:59:41 2011 [HKM][D]: Message received: LOG - 10 CQ_TEST## ssh node30 '/opt/nebula/ONE/share/hooks/ebtables-xen one-10' ; echo ExitCode: $? 1>&2</span></div>
<div dir="ltr"><span lang="EN-US" style="font-size:10.5pt">Thu May 5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 Command execution fail: '/opt/nebula/ONE/share/hooks/ebtables-xen one-10'</span></div>
<div dir="ltr"><span lang="EN-US" style="font-size:10.5pt">Thu May 5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 STDERR follows.</span></div>
<div dir="ltr"><span lang="EN-US" style="font-size:10.5pt">Thu May 5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 sudo: xm: command not found</span></div>
<div dir="ltr"><span lang="EN-US" style="font-size:10.5pt">Thu May 5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 sudo: xm: command not found</span></div>
<div dir="ltr"><span lang="EN-US" style="font-size:10.5pt">Thu May 5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 /opt/nebula/ONE/share/hooks/ebtables-xen:80: command not found: brctl show</span></div>
<div dir="ltr"><span lang="EN-US" style="font-size:10.5pt">Thu May 5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 /opt/nebula/ONE/share/hooks/ebtables-xen:33:in `get_bridges': undefined method `each' for nil:NilClass (NoMethodError)</span></div>
<div dir="ltr"><span lang="EN-US" style="font-size:10.5pt">Thu May 5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 from /opt/nebula/ONE/share/hooks/ebtables-xen:47:in `get_interfaces'</span></div>
<div dir="ltr"><span lang="EN-US" style="font-size:10.5pt">Thu May 5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 from /opt/nebula/ONE/share/hooks/ebtables-xen:58</span></div>
<div dir="ltr"><span lang="EN-US" style="font-size:10.5pt">Thu May 5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 ExitCode: 1</span></div>
<div dir="ltr"><span lang="EN-US" style="font-size:10.5pt">Thu May 5 15:59:42 2011 [HKM][D]: Message received: EXECUTE FAILURE 10 ebtables-start</span></div>
<div dir="ltr"><span lang="EN-US" style="font-size:10.5pt"></span> </div>
<div dir="ltr"><span lang="EN-US" style="font-size:10.5pt"><span style="word-spacing:0px;font:medium Simsun;text-transform:none;color:rgb(0,0,0);text-indent:0px;white-space:normal;letter-spacing:normal;border-collapse:separate"><pre>
<span style="word-spacing:0px;font:medium Simsun;text-transform:none;color:rgb(0,0,0);text-indent:0px;white-space:normal;letter-spacing:normal;border-collapse:separate"><pre>can you help me to fix this problem, thanks for your time.</pre>
</span></pre><pre>Best Regards</pre><pre>gaojp</pre></span></span></div></blockquote>
<div> </div>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>
<br clear="all"><br>-- <br>Jaime Melis, Cloud Technology Engineer/Researcher<br>Major Contributor<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a><br>