<div>Thanks for your reply,</div><div>1、Should I configure the driver in the second host? The network drive only be set in the frontend.</div><div>I had configure lieted bellow environment in the second host,</div><div>ruby environment;</div><div>kvm environment;</div><div>oneadmin user with no password to use sudo;</div><div>no password access frontend each other;</div><div>ovs 1.9.0 version with brcompat;</div><div>2、Yes, I can make ovs bridge create on the second machine, Using no-password ssh.</div><div>Normally,the network driver dedined in the frontend,and frontend use ssh to  execute the ovs command through ssh.</div><div>but, when I <span style="line-height: 1.5;">build a VM in the second host frontend.It did nothing about it.</span></div><div><div><span style="line-height: 1.5; font-family: 'Arial Narrow'; font-size: 12px;">---------------- 原始邮件 ------------------</span></div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Valentin Bud";<valentin.bud@gmail.com>;</div><div><b>发送时间:</b> 2013年10月2日(星期三) 晚上10:57</div><div><b>收件人:</b> "木易@'4武 "<yangzb09@qq.com>; <wbr></div><div><b>抄送:</b> "users"<users@lists.opennebula.org>; <wbr></div><div><b>主题:</b> Re: [one-users] Problem with Openvswitch on OpenNebula3.8</div></div><div><br></div><div dir="ltr">Hello,<div><br><div class="gmail_extra">Is your second host configured to use the ovswitch network driver? Is the ovs bridge created on the second machine with </div><div class="gmail_extra">the name used in the vnet you've defined? Is you sudo configured to allow oneadmin to issue ovs-* commands without password?</div>

<div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 2, 2013 at 5:38 PM, 木易@'4武 <span dir="ltr"><<a href="mailto:yangzb09@qq.com" target="_blank">yangzb09@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<div>   I’m trying to Configure OVS network in OpenNebula3.8,and has been succeed it in the frontend host(frontend&host-end together).But When I build a VM in another host,it can't add a ovs bridge.</div><div>
In normal, it will use ovs cmd to build it.</div>
<div>The VM log is here.</div><div>“<span style="line-height:1.5">Tue Apr 23 06:37:08 2013 [DiM][I]: New VM state is DONE.</span></div><div><div>Mon Sep 30 11:11:20 2013 [DiM][I]: New VM state is ACTIVE.</div><div>Mon Sep 30 11:11:20 2013 [LCM][I]: New VM state is PROLOG.</div>

<div>Mon Sep 30 11:11:20 2013 [VM][I]: Virtual Machine has no context</div><div>Mon Sep 30 11:11:21 2013 [TM][I]: clone: Cloning /var/lib/one/datastores/1/af1f67b5da1befd1c585413de8aa17ea in host_old:/var/lib/one//datastores/0/80/disk.0</div>

<div>Mon Sep 30 11:11:21 2013 [TM][I]: ExitCode: 0</div><div>Mon Sep 30 11:11:21 2013 [LCM][I]: New VM state is BOOT</div><div>Mon Sep 30 11:11:21 2013 [VMM][I]: Generating deployment file: /var/lib/one/80/deployment.0</div>

<div>Mon Sep 30 11:11:21 2013 [VMM][I]: ExitCode: 0</div><div>Mon Sep 30 11:11:21 2013 [VMM][I]: Successfully execute network driver operation: pre.</div><div>Mon Sep 30 11:11:22 2013 [VMM][I]: ExitCode: 0</div><div>Mon Sep 30 11:11:22 2013 [VMM][I]: Successfully execute virtualization driver operation: deploy.</div>

</div><div><span style="line-height:1.5">Mon Sep 30 11:11:22 2013 [VMM][I]: post: Executed "sudo /usr/bin/ovs-vsctl set Port vnet9 tag=302".</span></div><div><div>Mon Sep 30 11:11:22 2013 [VMM][I]: post: Executed "sudo /usr/bin/ovs-ofctl add-flow ovsbr0 in_port=249,dl_src=02:00:c0:a8:b6:7f,priority=40000,actions=normal</div>

