renaming vmbr_x to vmbr_y (/etc/network/interfaces)

Spoonman2002

Active Member
Jul 6, 2021
348
28
33
53
Holland
Hi,

just a quick question:

when I rename an existing vmbr0 to something like vmbr1 on the PVE host,
all my vm's and lxc's loose their original vmbr0 connection.
In other words, I have to re-assign in every virtual machine the new Bridge,
because the old one is gone.

Is there a fast way to re-assign ALL virtual machines to the new Bridge?
 
Hi,
not that I know of. And backups still would need to be adapted manually after restoring. It's not that common of a scenario to rename a bridge, what do you gain from it?
 
Hi,
not that I know of. And backups still would need to be adapted manually after restoring. It's not that common of a scenario to rename a bridge, what do you gain from it?
Thanks for your reply.
I want to rename the Bridges into logical names that correspond with the nic naming.
But I think I just leave it as it is...too much work and reconfiguration.
 
Thanks for your reply.
I want to rename the Bridges into logical names that correspond with the nic naming.
But I think I just leave it as it is...too much work and reconfiguration.
You could do this with sed for the .conf-files in /etc/pve/lxc/ and /etc/pve/qemu-server/ when the LXC and Vms are powered off.
 
  • Like
Reactions: Spoonman2002