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

Oldsocks

Member
Mar 1, 2018
22
1
23
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!
 

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!