[SOLVED] Direct Connect Two VMs in Proxmox

FallCWB

New Member
Oct 5, 2020
4
1
1
37
Hello everyone,
I'm creating a small network to train SDN and on it I'm making one of my VM into a switch, the problem that I'm having is that I'm not able to connect two NIC.
What I have done is to create a separated bridge (vmbr 1) and putted each card in a different vlan tag. This worked, I can have communication between the machines but the problem is that the vmbr re-encapsulates making me lose information.
TL;DR: there is any way using proxmox to create a "virtual cable" that connects two vms together? Like I would connect two real machines with a single cable?

PS.: I tought about change the vmbr into a hub but I don't know how to do that.

Thank you,
 
Update:
The word I was looking for was: point-to-point connection.
Is it possible to create a point-to-point connect between two VMs?
 
On possible option (which works via GUI) would be to create a bridge for each point-to-point connection and plug in the endpoints (VM NIC for VM 1 and VM 2) into that bridge

I hope this helps!
 
On possible option (which works via GUI) would be to create a bridge for each point-to-point connection and plug in the endpoints (VM NIC for VM 1 and VM 2) into that bridge

I hope this helps!
Thank you Stoiko, I tried it and it works but for what I'm doing it didn't work.
My main problem is that the NICs should not pass trough an bridge.
Any ideas?
 
My main problem is that the NICs should not pass trough an bridge.
this is not possible with PVE's tooling.
* you could create wireguard tunnels between all your vm's (and use those as 'cable')
however I'm not sure where the passing through a bridge (containing only the 2 VM's ports) is causing problems?

PS.: I tought about change the vmbr into a hub but I don't know how to do that.
this can be done by setting the ageing parameter on the bridge (see `man brctl` and `man ifupdown-addons-interfaces` (ifupdown2))

I hope this helps!
 
  • Like
Reactions: FallCWB
Hello eveyone, I found a solution that solved my problems, I used VXLAN on the VMs with OvS and it solved the issues.
Thank you Stoiko.
 
  • Like
Reactions: Stoiko Ivanov