10

I have installed Ubuntu Server 14.04.1 LTS in VirtualBox. I would like to get the I.P address, and according to https://askubuntu.com/a/430855/192526, you do so with

ip addr show

It says

inet 127.0.0.1/8 scope host

So it would seem like I have an issue with my network adapter. However, I don't really know what settings am I supposed to be using:

enter image description here

What do I do to be able to get my actual I.P address from Ubuntu Server running in VirtualBox for Mac OSX?

I ask this because eventually I will want to setup an NTP server, and I imagine that a remote computer will need the I.P address of my Ubuntu Server.


By request, here is what ifconfig says:

enter image description here


Another curious thing:

When booting, there is a message saying

Waiting for network configuration...

that lasts for quite a long while until it apparently gives up saying

Booting system without full network configuration

Saturn
  • 223
  • 2
  • 3
  • 7

2 Answers2

6

You don't have an IP address because you have not configured one. To do so you need to edit /etc/network/interfaces. If you want one to be obtained automatically, add eth0 to the auto line in the file, and add a new line for it that reads iface eth0 inet dhcp. You can then reboot or run sudo ifup -a to bring up the interface and obtain the IP address. See man interfaces for more information.

psusi
  • 38,031
3

I used "About This Computer..." menu item to get computer's name and later ping command to get its IP. I hope this will be helpful for you. enter image description here

QtRoS
  • 130