VMs with dedicated NIC

pvenub

Member
Mar 17, 2014
38
0
6
Have two NICs and am trying to figure out how to dedicate VMs to particular NIC. I have tried created bridge to eth0 and eth1 with vmbr0 and vmbr1 but if I do that way I can't use NAT? If I don't use NAT do I need to create vmbr.x for each VM separately or is there built in dhcp when using bridged mode?

Thank you,
 

this doesn't help much
how do i bridge all 4 NICs with dedicated ip addresses
i need each vm to have a dedicated interface

this is the default config

Code:
auto lo
iface lo inet loopback

iface eno0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.*.*
        netmask 255.255.255.0
        gateway 192.168.*.1
        bridge_ports eno0
        bridge_stp off
        bridge_fd 0

iface eno1 inet manual

iface eno2 inet manual

iface eno3 inet manual


i changed it to

Code:
auto lo
iface lo inet loopback

iface eno0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.*.2
        netmask 255.255.255.0
        gateway 192.168.*.1
        bridge_ports eno0
        bridge_stp off
        bridge_fd 0

iface eno1 inet manual

auto vmbr1
iface vmbr1 inet static
        address 192.168.*.3
        netmask 255.255.255.0
        gateway 192.168.*.1
        bridge_ports eno1
        bridge_stp off
        bridge_fd 0


iface eno2 inet manual

auto vmbr2
iface vmbr2 inet static
        address 192.168.*.4
        netmask 255.255.255.0
        gateway 192.168.*.1
        bridge_ports eno2
        bridge_stp off
        bridge_fd 0

iface eno3 inet manual

auto vmbr3
iface vmbr3 inet static
        address 192.168.*.5
        netmask 255.255.255.0
        gateway 192.168.*.1
        bridge_ports eno3
        bridge_stp off
        bridge_fd 0


but didn't work and i lost access to the web interface

Code:
ip a
showed first 2 eno states are down
 
Last edited:
Did you ever figure this out? I also want to dedicate a specific port from a Quad port NIC to one of my VM's but can't seem to get it working
 
You can create separate virtual bridge for every VM, each using one eth-port...
 
As alternative "pass-through" comes to my mind. But I'm not sure you can pass just individual port of multiport-NIC to VM. If you had multiple NICs (each with single eth-port), you could pass one NIC to every VM...

But I think that solution vith individual virtual bridge is easier. Never used it on PVE, but I have been using it extensively on ESXi (they call it "virtual switch" there) and it worked...
 

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!