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
Show replies by date