5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

EC2 Ubuntu 14.04がStatus 1/2のまま起動しなくなる

Last updated at Posted at 2014-11-20

詳しい原因は不明なのですがUbuntu14.04でStop/Start後にステータスが1/2のまま戻らなくなる事象が発生したのでメモ

現象

CloudFormationを利用してUbuntu14.04を起動する際にStatus 1/2のままになりSSHログインが出来ない

作成時のSyslog

[    6.428130] xenbus_probe_frontend: Waiting for devices to initialise: 25s...20s...15s...10s...5s...0s...

[   36.332082] 235s...230s...225s...220s...[   52.932134] random: nonblocking pool is initialized

215s...210s...205s...200s...195s...190s...185s...180s...175s...170s...165s...160s...155s...150s...145s...140s...135s...130s...125s...120s...115s...110s...105s...

Stop/Start時のSyslog

cloud-init-nonet[284.14]: waiting 120 seconds for network device
cloud-init-nonet[404.15]: gave up waiting for a network device.
Cloud-init v. 0.7.5 running 'init' at Thu, 20 Nov 2014 04:24:16 +0000. Up 404.30 seconds.
ci-info: +++++++++++++++++++++++Net device info++++++++++++++++++++++++
ci-info: +--------+-------+-----------+-----------+-------------------+
ci-info: | Device |   Up  |  Address  |    Mask   |     Hw-Address    |
ci-info: +--------+-------+-----------+-----------+-------------------+
ci-info: |   lo   |  True | 127.0.0.1 | 255.0.0.0 |         .         |
ci-info: |  eth0  | False |     .     |     .     | 00:00:00:00:00:00 |
ci-info: +--------+-------+-----------+-----------+-------------------+
ci-info: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Route info failed!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

原因

cloud-initのバグらしい
ネットワークの有効化が出来ていない?

回避策

発生した場合はAMI化し、別インスタンスとして立てることが可能

/etc/network/interfaces へ以下を追記

auto eth0
iface eth0 inet dhcp

以下をコメントアウト

# source /etc/network/interfaces.d/*.cfg

設定後に再度Stop/Startを実行する

※Syslogを追記

5
4
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?