Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1028336

Summary: No "Mac address collision" error shows when guests with the same MAC address booted
Product: Red Hat Enterprise Linux 7 Reporter: tingting zheng <tzheng>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: acathrow, bili, dallan, dyuan, honzhang, lcui, mzhan
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-11 15:22:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description tingting zheng 2013-11-08 09:00:20 UTC
Description
No "Mac address collision" error shows when guests with the same MAC address booted.
When create a new guest from virt-manager,set the fixed MAC address as one which has been used by other guests,error will pop out:
"Mac address collision":"The MAC address '*******' is in use by another virtual machine."

Version:
virt-manager-0.10.0-5.el7.noarch
libvirt-1.1.1-11.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Prepare 2 guest xml files,set the same mac address for interface part.
2.use # virsh define guest.xml to create 2 guests.
3.use # virsh start guest to boot 2 guests.
4.The issue also occurs to virtual networks,virtual networks with the same MAC address can be started without error.
# virsh net-list --all
Name                 State      Autostart     Persistent
--------------------------------------------------
bridge-test          active     no            yes
default              active     yes           yes

# virsh net-dumpxml bridge-test
<network>
  <name>bridge-test</name>
  <uuid>2387ed67-23a4-47d4-8227-fa6b0f861760</uuid>
  <forward mode='bridge'/>
  <bridge name='br0' />
  <mac address='52:54:00:3B:78:35'/>
</network>

# virsh net-dumpxml default
<network connections='3'>
  <name>default</name>
  <uuid>196809bf-6249-4800-8152-f9621265378c</uuid>
  <forward mode='nat'/>
  <bridge name='virbr0' stp='on' delay='0' />
  <mac address='52:54:00:3B:78:35'/>
  <ip address='192.168.122.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.122.2' end='192.168.122.254' />
    </dhcp>
  </ip>
</network>


Actual results:
Both of the guests can be booted successfully without "Mac address collision" error.

Expected results:
Only 1 guest can be booted,when trying to boot the other guest with the same MAC address,"Mac address collision" error shows.

Additional info:
1.When create a new guest from virt-manager,set the fixed MAC address as one which has been used by other guests,error will pop out:
"Mac address collision":"The MAC address '*******' is in use by another virtual machine."

Comment 1 Dave Allan 2013-11-11 15:22:21 UTC
It's unusual, but valid to assign multiple VMs with the same MAC.  This behavior is not a bug.

Comment 2 Dave Allan 2013-11-11 15:41:16 UTC
I should also add that the string "Mac address collision", afaik, does not appear in the libvirt code, so it's a reasonable question why virt-manager is prohibiting this use case.