So, my adventure started like this:
I had an OpenSUSE 13.1 VM, and I wanted to upgrade to 13.2, so one of the main differences between the 2 community amis (13.1 - `` and 13.2 -ami-3a6cc64d
) was that the 13.2 image uses HVM - instead of PV - virtualization type.
The first issue I came across was that my CloudFormation template was using a /dev/sda
device_name, under the BlockDeviceMappings, BUT apparently that's not the type of device_name an HVM type of image expects (see here for more info). This resulted in the EC2 instance not even going into a running
state.
Anyway, I was able to overcome that obstacle by assigning /dev/sda1
, as recommended, so my instance was finally able to start properly.
BUT - now on startup several of my services don't start, due to failed dependencies, which I've been able to track down to cloud-config not finishing correctly whatever AWS has told it to do:
If I run
$ systemctl
...
cloud-init-local.service loaded active exited Initial cloud-init job (pre-networking)
cloud-init.service loaded failed failed Initial cloud-init job (metadata service crawler)
...
Upon inspection of the logs (/var/log/syslog), I can see the following:
...
Failed to resize filesystem (cmd=('resize2fs', '/dev/hda1'))#012Traceback
...
but, i've not set this up myself, this is something that somehow AWS has decided to do on my image via cloud-config...
I have no idea why this happens, and I can't seem to find many relevant posts, so any ideas would be really welcome guys...! : )
Thanks in advance!!