[libvirt-users] problem with libvirt and ovs

Anna Giannakou anna.giannakou at inria.fr
Fri Oct 31 10:33:22 UTC 2014


Hello, 

I have defined an ovs network with libvirt (virsh net-define ovs.xml) and created a vm that will connect to that network with virt-install. Although the vm port appears normally if i do an ovs-vsctl show, when i try to set this port as a mirror port for all the traffic in the bridge, the command is executed normaly, but then i cannot see any traffic on the interface. 
Could you give me some hints for that? 
The ovs.xml: 
<network> 
<name>ovs-network</name> 
<forward mode='bridge'/> 
<bridge name='br-tun'/> 
<virtualport type='openvswitch'/> 
</network> 
the virt-install command: 
virt-install --connect qemu:///system --name snort3 --ram 2048 --disk path=/tmp/snort.qcow2,device=disk,format=qcow2 --graphics vnc --vcpus 2 --hvm --network network=ovs-network --import 
the ovs command for mirroring 
ovs-vsctl -- set interface vnet0 type=internal -- --id=@p get port vnet0 -- --id=@m create mirror name=m0 select-all=true output-port=@p -- set bridge br-tun mirrors=@m 
if i execute the same command with another interface then i see the traffic normally. 

Thank you 
Anna 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20141031/57eed04b/attachment.htm>


More information about the libvirt-users mailing list