how to communicate vm's through vSwitch

marcinr_92

New Member
Jan 2, 2021
12
0
1
31
Hello all,

I suppose that my knowledge about switching is strong for physical switch, but when i start use proxmox i feel a little confuse :(

Initial setup is quite simple:
1. vSwitch
2. 1st VM
3. 2nd VM

Actually i created some VM with debian on the board. Installed vSwitch from repo, and create inside
1. bridge ( ovs-vsctl add-br myBridge )

clear all addressing on vm with vSwitch and get
2. ifconfig ens18 0
3. dhcpclient myBridge

then, create two vport also on vSwitch:
4. ip tuntap add mode tap vport1
5. ip tuntap add mode tap vport2

and now... how to connect 1st VM to vport1, and 2nd VM to vport2?

################
Second question, the vSwitch should be installed directly on proxmox server? or can by installed on another machine?
 
Last edited:
Hi,

you don't need to use any command line, proxmox is doing it for you.

to create the ovs switch, simply use it gui and add a ovs switch.
(or edit manually /etc/network/interfaces https://pve.proxmox.com/wiki/Open_vSwitch)


for vms, you don't need to create tuntap,tap,...manually. proxmox is doing it when you start a vm. (simply choose the vmbrX switch in the vm nic gui)
 

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!