Forcing proxmox to live update VM network configuration for trunk vlan

Nov 22, 2020
80
11
13
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

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!