You have been subscribed to a public bug: I am used to launching a Canonical Ubuntu Amazon machine image, customizing with a build script, then creating my own AMI for quick launching. This process is leading to corrupt custom AMIs that don't boot correctly for 15.10 images. I wondered if this was bug 1510345 [1], but this is supposed to be fixed in the images I'm using. Steps to reproduce: I use this image [2] as an example in us-east-1 Amazon EC2 region: ami-1c552a76 099720109477/ubuntu/images/hvm/ubuntu-wily-15.10-amd64-server-20151106 however a prior Canonical 15.10 image yields the same result. 1. In us-east-1, run: ec2run ami-1c552a76 -t m3.medium -f shutdown.sh --instance-initiated-shutdown-behavior stop In this example, shutdown.sh just has two lines: #! /bin/sh shutdown -h now An actual builder script installs packages, sets up users, etc. I've been using a process like this since Ubuntu 10.10. 2. Wait for the instance to stop. 3. Create the custom image. ec2cim instance_id -n name -d description 4. Wait for the custom ami to become available. 5. Boot the new custom ami. ec2run ami -t t2.micro Console output is attached, but here are the last few lines: [[32m OK [0m] Started Wait for all "auto" /etc/ne...be up for network-online.target.
[[32m OK [0m] Reached target Network is Online. ifup-wait-all-auto.service Welcome to emergency mode! After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to try again to boot into default mode. root@ip-172-31-55-220:~# [ 329.642713] reboot: Power down 6. Start the instance that was used to create the ami, it seems to boot correctly. Troubleshooting steps: 1. I wanted to detach the root device and mount it on another VM to look at the startup logs, but I get a mount error. 2. I tried this, again, a tried and true recipe, with 15.04 images and it works. There is something different about the 15.10 images. Notes: [1] https://bugs.launchpad.net/ubuntu-on-ec2/+bug/1510345 [2] http://cloud-images.ubuntu.com/releases/wily/release/ ** Affects: cloud-init (Ubuntu) Importance: Undecided Status: New -- Ubuntu 15.10 Amazon EC2 stock images seem to lead to corrupt custom images https://bugs.launchpad.net/bugs/1514234 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
