RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 893335 - Guest network can't work after change mac address, when using vnic over macvtap
Summary: Guest network can't work after change mac address, when using vnic over macvtap
Keywords:
Status: CLOSED DUPLICATE of bug 848199
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: rc
: ---
Assignee: Vlad Yasevich
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-09 06:53 UTC by Qian Guo
Modified: 2014-02-19 17:01 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-19 17:01:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Qian Guo 2013-01-09 06:53:13 UTC
Description of problem:
Boot a guest with vnic over macvtap, if change mac address inside guest, the guest's network could not work.

Version-Release number of selected component (if applicable):
qemu-kvm version:qemu-kvm-1.3.0-3.el7.x86_64
kernel verison:kernel-3.6.0-0.29.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.create a macvtap device, e.g.
# ip -d link show vepa1
11: vepa1@em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT qlen 500
    link/ether ce:b5:b9:3c:12:fd brd ff:ff:ff:ff:ff:ff
    macvtap  mode vepa 
2.boot a guest with a vnic over macvtap, and need assign the mac address of macvtap to this vnic.

3.inside guest, change the mac address of corresponding nic.
  
Actual results:
After change mac address, the guest lost network connection, this network could not work anymore.

Expected results:
After change mac address, network of the guest works well, or forbid change mac address when using macvtap.

Additional info:

When boot a guest w/ vnic over macvtap, mac address of the nic inside guest must be the same as the one of macvtap. So if change mac address inside guest, the guest's network could not work, but guest could not detect whether the nic is over macvtap. 

So if we really could not do mac_change over macvtap, we should document this to forbid users do this.

Comment 2 Amos Kong 2013-11-04 03:23:42 UTC
If you also change the macaddr of host macvtap device to the new address, guest network will work.

The problem in this bug is that we don't sync the change to the host device.

We already have an QMP event to notify the management about the mac changing in guest, but the libvirt hasn't support to update the host device when it receives the event.

libvirt bug: https://bugzilla.redhat.com/show_bug.cgi?id=848199

So this bug's duplicated with bz 848199.

Comment 3 Vlad Yasevich 2014-02-19 17:01:41 UTC
As comment 2 says, this BZ will be resolved once the functionality in BZ 848199 is made available.  Besides that, there is nothing more specific to do for this bug.  Closing as duplicate.

*** This bug has been marked as a duplicate of bug 848199 ***


Note You need to log in before you can comment on or make changes to this bug.