Bug 784767

Summary: Feature Request: change the mapping between a virtual bridge interface and the host bridge while the host is up
Product: [Community] Virtualization Tools Reporter: Ralf Spenneberg <ralf>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: crobinso, eblake, hendrik, laine, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 805071 (view as bug list) Environment:
Last Closed: 2012-03-31 00:20:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 805071, 853130    
Attachments:
Description Flags
Patch to implement functionality
none
Example xml definition of guest
none
File to use with virsh update-device
none
fixed patch none

Description Ralf Spenneberg 2012-01-26 07:41:24 UTC
Created attachment 557594 [details]
Patch to implement functionality

Description of problem:


We would like to move the vNIC of a guest from one bridge to another while the guest is running. It is easy to do with brctl but libvirt does not provide an interface.

We have written a patch to support this feature using externally configured bridges. It currently does not support virtual networks generated by libvirt. We are working on that.

Attached:
- patch based on 6fba577e505611e6c25c68e322942eab7754de7e.
- example xml definition of guest
- example xml file for virsh updatedevice <guest>

Comment 1 Ralf Spenneberg 2012-01-26 07:42:18 UTC
Created attachment 557595 [details]
Example xml definition of guest

Comment 2 Ralf Spenneberg 2012-01-26 07:43:39 UTC
Created attachment 557596 [details]
File to use with virsh update-device

Comment 3 Hendrik Schwartke 2012-01-26 12:39:49 UTC
Created attachment 557667 [details]
fixed patch

Comment 4 Eric Blake 2012-03-20 14:36:11 UTC
Can you please post your patches to the upstream libvirt list, libvir-list, so as to get faster response?

Comment 5 Laine Stump 2012-03-20 16:36:58 UTC
I think this is the patch:

http://www.redhat.com/archives/libvir-list/2012-January/msg01132.html

Comment 6 Laine Stump 2012-03-31 00:20:04 UTC
The following patch (a modified version of the patch originally posted by Hendrik) has been pushed upstream, and will be in release 0.9.11 of libvirt:

commit 2711ac87160d7ac7d550c57f4339e6c6749942fa
Author: Hendrik Schwartke <hendrik>
Date:   Wed Mar 28 15:11:09 2012 -0400

    qemu: support live change of the bridge used by a guest network device