<div dir="ltr">Do you see any traffic from VM using tcpdump on em1?</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-07 1:21 GMT+02:00 Neil Schneider <span dir="ltr"><<a href="mailto:neil@ifxonline.com" target="_blank">neil@ifxonline.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've been trying to work through this problem for two days and haven't<br>
found the solution. I'm using opennebula to create virtual networks using<br>
openvswitch.<br>
<br>
[root@cloud1 ~]# ovs-vsctl show<br>
c6def17d-2cc6-499e-a461-af4fe9aab78a<br>
Bridge management<br>
Port management<br>
Interface management<br>
type: internal<br>
Port "vlan10"<br>
tag: 10<br>
Interface "vlan10"<br>
type: internal<br>
Bridge public<br>
Port "em1"<br>
Interface "em1"<br>
Port "vnet0"<br>
Interface "vnet0"<br>
Port public<br>
Interface public<br>
type: internal<br>
Bridge storage<br>
Port storage<br>
Interface storage<br>
type: internal<br>
Port "vlan20"<br>
tag: 20<br>
Interface "vlan20"<br>
type: internal<br>
ovs_version: "2.1.0"<br>
<br>
>From the opennebula server I can see this.<br>
<br>
onevnet list<br>
ID USER GROUP NAME CLUSTER TYPE BRIDGE<br>
LEASES<br>
0 oneadmin oneadmin management ifx-produc R manageme<br>
0<br>
1 oneadmin oneadmin storage ifx-produc R storage<br>
0<br>
6 oneadmin oneadmin public ifx-produc R public<br>
1<br>
<br>
I've followed the instruction for configuring the hosting server so that<br>
oneadmin has rights to access /var/lib/one on the hosting server as well<br>
as sudo access to the scripts needed to create networks.<br>
<br>
<br>
I have all the changes recommended to allow oneadmin to execute commands<br>
through ssh to cloud1 the hosting server.<br>
<br>
oneadmin ALL=(ALL) NOPASSWD: /usr/sbin/tgtadm, /sbin/lvcreate,<br>
/sbin/lvremove, /bin/dd, /usr/bin/ovs-vsctl, /usr/bin/ovs-ofctl,<br>
/usr/bin/ovs-dpctl, /sbin/iptables, /sbin/ebtables<br>
<br>
I can instantiate hosts from templates and everything works as expected.<br>
When I bring up a virtual host, it gets an IP from the dhcp server running<br>
in the network. Not from the virtual network. Sorry, I can't cut and paste<br>
that part, since the only way I can access the virtual machine is through<br>
either VNC in sunstone or with virt-manager.<br>
<br>
I have another server running ovswitch that works fine. The main<br>
difference is that I used virt-manager to create the hosts, instead of<br>
opennebula. Those five virtual servers connect fine.<br>
<br>
[root@cloud2 ~]# ovs-vsctl show<br>
aa56747f-d5a2-41b0-a998-48add3c62562<br>
Bridge public<br>
Port "vnet4"<br>
Interface "vnet4"<br>
Port "vnet0"<br>
Interface "vnet0"<br>
Port "vnet3"<br>
Interface "vnet3"<br>
Port public<br>
Interface public<br>
type: internal<br>
Port "em1"<br>
Interface "em1"<br>
Port "vnet1"<br>
Interface "vnet1"<br>
Port "vnet2"<br>
Interface "vnet2"<br>
ovs_version: "2.1.0"<br>
<br>
<br>
On cloud1 after the host gets it's IP address from the dhcp server running<br>
in our network, it can no longer connect to anything. I've checked<br>
iptables rules, flushed them for testing, just to make sure. Everything<br>
seems right, but the network isn't working.<br>
<br>
Sure would like to buy a clue. I've been searching the web for an answer<br>
or an idea what to do to diagnose it. I suspect what's happening is that<br>
opennebula/sunstone is not creating the interface properly. As I<br>
understand the ip should be assigned to the bridge, not the virtual<br>
interface.<br>
<br>
Sure could use some help. Even a pointer to a web site with the right<br>
answer would be appreciated. I haven't been able to find it myself.<br>
<br>
Sorry for cross posting, but I couldn't decide which list to post to, so I<br>
did both.<br>
<br>
--<br>
Neil Schneider pacneil_at_linuxgeek_dot_net<br>
<br>
This is your life. Do what you love, and do it often. If you don’t like<br>
something, change it. If you don’t like your job, quit. If you don’t have<br>
enough time, stop watching TV. If you are looking for the love of your<br>
life, stop; they will be waiting for you when you start doing things you<br>
love.”<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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>
</blockquote></div><br></div>