Bug 1743349
| Summary: | 0xFE is not allowed as the first byte of the MAC address for emulated network devices based on a tap device | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Laine Stump <laine> |
| Component: | libvirt | Assignee: | Laine Stump <laine> |
| Status: | CLOSED ERRATA | QA Contact: | yalzhang <yalzhang> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.0 | CC: | ailan, asadan, danken, jdenemar, lmen, rmohr, sscheink, xuzhang |
| Target Milestone: | pre-dev-freeze | Flags: | knoel:
mirror+
|
| Target Release: | 8.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-5.6.0-2.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-11-06 07:18:55 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
Laine Stump
2019-08-19 17:00:55 UTC
The fix is that when we check for an FE prefix in the guest MAC address, instead of failing, we should instead just use a prefix of 0xFA for the tap device. A fix has been pushed upstream, and will be in libvirt-5.7.0:
commit a60ee914009aa7f1a27fc0563337ded08b09247f
Author: Laine Stump <laine>
Date: Sun Aug 11 16:21:42 2019 -0400
util: allow tap-based guest interfaces to have MAC address prefix 0xFE
Reproduce on libvirt-5.0.0-12.module+el8.0.1+3755+6782b0ed.x86_64:
1. Start vm:
# virsh dumpxml rhel | grep "<mac"
<mac address='fe:54:00:58:48:ed'/>
# virsh start rhel
error: Failed to start domain rhel
error: unsupported configuration: Unable to use MAC address starting with reserved value 0xFE - 'fe:54:00:58:48:ed' -
2. hotplug:
prepare a running vm, hotplug an interface with mac address with prefix as "FE"
# virsh attach-interface rhel network default --mac fe:54:00:58:48:ed
error: Failed to attach interface
error: unsupported configuration: Unable to use MAC address starting with reserved value 0xFE - 'fe:54:00:58:48:ed' -
Test on libvirt-5.6.0-2.module+el8.1.0+4015+63576633.x86_64:
1. Start vm:
# virsh dumpxml rhel | grep "<mac"
<mac address='fe:54:00:70:58:07'/>
# virsh start rhel
Domain rhel started
# virsh dumpxml rhel | grep "<mac" -A2
<mac address='fe:54:00:70:58:07'/>
<source network='default' portid='a5d3c662-4c87-45a4-a086-cfce1539195e' bridge='virbr0'/>
<target dev='vnet0'/>
# ip addr | grep vnet0 -A2
98: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master virbr0 state UNKNOWN group default qlen 1000
link/ether fa:54:00:70:58:07 brd ff:ff:ff:ff:ff:ff
inet6 fe80::f854:ff:fe70:5807/64 scope link
2. hotplug:
# virsh attach-interface rhel network default --mac fe:54:00:70:58:09
Interface attached successfully
# virsh dumpxml rhel | grep "<mac" -A2
..
<mac address='fe:54:00:70:58:09'/>
<source network='default' portid='7f1a8de4-6551-464e-9170-b328fa1faeb6' bridge='virbr0'/>
<target dev='vnet1'/>
# ip addr | grep vnet1 -A2
101: vnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master virbr0 state UNKNOWN group default qlen 1000
link/ether fa:54:00:70:58:09 brd ff:ff:ff:ff:ff:ff
inet6 fe80::f854:ff:fe70:5809/64 scope link
And check the network function works well, set the bug to be verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:3723 |