Forcing proxmox to live update VM network configuration for trunk vlan

guerby

Active Member
Nov 22, 2020
86
18
28
51
Hi,

I have a proxmox VM with the following network configuration:

net0: virtio=xx,bridge=vmbr0,trunks=2;3;4

I wanted to add VLAN 5 to the trunk without having to reboot the VM. I first added ";5" to the configuration line.

But I ended up doing on the hypervisor where the VM is running:

bridge vlan add vid 5 dev tapNNNi0

Is there a way to force a VM network configuration update via qm command or web UI ?
 
hi,

you can use qm set to change the configuration of a VM. it's not recommended to edit the configuration file manually (especially if the VM is running).

for example qm set 123 -net0 virtio=xx,bridge=vmbr0,trunks=2;3;4

without having to reboot the VM
that part depends on the exact config of the VM, some values can be changed without a reboot, others are added in as a pending change.

for network you should be able to hotplug the interface after making a chance (thus skipping a reboot), but you need to make sure that the network hotplug is enabled in the VM's "Options" tab
 
  • Like
Reactions: guerby
hi,

you can use qm set to change the configuration of a VM. it's not recommended to edit the configuration file manually (especially if the VM is running).

for example qm set 123 -net0 virtio=xx,bridge=vmbr0,trunks=2;3;4


that part depends on the exact config of the VM, some values can be changed without a reboot, others are added in as a pending change.

for network you should be able to hotplug the interface after making a chance (thus skipping a reboot), but you need to make sure that the network hotplug is enabled in the VM's "Options" tab
Thanks! I tested updating the trunk list via qm set NNN -net0 and it worked as expected without having to reboot the VM.
 
  • Like
Reactions: oguz