Add VLANs without reboots / network restarts?

breakaway9000

Renowned Member
Dec 20, 2015
91
22
73
Let me preface this by saying I come from a vmWare background. I've got a small-mid sized virtual environment - about 100 VMs, 3 hosts.

I setup PM 4.1 for trial purposes in my lab. If it goes well, I will consider migrating. PM seems to have all the features I need built in which is fantastic.

I've got about several customer VLANs that is delivered through my switch to each of my hosts. I am trying to replicate this set up on Proxmox but when I read up on how to do it, it seems that after adding a network change I need to restart networking (as referenced on this guide: https://pve.proxmox.com/wiki/Vlans)

Is this really how it's done? When adding a VLAN (which we do quite frequently when customers join & leave), I have to restart networking? Won't this cause a drop-out in communications for all the VMs running on the hosts?
 
[...]I've got about several customer VLANs that is delivered through my switch to each of my hosts. I am trying to replicate this set up on Proxmox but when I read up on how to do it, it seems that after adding a network change I need to restart networking (as referenced on this guide: https://pve.proxmox.com/wiki/Vlans)[...]


That guide shows how to add Vlans to a proxmox NODE.
Unless you keep adding/removing Vlans to/from your proxmox nodes, then there is no need to restart networking whatsoever. However if you do it on the nodes (which would be rather weird), then yes you need to restart networking.


for VM's, when you add a vNic you can add the vlan-tag via gui (LXC + KVM), if you are into vlan tagging. Additionally subneting is done via the gui using cidr notation for LXC and using regular OS-based setup mechanics on the host when you use KVM. (ie. Debian-guest you'd set it like a regular debian via /etc/network/interfaces on the guest)
No need for restarts of nodes, not even if the guest would require it (you'd then just restart the vm)

hope that clarifies that a bit for you.

ps.: if there is a lot of inter-vm traffic between vm's on the same node, or high bandwith utilisation in general i'd look into openvswitch if i were you: https://pve.proxmox.com/wiki/Open_vSwitch
it is pretty awesome.
 
I see... so this is different in the way VMWare does it in that when you setup a VM, you have to connect it to a "Virtual Network" which is a different workflow than PM

Can you clarify what you mean by 'NODE'? Is that like a management interface / network interface for iSCSI / migration traffic? In vmware these are referred to VMKernel interfaces.
 
by node i mean the physical Hardware running the hypervisor.

If i understand it correctly you have 3 nodes (for your cluster) and roughly 100 vms.
 

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!