Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to start Raise network interfaces [closed]

I am setting a Ubuntu's VM (16.04.1 LTS) and I get an error when I try to connect from WinSCP in my windows to the VMs. The error is: developmentHost does not exist.

The network/interfaces file is this one:

enter image description here

If I execute a ifconfig command I get this info:

enter image description here

On the other side, the Virtualbox configuration for both network adapters are:

Adapter 1

In the above picture I included the port redirection, because I want to connect with the VM withou editing the windows hosts file.

Adapter 2

Furthermore I get this error about interfaces when I reboot.

enter image description here

like image 664
mrc Avatar asked May 13 '26 20:05

mrc


2 Answers

I don't know how to fix the failure but i can show you a shortcut to deal with this problem temporarily...

1-use this command to find out which interfaces are available in your system.
# ip link
example: lo , enp0s8

2-add following lines in /etc/network/interfaces

auto enp0s8
iface enp0s8 inet dhcp

3-restart your VM.
and it's done.

like image 182
Amir sina Haftlangi Avatar answered May 16 '26 18:05

Amir sina Haftlangi


In Ubuntu 16.04 there perhaps is no ethX interface anymore. This version now comes with the so called Predictable Network Interface Names, where the name of the interfaces can be determined by: which tries to find fixed slot topology information in certain firmware interfaces and uses them to assign fixed names to interfaces which incorporate their physical location on the mainboard. (refer to: freedesktop.org). Hence you have to find out the correct interface names by using the command ip a which prints something like:

1: lo: ... 2: ensXX: ... n: ...

before you can configure your /etc/network/interfaces

See also: askubuntu.com

like image 20
My-Name-Is Avatar answered May 16 '26 18:05

My-Name-Is



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!