vmware network interface not detected
I installed ubuntu server 14.04 LTS on a virtual machine (vmware, win host). The VM has internet access (given a port-id, adaptertype E1000E and a MAC). Sadly ubuntu was not able to detect the device automatically.
ifconfig -a
shows only the loop back interface but lspci prints the following Ethernet controller:
0b:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
How can create a proper eth0 interface?
The /etc/network/interfaces
file contains only a lo
interface so I tried to create a eth0. The VM-Host provided a the IP, net mask, gateway settings. So I added the following lines to my /etc/network/interfaces
:
auto eth0
iface eth0 inet static
address ....
gateway ....
netmask ....
Then I tried to force these settings by calling /etc/init.d/networking restart
but without success.
The devices uses the e1000e Kernel-Module. I already tried to remove and load it again, but I always get the error, that it's busy.
UPDATE: The network settings for the vm look like this:
So there is no network connection, but the device status is connected. I used Windows on the same VM before and there the internet connection worked out-of-the-box. How can access such a network connection with ubuntu?
- All commands in
var/log/boot.log
pass with status [OK] -
cat /var/log/syslog | grep -i eth
is empty -
dmesg | grep -i etc
is also empty
UPDATE2:
It seems like the e1000e interface support is not quite good, so I asked the vm-admin to change the interface type to vmxnet3. Now the ifconfig -a
returns two different interfaces (lo and a new ens192
).
dmesg | grep vmxnet3
Then I added the following lines to my /etc/network/interfaces
:
auto ens192
iface ens192 inet static
address x.x.x.x
netmask x.x.x.x
network x.x.x.x
broadcast x.x.x.x
dns-nameservers x.x.x.x
dns-search example.com
gateway x.x.x.x
... and restarted the service per /etc/init.d/networking restart
. But the interface is not connected:
ping google.com
and
ping 193.170.141.212
return "Destination Host unreachable"
Use e1000 on Ubuntu. Neither vmxnet3 or e1000e are fully supported or work well with NAT*
(*)at least for OP