OpenVSwitch port mirroring with an OpenVZ container

Crawax

New Member
Jul 24, 2014
4
1
3
Hi,

I am testing the possibility of OpenVSwitch in Proxmox and I am stuck on the port mirroring with my OpenVZ container.
It work well with the KVM VM and I don't have any error when I set-up a mirroring with OpenVZ but there is just nothing happening.

KVM -> KVM : work
KVM -> OpenVZ : doesn't work
OpenVZ -> KVM : doesn't work
OpenVZ -> OpenVZ : doesn't work

I do my testing with simple ping on the source and a tcpdump on the destination.

I cannot find any informations about if it is suppose to work or not.

My network config :
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

iface eth2 inet manual

allow-vmbr0 bond0
iface bond0 inet manual
ovs_bonds eth0 eth1 eth2
ovs_type OVSBond
ovs_bridge vmbr0
ovs_options bond_mode=active-backup

auto vmbr0
iface vmbr0 inet static
address 192.168.35.166
netmask 255.255.255.0
gateway 192.168.35.254
ovs_type OVSBridge
ovs_ports bond0

auto vmbr1
iface vmbr1 inet static
address 172.19.2.254
netmask 255.255.255.0
ovs_type OVSBridge

A ovs-vsctl show :
725808a5-007a-4264-9fef-7d27e2edc0b1
Bridge "vmbr1"
Port "vmbr1"
Interface "vmbr1"
type: internal
Bridge "vmbr0"
Port "veth103.0"
Interface "veth103.0"
Port "bond0"
Interface "eth2"
Interface "eth0"
Interface "eth1"
Port "tap101i0"
Interface "tap101i0"
Port "tap100i0"
Interface "tap100i0"
Port "veth102.0"
Interface "veth102.0"
Port "vmbr0"
Interface "vmbr0"
type: internal
ovs_version: "2.3.1"

A working mirror (KVM -> KVM) :
ovs-vsctl -- set Bridge vmbr0 mirror=@m \
-- --id=@tap100i0 get Port tap100i0 \
-- --id=@tap101i0 get Port tap101i0 \
-- --id=@m create Mirror name=MyMirror3 \
select-dst-port=@tap101i0 select-src-port=@tap101i0 \
output-port=@tap100i0

A non working mirror (OpenVZ -> KVM) :
ovs-vsctl -- set Bridge vmbr0 mirror=@m \
-- --id=@veth102.0 get Port veth102.0 \
-- --id=@tap101i0 get Port tap101i0 \
-- --id=@m create Mirror name=MyMirror3 \
select-dst-port=@veth102.0 select-src-port=@veth102.0 \
output-port=@tap101i0

Thanks a lot if you can help me or a least tell me that it is not possible :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!