virsh update VLAN

Posted on

Dear all,

we are using KVM with OpenvSwitch and we have a domain that is defined with VLAN tag under its ethernet ports. We want to update the VLAN tag in some of the interface and have this update live (with no power off & power on procedure). The same VLAN tags, are active on the Virtual Switch.

e.g., in order to update the tag at the virtual network we run the following command

virsh net-update net-var modify --section portgroup --xml ""

Is there a similar way to update the xml configuration of the running domain without the need of "virsh edit"? Just to clarify we don't want to add a new interface but to update an existing one.