<div><div>Mon Sep 30 11:11:22 2013 [VMM][I]: post: Executed "sudo /usr/bin/ovs-ofctl add-flow ovsbr0 in_port=250,dl_src=02:00:63:09:09:7b,priority=40000,actions=normal".</div><div>Mon Sep 30 11:11:22 2013 [VMM][I]: post: Executed "sudo /usr/bin/ovs-ofctl add-flow ovsbr0 in_port=250,priority=39000,actions=drop".</div>

<div>Mon Sep 30 11:11:22 2013 [VMM][I]: post: Executed "sudo /usr/bin/ovs-vsctl set Port vnet11 tag=150".</div><div>Mon Sep 30 11:11:22 2013 [VMM][I]: post: Executed "sudo /usr/bin/ovs-ofctl add-flow ovsbr0 in_port=251,dl_src=02:00:c0:a8:b4:4e,priority=40000,actions=normal".</div>

<div>Mon Sep 30 11:11:22 2013 [VMM][I]: post: Executed "sudo /usr/bin/ovs-ofctl add-flow ovsbr0 in_port=251,priority=39000,actions=drop".</div><div>Mon Sep 30 11:11:22 2013 [VMM][I]: ExitCode: 0</div><div>Mon Sep 30 11:11:22 2013 [VMM][I]: Successfully execute network driver operation: post.</div>

<div>Mon Sep 30 11:11:22 2013 [LCM][I]: New VM state is RUNNING</div></div><div>". ”</div></div><div>################################################################</div><div><div># ovs-vsctl show|less</div><div>    Bridge "ovsbr0"</div>

<div>        Port "vnet9"</div><div>            tag: 302</div><div>            Interface "vnet9"</div></div><div>################################################################</div><div>But when I build a VM in another host,it just build a VM, nothing for network.</div>

<div>"</div><div><div>Wed Oct  2 20:46:50 2013 [DiM][I]: New VM state is ACTIVE.</div><div>Wed Oct  2 20:46:50 2013 [LCM][I]: New VM state is PROLOG.</div><div>Wed Oct  2 20:46:50 2013 [VM][I]: Virtual Machine has no context</div>

<div>Wed Oct  2 20:46:52 2013 [TM][I]: clone: Cloning host_old:/var/lib/one/datastores/1/af1f67b5da1befd1c585413de8aa17ea in /var/lib/one/datastores/0/82/disk.0</div><div>Wed Oct  2 20:46:52 2013 [TM][I]: ExitCode: 0</div>

<div>Wed Oct  2 20:46:52 2013 [LCM][I]: New VM state is BOOT</div><div>Wed Oct  2 20:46:52 2013 [VMM][I]: Generating deployment file: /var/lib/one/82/deployment.0</div><div>Wed Oct  2 20:46:52 2013 [VMM][I]: ExitCode: 0</div>

<div>Wed Oct  2 20:46:52 2013 [VMM][I]: Successfully execute network driver operation: pre.</div><div>Wed Oct  2 20:46:53 2013 [VMM][I]: ExitCode: 0</div><div>Wed Oct  2 20:46:53 2013 [VMM][I]: Successfully execute virtualization driver operation: deploy.</div>

<div>Wed Oct  2 20:46:53 2013 [VMM][I]: ExitCode: 0</div><div>Wed Oct  2 20:46:53 2013 [VMM][I]: Successfully execute network driver operation: post.</div><div>Wed Oct  2 20:46:53 2013 [LCM][I]: New VM state is RUNNING<span style="line-height:1.5">" </span></div>

</div><div>################################################################</div><div>Can anyboye help me to solve this problem?</div></blockquote><div><br></div><div>It looks like the network driver pre operation and also post operation executed successfully. I tend to think that your</div>

<div>second host is not configured to use the ovswitch network driver. Can you check that?</div><div><br></div><div>Good Will,</div></div>-- <br><div dir="ltr">Valentin Bud<div><a href="http://databus.pro" target="_blank">http://databus.pro</a> | <a href="mailto:valentin@databus.pro" target="_blank">valentin@databus.pro</a></div>

</div>
</div></div></div></div>