[SOLVED] Is there an equivalent of HyperV's internal switch?

Oldsocks

Active Member
Mar 1, 2018
23
1
43
50
Hello!

My apologies if this has been asked and answered; I have had a bit of a search but couldn't find a solution my sleep deprived brain could handle.

Basically: I need to create a link between two VMs on the same host - nic in guest a connected to a virtual switch, nic in guest b also connected to that virtual switch (if you're curious, it's so I can use guest b as a router/gateway without messing about with real switches and vlans and the like). In hyper-v, I'd just create an internal switch, add that to the VMs and be done with it. In proxmox, it looks like I'd need an actual switch and actual nics to do this? Which is a bit of a problem as they're all currently in use (I only have three nics on this machine).

I the ovs int port might be the way to go (because the name sounded right) but my googling suggests otherwise. Is there a way to do this?

Many thanks!
 
You can create a Linux bridge to do that (can be done from the GUI or by editing /etc/network/interfaces)). If you don't enslave a real NIC of the hypervisor to that bridge, it'll be isolated from the outside. And if you don't assign it an IP address on Proxmox, it'll be isolated from the host itself. By then you can "plug" all guest's NIC you want and it'll be like if they were on the same switch
 
I ought to be ashamed of myself, that did the trick. I also found that connecting them to the same 'real' bridge and giving them the same vlan id would also isolate them and connect them virtually directly. Thanks!