How can I set up a private network for two vms in proxmox.

obss

New Member
Dec 4, 2020
14
2
3
32
When I want to transfer files from my windows computer running on promox to my ubuntu computer, the process turns over the main modem. How can I create different IP blog on promox. What should be done for host-only connection on the network side.

What can I do for only VMs to communicate with each other on a single interface. can you help me.
 
  • Like
Reactions: zakaria
How do you have the network configured currently? If both guests are using the same vmbr and are in the same IP subnet the traffic should never leave the host.

Alternatively you can create a new vmbr without any IP or bridge port. This will basically be a virtual switch. Then add an additional NIC using that vmbr and configure the IP addresses so they can talk to each other. (Should be in a separate subnet)
 
When I try to create a new network I get the following warning. I'm trying to create from different IP blog.

Parameter verification failed. (400)

gateway: Default gateway already exists on interface 'vmbr0'.

I do not separate the main computer, I only aim to establish a new network and enable the communication of the vm's inside through the virtual bridge.


Bash:
root@pve:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface enp3s0 inet manual

auto vmbr0
iface vmbr0 inet static
    address 192.168.1.20/24
    gateway 192.168.1.1
    bridge_ports enp3s0
    bridge_stp off
    bridge_fd 0
 
You can only have one default gateway. It is also not necessary to define an IP address if you create a new vmbr. You can just leave it empty if the PVE host does not need to be reachable through that interface.

I have one question: how do you know that the traffic between these 2 VMs is going through the router/modem? If both VMs use vmbr0 and are in the same subnet as the host (192.168.1.0/24) the traffic between the VMs should not leave the host and will go through vmbr0 directly to the other VM.
 

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!