Re: Investigating MAC Address Conflict Resolution in libvirt: Log Analysis and Code Location Inquiry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 24, 2024 at 05:26:29PM +0800, Xuda Zhang wrote:
Dear Team,


Hi, not sure if this is still relevant, but ...

I am reaching out regarding an issue I encountered with libvirt and MAC
address conflicts. Below is a summary of the situation:

  1. Initially, the vNIC's MAC address was different from the target VM's
  MAC address.

you are talking about a vNIC from the host's point of view and "target
VM" as seen from the guest?  I'm just trying to make sure I understand.

  2. After modifying the vNIC's MAC address to match the VM's MAC address,
  the network was interrupted.
  3. After rebooting the VM, the vNIC's MAC address was automatically
  modified again.


Are you using some filtering (nwfilter) on the libvirt network?

I have observed the following kernel logs during this process:

Dec 24 16:59:40 zstack-manager kernel: br_enp2s0: port 14(vnic43.0)
entered disabled stateDec 24 16:59:40 zstack-manager kernel: device
vnic43.0 left promiscuous modeDec 24 16:59:40 zstack-manager kernel:
br_enp2s0: port 14(vnic43.0) entered disabled stateDec 24 17:00:11
zstack-manager kernel: br_enp2s0: port 14(vnic43.0) entered blocking
stateDec 24 17:00:11 zstack-manager kernel: br_enp2s0: port
14(vnic43.0) entered disabled stateDec 24 17:00:11 zstack-manager
kernel: device vnic43.0 entered promiscuous modeDec 24 17:00:11
zstack-manager kernel: br_enp2s0: port 14(vnic43.0) entered blocking
stateDec 24 17:00:11 zstack-manager kernel: br_enp2s0: port
14(vnic43.0) entered forwarding state

I am looking to understand the underlying code that handles the automatic
modification of the vNIC's MAC address after the conflict and how the
network interruption occurs. Can you help direct me to the relevant code
segment or provide any insights into this behavior?


What conflict are you talking precisely?  Is something having the same
MAC address as the VM?

Thank you for your assistance.

Best regards,

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux