Cannot connect to vm instance by ssh key or cloud-init behind http network proxy

asked 2018-02-12 11:32:26 -0600

Hi! I am facing this problem for quite some time. I created a ubuntu cloud instance using .img file. I created a public-private rsa pair for authentication for the instance.I created a floating IP for logging into the system. However, the instance takes quite some time during boot, and fails to establish a network connection. Hence I am unable to access the server-vm instance. During boot, it is unable to raise network interfaces as shown.. it also fails to call http://169.254.169.254/2009-04-04/meta-data/instance-id as sound in the log. Could somebody please help me with this?

`[[0;32m OK [0m] Started Initial cloud-init job (pre-networking). [[0;32m OK [0m] Reached target Network (Pre). Starting Raise network interfaces... [[0;32m OK [0m] Started ifup for ens3. [ [0;31m[0;1;31m[0m[0;31m* [0m] A start job is running for Raise ne... interfaces (1min 1s / 5min 59s)[K[ [0;31m[0;1;31m[0m[0;31m* [0m] A start job is running for Raise ne... interfaces (1min 1s / 5min 59s)[K[[0;31m[0;1;31m[0m[0;31m*................................................................. See 'systemctl status networking.service' for details. Starting Initial cloud-init job (metadata service crawler)... [[0;32m OK [0m] Reached target Network.

edit retag flag offensive close merge delete

Comments

The instance doesn't seem to get an IP address. Usually, it gets it via DHCP, and the DHCP server is configured in the subnet to which it is connected. As a first approach, I would check if the DHCP server is configured and works, and if the instance can reach it.

Bernd Bausch gravatar imageBernd Bausch ( 2018-02-12 17:29:29 -0600 )edit