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.
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 lxc/source- precise- amd64/rootfs/ etc/cloud/ build.info
$ cat /var/lib/
build_name: server
serial: 20130218
$ sudo lxc-clone -o source- precise- amd64 -n patched /launchpad. net/ubuntu/ +source/ cloud-init/ 0.6.3-0ubuntu1. 5/+build/ 4312778/ +files/ cloud-init_ 0.6.3-0ubuntu1. 5_all.deb" init_0. 6.3-0ubuntu1. 5_all.deb"
$ url="https:/
$ deb="cloud-
$ wget -O "$deb" "$url" lxc/patched/ rootfs/ tmp" lxc/patched/ rootfs" dpkg -i "/tmp/$deb"
$ sudo cp $deb "/var/lib/
$ sudo LANG=C chroot "/var/lib/
$ sudo lxc-start -n patched -- /sbin/init --verbose
Verify can log in as ubuntu/ubuntu.