On Wed, Nov 13, 2013 at 11:26 AM, Sudarshan Pathalam (supathal) <[email protected]> wrote: > Hello, > > I have KVM and OVS setup in Ubuntu 12.04 server,running couple of VM. > I'd like to test OpenFlow on OVS while allowing bidirectional traffic > between VM (in private subnet) and hosts on the physical LAN (in public > subnet). > Created OVS bridge, > > host:~#ovs-vsctl add-br br1 > host:~#ovs-vsctl add-port eth1 > host:~#ovs-vsctl add-port br1 eth1 > > Created VM, > host:~#virt-install --connect qemu:///system --name vm1 --ram 2000 --vcpus 2 > --disk /var/lib/libvirt/images/vm1.img --cdrom > /var/lib/libvirt/ubuntu-12.04.3-server-amd64.iso --graphics vnc --virt-type > kvm --bridge br1 > > host:~#ovs-vsctl show > 4d79704f-06ec-41cb-a8dd-d38a82e7ad17 > Bridge "br1" > Port "br1" > Interface "br1" > type: internal > Port "eth1" > Interface "eth1" > > host:~# ovs-vsctl list-ports br1 > eth1 > > Right now I have the following interfaces, > br1,eth0,eth1,lo,ovs-system,virbr0,vnet0 etc > > host:~# lsmod | grep br > bridge 90989 0 > stp 12976 1 bridge > root@supathal-2:~# lsmod | grep open > openvswitch 66857 0 > > (Noob) Questions, > > I was hoping to see vnet0 (I guess this is vnic of VM) as a port in br1 > above. Does it require extra steps? > Was wondering > > if I could bind eth1 to virbr0 (no ip address on eth1 instead apply ip > address to virbr0) > attach virbr0 to br1 (OVS) and configure iptables It looks to me that your VMs are not talking through OVS but rather through linux bridge. (brctl show may provide hints) 'ovs-vsctl show' should be showing VMs attached to a bridge.
I generally use libvirt to attach VM interfaces to OVS. There is a INSTALL.Libvirt that explains how to integrate OVS with libvirt. > > Thanks in advance, > > > > > _______________________________________________ > discuss mailing list > [email protected] > http://openvswitch.org/mailman/listinfo/discuss > _______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
