VM Network interface name changed after migration from other hypervisor

kakuni

New Member
Mar 20, 2024
12
3
3
Hi,
I am migrating to Proxmox VE many VMs that are running on Hyper-V.
Most of these are UEFI-booted Ubuntu VMs and the name of their network interface is a string like eth0.
After migrating them, the network interface name was changed to a string like enp6s18.
And the interface configuration was made inoperative.

There are several naming methods, and I believe that it is guest OS and its configuration that decides which one to use.
Why would replacing the hypervisor have an impact on that?

Also, it is very annoying to modify the settings of multiple VMs one by one,
so is there any way to reduce these unwanted effects all at once?

Thank you in advance.
 
There are several naming methods, and I believe that it is guest OS and its configuration that decides which one to use.
You are correct, its the Guest OS that is responsible for the name.
Why would replacing the hypervisor have an impact on that?
Because each hypervisor handles the hardware differently. Many things change: PCI connectivity, model, bios, firmware. The Kernel takes it all into consideration when it comes up with a name: https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
Also, it is very annoying to modify the settings of multiple VMs one by one,
so is there any way to reduce these unwanted effects all at once?
One possibility is to make modifications prior to migration. There could be a few avenues: simply clone the config to predicted name, implement udev rules to match on MAC and ensure that MAC is stable, few other paths.
Each one requires manual intervention. The value of finding a workaround really depends on how many VMs you are moving. You will spend time on this task either way.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
You are correct, its the Guest OS that is responsible for the name.

Because each hypervisor handles the hardware differently. Many things change: PCI connectivity, model, bios, firmware. The Kernel takes it all into consideration when it comes up with a name: https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

One possibility is to make modifications prior to migration. There could be a few avenues: simply clone the config to predicted name, implement udev rules to match on MAC and ensure that MAC is stable, few other paths.
Each one requires manual intervention. The value of finding a workaround really depends on how many VMs you are moving. You will spend time on this task either way.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Hi ,
did you happen to find a solution for that issue ?

thanks .
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!