Posting my solution to a problem I saw frequently mentioned with no solution to hopefully help others. This is related to importing a VM from vmware

siryarbles

New Member
Mar 20, 2023
3
1
3
Recently I exported several VMs from vmware and imported them into proxmox. I could not for the life of me get it to recognize my ethernet interface. In the VM I was not seeing eth0 or any interfaces related to ethernet. I tried all sorts of things such as updating my interfaces file, using netplan instead of ifconfig, etc. None of these solved my problem. I was getting really frustrated when I read this post: https://forum.proxmox.com/threads/networking-issue-on-some-vms-but-not-others.85819/

I then decided to run the command:
Code:
qm config <VMID>
against a working VM and the newly imported one. A diff of these showed:

Code:
root@pve:/etc/pve/qemu-server# diff 101.conf 200.conf
1c1
< boot: order=scsi0;ide2;net0
---
> boot: order=scsi0
3,14c3,7
< ide2: local:iso/ubuntu-22.04.2-live-server-amd64.iso,media=cdrom,size=1929660K
< memory: 16384
< meta: creation-qemu=7.1.0,ctime=1684244796
< name: minikube
< net0: rtl8139=D2:F1:FC:44:48:54,bridge=vmbr0
< numa: 0
< ostype: l26
< scsi0: local-lvm:vm-101-disk-0,iothread=1,size=120G
< scsihw: virtio-scsi-single
< smbios1: uuid=7b3212a7-632f-4fc5-8ea7-268067d70201
< sockets: 1
< vmgenid: 18a003cd-78fc-48cd-922f-07ce47710c48

I quickly noticed the net0 section missing from the newly imported VMs config so I added the line:
Code:
net0: rtl8139=D2:F1:FC:44:48:67,bridge=vmbr0
(note that I modified the MAC address to not match the mac of the other VM). Essentially I am telling proxmox what driver to use with this VM and the name of the interface on the proxmox host itself. I then rebooted the VM and it got an eth0 interface and an IP address!

Hope this helps someone!
 

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!