booting cloud image without initramfs broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
High
|
Unassigned | ||
cloud-init (Ubuntu) |
Expired
|
High
|
Unassigned | ||
Trusty |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Booting without a initramfs was broken by the cloud-init change for
bug 1353008 (http://
This affects arm guests where a bootloader is not used that would load
kernel and initramfs.
There are 2 workarounds:
a.) remove the offensive code
sudo mount-image-
sh -c 'f="$MOUNTPOINT
sed -e "/^start on/s/ and mounted .*//" -i.dist $f &&
diff -u $f.dist $f'
b.) register and boot with an initramfs
This is done by
i.) getting the initramfs out of the image:
sudo mount-image-
sh -c 'cp $MOUNTPOINT/
ii.) upload the initramfs to glance
glance image-create --name=
record the ramdisk id
iii.) register with --property ramdisk_
normally for "ami" style images on arm, the user had been
uploading with --property kernel_
now, you need to upload with:
glance image-create --name="$NAME" \
--public --container-format ami --disk-format ami \
c.) register 'kernel command line' to include 'rw'.
glance image-create .... --property kernel_
Related bugs:
* bug 1031065:cloud-init-nonet runs 'start networking' explicitly
* bug 643289: [mountall] idmapd does not starts to work after system reboot
* bug 1353008:[cloud-init] MAAS Provider: LXC did not get DHCP address, stuck in "pending"
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: cloud-init 0.7.5-0ubuntu1.2
ProcVersionSign
Uname: Linux 3.13.0-36-generic aarch64
ApportVersion: 2.14.1-0ubuntu3.4
Architecture: arm64
Date: Thu Jan 1 00:02:09 1970
Ec2AMI: ami-00000007
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.5GB
Ec2Kernel: aki-00000005
Ec2Ramdisk: ari-00000003
PackageArchitec
ProcEnviron:
TERM=screen
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile.
description: | updated |
tags: | added: hs-arm64 |
tags: | added: hs-moonshot |
tags: |
added: hs-moonshot-maas-juju removed: hs-moonshot |
tags: | added: hs-arm64-maas-juju |
Changed in cloud-init (Ubuntu Trusty): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in cloud-init: | |
assignee: | nobody → Roufique Hossain (roufique) |
Changed in cloud-init (Ubuntu): | |
assignee: | nobody → Roufique Hossain (roufique) |
Changed in cloud-init (Ubuntu Trusty): | |
assignee: | nobody → Roufique Hossain (roufique) |
Changed in cloud-init (Ubuntu Trusty): | |
assignee: | Roufique Hossain (roufique) → nobody |
Changed in cloud-init (Ubuntu): | |
assignee: | Roufique Hossain (roufique) → nobody |
Changed in cloud-init: | |
assignee: | Roufique Hossain (roufique) → nobody |
The offensive change was this in /etc/init/ cloud-init- local.conf
-start on mounted MOUNTPOINT=/ and mounted MOUNTPOINT=/run
+start on mounted MOUNTPOINT=/