how to communicate vm's through vSwitch

marcinr_92

New Member
Jan 2, 2021
12
0
1
32
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)