Precise Cloud images lack bare dev tree for LXC

Bug #1071216 reported by Ben Howard
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu on EC2
Fix Released
Medium
Unassigned

Bug Description

The cloud images for precise lack a bare device tree for boot within LXC.

Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

The cause is that the precise images were not being built within a precise chroot via live-build. The other images are built in within a distro chroot (i.e. live-build debootstraps an Oneiric chroot to build the Oneiric image within that Oneiric chroot).

Fix has been uploaded and confirmed. New 12.04.1 daily image is being published now and will be promoted to new released image once testing is complete.

Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

FWIW, I am wondering if this is a potential bug in LXC too. If LXC requires certain devices to exist withn the container, shouldn't the container create the device nodes if missing? On a modern Linux system, the actual disk image itself does not need any device nodes to boot, as the device nodes are populated at boot time.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

I don't think we can call it a bug in lxc startup - (at that point we'd have to call it a bug in upstart too). We can call it a bug in the ubuntu-cloud lxc template, and require it to create the needed devices.

To look at it another way, it's not ok to require lxc to guess all the device nodes which init in all distributions might need, and create them. However the container creation templates exist exactly to tailor a container rootfs to be suitable for the distribution's init, so requiring lxc-ubuntu-cloud to create the /dev nodes is reasonable.

However I can envision plenty of other cases where the ubuntu cloud images not having /dev nodes would cause a problem - using a kernel without devtmpfs support (with qemu --kernel), chrooting in, etc.

Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

Marking as fixed released. This was fixed a long time ago.

Changed in ubuntu:
status: In Progress → Fix Released
Mathew Hodson (mhodson)
affects: ubuntu → ubuntu-on-ec2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.