Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ubuntu instance in Amazon WS EC2: How to upgrade Ubuntu to the next version, so it will work after restating it? [closed]

Background:
Some time ago I have an instance on Amazon Web Services EC2, loaded with Ubuntu version 10.x. As soon as version 11 came out, I decided to upgrade it. I did, and everything seemed fine. I even restarted Ubuntu itself (just the OS itself, not the instance), and it worked again. But when I stopped and started the instance itself, Ubuntu would not work again ever.

Reason:
I imagine the reason: Ubuntu must have had some kind of "interface software" (so to say) to communicate itself with the virtualization software outside. For example, when we restart the whole instance and it gets a new IP address, there must be a way for the virtualization software to communicate with Ubuntu and tell it what is the new IP address so Ubuntu will boot knowing it. So I guess that when we start our instance using a preloaded well known AMI, that AMI contains an Ubuntu installation that already include that interface software inside. So I guess that when I upgraded Ubuntu from 10.x to 11, that software inside was lost.

Question:
Is there a way to know how to install again that component/module/package (or whatever the name is) just after I upgraded the instance, so it will work again when I restart the whole instance? I don't want to be forced to create a new Ubuntu instance from scratch, from a new AMI, if I want to upgrade. I would hate to install all my software again.

like image 625
David Mitman Avatar asked Nov 05 '22 02:11

David Mitman


1 Answers

I don't think the Amazon Images have anything like that, I would rather expect that some change did prevent some service from starting in the updated Ubuntu and thus caused the instance to become unavailable. I had such problems with the sshd in the past, which rendered the instance unavailable like you describe.

In the Amazon AWS Console you can look at the boot-log of the instance. This might give you some information about why the instance did not start up any more.

Amazon AWS Console - System Log

like image 115
centic Avatar answered Nov 06 '22 15:11

centic