[SOLVED] Imported VM doesn't recognize network adapter

andyn

Member
Jan 29, 2020
17
8
23
49
Hi all,

New to Proxmox, transitioning from VMware. After a couple of teething issues with the changes of concepts, I'm loving Proxmox.
Performance is better on the same hardware, and oh the joy of having in-built backup that works!

Anyhow, to the point. I'm converting VMware VMs to Proxmox, migrating them by using the import tools and commands as documented on
https://pve.proxmox.com/wiki/Migration_of_servers_to_Proxmox_VE

Note that I'm using the free version of ESXi, with no Vsphere server.

The VM imported fine and starts, but without any network adapters (as mentioned on the above page, you have to configure them yourself).
When I add one in Proxmox then start the vm, it doesn't seem to see the network card at all. ifconfig shows only the loopback address, and /etc/networks/interfaces on the VM is empty.

I've tried using the E1000 and vmxnet3 adapter types (the vmware-hosted vm used vmxnet3) but to no avail.

This vm is Ubuntu server 16.04, the next is a mail server so I might build it from scratch in Proxmox and then just move the mailboxes.

Anyone any ideas?
 
please post the output of `ip link` in the VM
/etc/networks/interfaces
this needs to be configured by you and should not get touched by the conversion process ...
maybe the machine uses a different tool for networking? (systemd-networkd, netplan, networkmanager)?
 
Case closed. All fixed.
Thanks for the pointers.

To confirm for anyone finding this thread with the same issue:

Interface names are different between VMware and Proxmox, so from the above hints, I went digging.
https://wiki.debian.org/NetworkConfiguration is a help.

/etc/networks/interfaces shows the correct configuration carried over from VMware, but references an interface name that doesn't exist.

From https://wiki.debian.org/NetworkConfiguration, the command

> ls /sys/class/net

will list the interfaces that the OS has detected.
I backed up /etc/network/interfaces then edited to reference this name instead of the old one, and rebooted.
 
Glad you resolved your issue - you can mark the thread as 'SOLVED' yourself - by clicking on the 3 dots above the first post -> edit thread -> select 'SOLVED' as prefix (for the next time - I'll mark this one as solved)
 
Case closed. All fixed.
Thanks for the pointers.

To confirm for anyone finding this thread with the same issue:

Interface names are different between VMware and Proxmox, so from the above hints, I went digging.
https://wiki.debian.org/NetworkConfiguration is a help.

/etc/networks/interfaces shows the correct configuration carried over from VMware, but references an interface name that doesn't exist.

From https://wiki.debian.org/NetworkConfiguration, the command

> ls /sys/class/net

will list the interfaces that the OS has detected.
I backed up /etc/network/interfaces then edited to reference this name instead of the old one, and rebooted.
Thank you very much, this saved my day!
 
Solved my issue as well!

In some instances, you may need to edit the /etc/netplan/XX-installer-config.yaml file (replace XX with the numbers actually present in your system). Change the interface name in the YAML file, save it, then sudo netplan apply.

Worked like a champ!
 

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!