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.
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."
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.
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."