Migrating Ubuntu VM from ESX to Proxmox
Install the QEMU agent before you power down the VM
sudo apt-get update
sudo apt-get -y install qemu-guest-agentImport your VM, selecting VirtIO for the Network Card
When powering up the VM in Proxmox log in and verify the network interfaces. Take note of the final four digits of the MAC address under the hardware section.
Verify the interface name with the matching MAC address i.e. enp6s18
ip link show (or ip a)Navigate to the Netplan configuration directory: cd /etc/netplan/
You'll likely find a YAML file there (e.g., 00-installer-config.yaml or something similar).
Backup the original file
sudo cp <your_netplan_file>.yaml <your_netplan_file>.yaml.bakEdit the file
sudo nano <your_netplan_file>.yamlFind the section for your network interface. It will likely have the old ESXi interface name. Change it to the new name you identified (e.g. enp6s18).
network:
version: 2
renderer: networkd
ethernets:
enp6s18: # <--- Change this to your new interface name
dhcp4: trueReboot the server or
sudo netplan apply