Comment 22 for bug 1031065

Revision history for this message
Scott Moser (smoser) wrote :

Verified. See below.

$ sudo apt-get update && sudo apt-get install -y lxc
$ lsb_release -c
Codename: precise
$ dpkg-query --show lxc
lxc 0.7.5-3ubuntu66

$ sudo lxc-clone -o source-precise-amd64 -n patched
$ cat /var/lib/lxc/source-precise-amd64/rootfs/etc/cloud/build.info
build_name: server
serial: 20130218

$ sudo lxc-clone -o source-precise-amd64 -n patched
$ url="https://launchpad.net/ubuntu/+source/cloud-init/0.6.3-0ubuntu1.5/+build/4312778/+files/cloud-init_0.6.3-0ubuntu1.5_all.deb"
$ deb="cloud-init_0.6.3-0ubuntu1.5_all.deb"

$ wget -O "$deb" "$url"
$ sudo cp $deb "/var/lib/lxc/patched/rootfs/tmp"
$ sudo LANG=C chroot "/var/lib/lxc/patched/rootfs" dpkg -i "/tmp/$deb"
$ sudo lxc-start -n patched -- /sbin/init --verbose

Verify can log in as ubuntu/ubuntu.