So i've been searching the past couple days trying to figure out the best way to achieve this but still can't get it figured out.
I have a debian server setup running Proxmox to host OpenVZ and Qemu virtual machines. I've been assigned two subnets from my provider on the same uplink port. My ultimate goal is to have the Qemu bridged to eth1 and OpenVZ routed to eth1. I want to use OpenVZ routing (venet) because of the ease to provision servers.
In theory this is what i'm trying to do (Gateway can be 200.x.x.41 or 200.x.x.97):
/// Gateway 200.x.x.x ///
|
|
/// eth1 ///
| |
| |
//qemu br// //openvz venet//
Over the past couple days i've tried almost every configuration I can think of and seem to run into the problem of either qemu works or openvz works.
The routing method for openvz i want to use (venet) does not support bridging which is why I think it doesn't work when i have bridge_ports eth1 setup for a bridge as then the routing table shows the default gateway as br0, but i could be wrong.
I have two subnets that are routed to my eth1 port, 200.x.x.40/29 and 200.x.x.96/27. I would like to use the 200.x.x.96/27 subnet for OpenVZ and 200.x.x.40/29 for Qemu.
Is this even physically possible without multiple nics?
Can someone please help me out or at least point me in the right direction, i've pulled out what hair I have left and I cant help but think it's something simple that i'm over-complicating or just not seeing.
Thanks for any help in advance, it is greatly appreciated!!