libvirt KVM virtual NIC as ens160 for running a virtual appliance designed for Vmware
Hi, I want to run a virtual appliance which was designed for Vmware on libvirt Linux/KVM. Unfortunately, they hardcoded the kernel NIC name to ens160 inside that image. I can create a libvirt XML which creates a NIC recognised as ensXX, but not ens160, because libvirt doesn’t allow PCI slots over 0x1f. Is there any possible way to create a virtual NIC ens160 without modifying the image? Thanks.
On Sun, Mar 30, 2025 at 02:03:35PM +0200, Sascha Frey wrote:
Hi,
I want to run a virtual appliance which was designed for Vmware on libvirt Linux/KVM.
Unfortunately, they hardcoded the kernel NIC name to ens160 inside that image.
I can create a libvirt XML which creates a NIC recognised as ensXX, but not ens160, because libvirt doesn’t allow PCI slots over 0x1f.
I wonder how you create such domain XML. Could you post it here?
Is there any possible way to create a virtual NIC ens160 without modifying the image?
I don't think we provide such PCIe controllers as QEMU probably does not have any such ones. Have you considered using virt-v2v for the image to convert it to a usable image?
Thanks.
participants (2)
- 
                
Martin Kletzander - 
                
Sascha Frey