[SOLVED] no network after import from vmware

cazz

Member
Jul 18, 2021
65
2
13
46
Sweden
Hi
I did trying now just a little for fun import a VM from vmware into proxmox
I have got almost everything running except I have not network

I have try both with VirtIO and Intel E1000 but no network.

I did try with "sudo ip link set ens18 up" and also add a temp ip "sudo ip addr add 192.168.0.195/24 dev ens18" but no network
It can pink it own IP address but no other machine in the network.

I was wonder if I can trying to install VirtIO drivers into VM (is Ubuntu server 20.04) from ISO file but not sure?
 
Do you have other VMs with a working network connection?

Could you please share
Code:
cat /etc/network interfaces # from host
qm config <vmid> # from host
ip a # from within VM

You can also try to use something like tcpdump -envi ens18 "icmp" to find out where your packages get lost.

Usually VirtIO works out of the box in Linux distributions and E1000 should also work.
 
I used ovftool yesterday and migrated a bunch of vms.
ovftool vi://root@<esxnode>:/<vmname> .
and then
qm importovf <vmid> pathtoyourvm/pathtovmfile.ovf <storagename>
After that I went into proxmox webgui added a networkinterface and made sure I had the same mac-addr as I was using dhcp for the vms.
And then just simple poweron worked well.
 
  • Like
Reactions: Dominic

Dominic:​

:

Code:
auto lo
iface lo inet loopback


iface eno1 inet manual


iface eno2 inet manual


iface eno3 inet manual


iface eno4 inet manual


auto vmbr0
iface vmbr0 inet static
        address 192.168.0.192/24
        gateway 192.168.0.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0

Code:
boot: order=scsi0
cores: 2
memory: 2048
name: ubuntumatsrv
net0: virtio=C6:9F:CC:03:D8:C9,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: data:107/vm-107-disk-0.qcow2,cache=writeback,size=40G
scsihw: virtio-scsi-pci
smbios1: uuid=b10579bb-85a6-4864-b6e5-8409d5125998
sockets: 1
vmgenid: acea6a41-52f0-465d-b437-b48d8e7b9cf4

The last command just show that ens18 is down.

When I run tcpdump it say it down so I run then "sudo ip link set ens18 up" and run again and just say it listning on ens18 and nothing more happend.


mikaelkrantz:​

I was thinking maybe run that and maybe try again.
I did just export VMDK and copy to proxmox and then run "qm importdisk" (I did first create a VM that I later delete harddrive.)

/Update
I run program in my windows but I just get information and nothing more.
it is off, do it have to be on?

Code:
OVF version:   1.0
VirtualApp:    false
Name:          DennisMat


Download Size:  Unknown


Deployment Sizes:
  Flat disks:   40.00 GB
  Sparse disks: Unknown


  (note: Source included files for which the file size is unknown)
Networks:
  Name:        VM Network
  Description: The VM Network network


Virtual Machines:
  Name:               DennisMat
  Operating System:   ubuntu64guest
  Virtual Hardware:
    Families:         vmx-17
    Number of CPUs:   1
    Cores per socket: 1
    Memory:           1024.00 MB


    Disks:
      Index:          0
      Instance ID:    11
      Capacity:       40.00 GB
      Disk Types:     SCSI-lsilogic


    NICs:
      Adapter Type:   VmxNet3
      Connection:     VM Network


References:
  File:  /19/VirtualAHCIController0:0
  File:  /19/VirtualLsiLogicController0:0
  File:  /19/nvram
 
Last edited:
Did find the error
At first I have not say where to save the files :)
And I have to remove my ISO installation from VM.
 
ok I did find the error.
I feel so stupid but when I look in vmware I did notice that interface was ens160 but in proxmox it was ens18
so I did open netplan and change from ens160 to ens18 and reboot.
Now it have IP address and working.

Thanks alot for all the help :)
 
  • Like
Reactions: Dominic
I run in to same problem, I had to change the name of the interface in /etc/network/interfaces, it changed during the import, because of that the dhcp server was not started for this interface.

I wrote this just in case somebody hast the same problem and doesn't know what to do with the previous informations.
 
HI,

I have the same issue. I was able to figure that out for Debian and Centos, but Unbuntu 20.04 and maybe 18.04 as i am about to try. The issue is that the file /etc/network/interfaces is empty. I have been migrating from ESXI 5.5 to Promox 7.

Then i did some more digging and try to change netplan/00-installer-config.yaml

network:
ethernets:
ens32:--changed to ens18
addresses:
- x.x.x.112/27
gateway4: x.x.x.126
nameservers:
addresses:
- 1.1.1.1
- 8.8.8.8
search:
- domain.ca

I rebooted the network, but when i did ifconfig -a there were no addresses at all.

I am not at proficient in Linux so any help would be so welcome
 
i found my own answer.

For some reason the formatting is different on proxmox vm vs a vmware vm...i realize this makes little sense.

I changed the following in the file:

nameservers:
addresses:
- 1.1.1.1
- 8.8.8.8

to

nameservers:
addresses: [1.1.1.1, 8.8.8.8]

When changing netplan, you can use sudo netplan try, and it help you out ..

Learning as i go.
 

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!