Hi, change lines 54 and 55 of ebtables-xen script to reflect the full path of the xm binary (typically /usr/sbin/xm).
I suggest you migrate to OpenNebula 2.2 regards, Jaime 2011/5/6 高建平 <13810416...@qq.com> > Dear > > 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: > 1. install ebtables and configure sudoers on every nodes. > > oneadmin ALL=(ALL) NOPASSWD: /usr/local/sbin/ebtables* > > 2. modify my one configure, /opt/nebula/ONE/etc/oned.conf: > > VM_HOOK = [ > name ="ebtables-start", > on ="running", > command ="/opt/nebula/ONE/share/hooks/ebtables-xen", > arguments ="one-$VMID", > remote ="yes" ] > VM_HOOK = [ > name ="ebtables-flush", > on ="done", > command ="/opt/nebula/ONE/share/hooks/ebtables-flush", > arguments ="", > remote ="yes" ] > > but when VM is created the ebtables rules is empty,and the > oned.log has this msg: > > 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 > 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' > Thu May 5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 STDERR > follows. > Thu May 5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 sudo: xm: > command not found > Thu May 5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 sudo: xm: > command not found > 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 > 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) > 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' > Thu May 5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 from > /opt/nebula/ONE/share/hooks/ebtables-xen:58 > Thu May 5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 ExitCode: 1 > Thu May 5 15:59:42 2011 [HKM][D]: Message received: EXECUTE FAILURE 10 > ebtables-start > > > can you help me to fix this problem, thanks for your time. > > Best Regards > > gaojp > > > > _______________________________________________ > Users mailing list > Users@lists.opennebula.org > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > > -- Jaime Melis, Cloud Technology Engineer/Researcher Major Contributor OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jme...@opennebula.org
_______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org