Mellanox ConnectX-4 Lx Virtual Ethernet Adapter is creating after the vm deallocation

pedri 6 Reputation points
2022-06-03T08:42:50.23+00:00

We have a Azure windows 10 PRO VM.

After each VM deallocation, a new Mellanox ConnectX-4 Lx Virtual Ethernet Adapter is created.
These adapter stack in VM guest (Windows 10) and lead for some oldest VM around 950 adapter.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,145 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,149 questions
{count} votes

3 answers

Sort by: Most helpful
  1. GitaraniSharma-MSFT 47,421 Reputation points Microsoft Employee
    2022-07-06T12:59:52.247+00:00

    Hello @pedri ,

    I understand that a new Mellanox ConnectX-4 Lx Virtual Ethernet Adapter is created every time you deallocate your Azure Windows 10 PRO VM.

    I checked internally and found that you raised a support request for this issue and below is the summary provided by the support team:

    We were able to reproduce the issue in our lab, so we discussed this with our engineering team and came to a conclusion that this is happening due to the design limitation of accelerated network.

    There are few things that will happen when you stop and start the VM. When you stop the virtual machine it will be deallocated from the current physical server and when you start the machine again it will be started/allocated on the new physical server in the datacenter and that particular machine will have a new hardware MAC address.

    New hardware will not find the old mac address, that is why it take a new mac address. This is by design for accelerated networking.

    If you shut down the VM through the OS, the VM is stopped and not deallocated. In that case, there would be no ghosted NIC because the lease is never lost for the existing hardware. The VM would start on the same hardware/physical server in the datacenter, have the same resources, and no ghosted NIC would appear.

    From this link Accelerated Networking overview | Microsoft Learn, you will be able to see the difference in the design for accelerated and normal networking.

    218211-image.png

    If you look at the screenshot with accelerated networking, to improve the performance it will bypass the virtual switch (Software controlled).
    Whenever VM moves to a new/different hardware you will get the different hardware address, hence the OS will not be able to identify the previous server's MAC address, which is the reason your NIC will be ghosted/shown under the hidden devices.

    For the VM’s running without accelerated networking, MAC address can be reserved with the software layer (virtual switch).

    At present, we do not have control to reserve the mac address of the physical server. Our Product Group team is always working to improve our product and services, however there is no estimated time for the improvement of this feature.

    ----------------------------------------------------------------------------------------------------------------

    Please "Accept the answer", as it might be beneficial to other community members reading this thread.

    0 comments No comments

  2. Rob Rong 0 Reputation points Microsoft Employee
    2023-10-22T23:45:58.68+00:00

    "This behavior is intentional as part of Azure's accelerated networking feature. The Microsoft Windows team is actively considering a design modification to address this issue, although an estimated time of arrival (ETA) for the update is currently unavailable."

    0 comments No comments

  3. Leonel Lopez 0 Reputation points
    2024-04-18T12:58:49.69+00:00

    I have a VM with one of this ghost adapters dropping packages. Is this needed? Is it ok to delete it? Will it come back?