由于无法连接 169.254.169.254,全新安装 Ubuntu 14.04 服务器启动缓慢

Jle*_*lee 4 server boot cloud-init software-installation 14.04

刚刚安装了 Ubuntu Server 14.04 并且没有可运行的 VM 实例。启动时间需要永恒,在加载过程中按 F1 这是我所看到的,持续的连接尝试和失败是无止境的,任何简单的修复都将不胜感激(注意已在日志提及中将 http 替换为 LINK 以启用此发布):-

Cloud-init v. 0.7.5 在 2014 年 5 月 6 日星期二 19:42:27 +0000 运行“init-local”。上升 359.24 秒。
Cloud-init v. 0.7.5 在 2014 年 5 月 6 日星期二 19:42:31 +0000 运行“init”。上升 363.43 秒。
ci-info: +++++++++++++++++++++++网络设备信息++++++++++++++++++++++
ci-info: +--------+-------+-----------+-----------+---- ---------------+
ci-info: | 设备 | 向上 | 地址 | 面具 | 硬件地址 |
ci-info: +--------+-------+-----------+-----------+---- ---------------+
ci-info: | 洛| 真| 127.0.0.1 | 255.0.0.0 | . |
ci-info: | em1 | 错误 | . | . | 9c:b6:54:02:0d:ab |
ci-info: +--------+-------+-----------+-----------+---- ---------------+
ci-info: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!路由信息失败!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!
2014-05-06 20:42:33,252 - url_helper.py[警告]:调用“LINK://169.254.169.254/2009-04-04/meta-data/instance-id”失败[0/120s]:请求错误 [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by: [Errno 101] Network is unreachable)]
2014-05-06 20:42:34,255 - url_helper.py[警告]:调用“LINK://169.254.169.254/2009-04-04/meta-data/instance-id”失败[1/120s]:请求错误 [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by: [Errno 101] Network is unreachable)]
2014-05-06 20:42:35,259 - url_helper.py[警告]:调用“LINK://169.254.169.254/2009-04-04/meta-data/instance-id”失败 [2/120s]:请求错误 [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by: [Errno 101] Network is unreachable)]

Mic*_*pat 5

您必须运行 Ubuntu 服务器的云版本。cloud-init正在尝试联系 169.254.169.254,这是一个本地链路 IP 地址,云提供商监听该地址以提供有关正在初始化的 VM 的元数据。

您可以cloud-init通过将datasources_list设置设置为来阻止查询任何远程服务器None

实际上,这意味着/etc/cloud/cloud.cfg.d/90_dpkg.cfg从以下位置更改文件:

# to update this file, run dpkg-reconfigure cloud-init
datasource_list: [ NoCloud, ConfigDrive, OpenNebula, Azure, AltCloud, OVF, MAAS, GCE, OpenStack, CloudSigma, Ec2, CloudStack, None ]
Run Code Online (Sandbox Code Playgroud)

到:

# to update this file, run dpkg-reconfigure cloud-init
datasource_list: [ None ]
Run Code Online (Sandbox Code Playgroud)

如果可能,您会想要运行dpkg-reconfigure cloud-init以进行更改。