Multiple VMs for a lab environment

mrrlg

New Member
Nov 6, 2024
3
0
1
Good day experts! I am a newbie to Proxmox. I am trying to create a lab environment where I can host multiple VMs each in their own vlan and trunk them across the physical interfaces of the server to a distribution switch at layer 2. The VM itself can be as small a footprint as possible, all I really need to do is apply an ip and gateway, ping and traceroute. Is this possible with Proxmox?
 
yes it is. But not straight out of the box per se. The standard installation is not VLAN aware. You need to configure /etc/network/interfaces to make the interface VLAN aware. Its not a big deal though. On a fresh install I do it right from the console while I still have a monitor and a keyboard attached.
 
You need to configure /etc/network/interfaces to make the interface VLAN aware.
In the node-level network configuration, there is also a checkbox in the configuration window called "VLAN aware". This adds the following lines to your /etc/network/interfaces file:
Code:
bridge-vlan-aware yes
bridge-vids 2-4094
 
In the node-level network configuration, there is also a checkbox in the configuration window called "VLAN aware". This adds the following lines to your /etc/network/interfaces file:
Code:
bridge-vlan-aware yes
bridge-vids 2-4094
100% correct. But the issue I have had is that if I am plugged into a non-trunked port, these settings can make the network unreachable. To me, it always seemed to just be fewer steps to start on a trunked port, and make the edits in the console right after installation. If you are working with an established installation then this may be a better option. Just remember to move your network connection to a trunked port after activating VLAN aware.
 
  • Like
Reactions: tnicholson
Thanks for the quick response. Sounds like this change will have to wait until I am in front of the server next week.
 
Well that didn't work out as expected. I created a trunk port on the switch and allowed all vlans. I then went to the Vmbr0 Linux Bridge and made that vlan aware. I rebooted the server. When I shift the interface to the trunk port on the switch, I get the error message NIC copper link is down. When I move back to an access port in a specific vlan, I can ping my gateway and users can access via the GUI.