History log of /lxc/templates/lxc-ubuntu-cloud.in
Revision Date Author Comments Expand
26312a76c8a1078976a5b391ece4f650a6f1b000 17-Nov-2016 Po-Hsu Lin <po-hsu.lin@canonical.com>

templates: add squashfs support to lxc-ubuntu-cloud.in Add squashfs format file support for lxc-ubuntu-cloud.in Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>

3a5495cf2f6c1806f5a91d699448b15b510f146e 17-Nov-2016 Po-Hsu Lin <po-hsu.lin@canonical.com>

Update Ubuntu release name: add zesty and remove wily Add zesty to KNOWN_RELEASES Remove EOL wily from KNOWN_RELEASES Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>

01c05c821093dc854def146d4bab62885d8eb664 26-Oct-2016 Po-Hsu Lin <po-hsu.lin@canonical.com>

tests: fix image download for s390x Make release selection more flexible. Update the KNOWN_RELEAES list, add yakkety and remove vivid. Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>

f8b2a49ce0bb7ce66d0c902b5976a48e49f754b2 12-Nov-2015 Stéphane Graber <stgraber@ubuntu.com>

ubuntu-cloud: Various fixes - Update list of supported releases - Make the fallback release trusty - Don't specify the compression algorithm (use auto-detection) so that people passing tarballs to the template don't see regressions. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

4a3110456051b5b018a73507ba4f56adb81006ee 06-Nov-2015 Stéphane Graber <stgraber@ubuntu.com>

lxc-ubuntu-cloud: Never exit 0 when no container is created Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

27c278a76931bfc4660caa85d1942ca91c86e0bf 29-Oct-2015 Stéphane Graber <stgraber@ubuntu.com>

ubuntu-cloud: Replace .tar.gz by .tar.xz and don't auto-generate missing tarballs Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

5d066f24e65ef482cdfee241ce65e060d1652efc 21-Jul-2015 Scott Moser <smoser@ubuntu.com>

lxc-ubuntu-cloud: support passing vendor-data vendor-data is supported in Ubuntu cloud images in trusty and later. This allows the user to pass it in on create or clone. Signed-off-by: Scott Moser <smoser@ubuntu.com>

6dc6f80bfd7cb169948f2ef9a95dcf6d2edee853 11-Jun-2015 Kevin Carter <kevin.carter@rackspace.com>

Added container-cache option to templates This change adds in the container-cache option within the mainline default lxc templates. The pupose here is to allow a template to pull from a location that may not be `@LOCALSTATEDIR@/cache/lxc` Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>

ae0aeadeaab6b2535952dd699efdf889c4f7464f 30-Jan-2015 Stéphane Graber <stgraber@ubuntu.com>

ubuntu: Drop lucid support and refresh releaess list Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

f24a52d5f588ff4e4575046903fb9498c376d833 29-Jan-2015 Stéphane Graber <stgraber@ubuntu.com>

Use consistent /proc, /sys and /sys/fs/cgroup (v2) - Implements mixed mode for /sys where it's mounted read-only but with /sys/devices/virtual/net/ writable. - Sets lxc.mount.auto to "cgroup:mixed proc:mixed sys:mixed" for all templates. - Drop any template-specific mount for /proc, /sys or /sys/fs/cgroup. - Get rid of the fstab file by default, using lxc.mount.entry instead. - Set sys:mixed as the default for "sys". sys:mixed is slightly more permissive than sys:ro so this shouldn't be a problem. The read-only bind mount of /sys on top of itself is there so that mountall and other init systems don't attempt to remount /sys read-write. v2 changes: - Fix the mount list, don't specify a source for the remount. - Update the documentation. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

68c36a303f402b52f94067d3da7b168e274001a7 08-Aug-2014 Serge Hallyn <serge.hallyn@ubuntu.com>

ubuntu templates: don't check for $rootfs/run/shm /dev/shm must be turned from a directory into a symlink to /run/shm. The templates do this only if they find -d $rootfs/run/shm. Since /run will be a tmpfs, checking for it in the rootfs is silly. It also is currently broken as ubuntu cloud images have an empty /run. (this should fix https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1353734) Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

207bf0e475f1dc6e9a2dac2cee3a209b56427855 06-Feb-2014 Stéphane Graber <stgraber@ubuntu.com>

templates: Make sure usual locations are in PATH Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

2133f58c66ab7627a4159fafbb75106c556b014d 04-Feb-2014 Serge Hallyn <serge.hallyn@ubuntu.com>

create: pass --mapped-gid to templates next to --mapped-uid That way templates can fix group ownership alongside uid ownership. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

d46417540f61ffb93344f3d338340588bf118ab4 31-Jan-2014 Stéphane Graber <stgraber@ubuntu.com>

lxc-ubuntu-cloud: Update arm* cross | host arch | arm64 | armhf | armel | ------------------------------------- | arm64 | X | X | X | | armhf | | X | X | | armel | | X | X | ------------------------------------- Although optional, all existing arm64 silicon supports 32bit instructions. armel/armhf is only a userspace change, so they are interchangeable. However armhf isn't supported on all armel platforms (e.g. armv6) but all those we support have hard-float. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

ad3f14ab58ec91ff11d0dcf2cbd5f47f02935344 31-Jan-2014 Scott Moser <smoser@ubuntu.com>

lxc-ubuntu-cloud: various small changes * ppc64el images now exist and generally function. Instead of failing because an arch isnt in the list, let that check happen by ability to download something. * update the hard coded ubuntu releases to know about 'trusty' and drop no longer supported releases (consistent with behavior when distro-info is available) * shorten the logic that decides if host and container arch are supported. * support skipping "invalid arch" check entirely via undocumented variable UCTEMPLATE_SKIP_ARCH_CHECK. * update usage to reference 'tryreleased' as the default 'stream' * give good error message if user tries 'released' and there is no released version available. Signed-off-by: Scott Moser <smoser@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

8a3c76b24d73ab8a830035e7a66400e2cc2e8334 29-Jan-2014 Stéphane Graber <stgraber@ubuntu.com>

ubuntu/ubuntu-cloud: Add support for arm64 and ppc64el Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

4b954f12173c382f7104a0e9464fa66dd3cade35 21-Jan-2014 Dimitri John Ledkov <dimitri.ledkov@canonical.com>

lxc-ubuntu-cloud: Default to trying released channel This adds a fallback to the daily channel if an image couldn't be found in the released one. Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

9cde0368fbbfa61add2e73f8ccd5b00c1b0f2e08 16-Jan-2014 Stéphane Graber <stgraber@ubuntu.com>

lxc-ubuntu-cloud: Fix cache and lock location Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

17abf2784de1047fb2904ff130ee5efe4ea7b598 14-Jan-2014 Elan Ruusamäe <glen@delfi.ee>

handle simple bashisms: - [[ ]] -> [ ] - == -> = - source -> . - redirect of fd 200 is error in mksh, use fd 9 - &> /dev/null -> > /dev/null 2>&1 - useless function keyword - echo -e -> printf still left bash shebang which did not validate with checkbashism, mostly due 'type' being reported as bashism Signed-Off-By: Elan Ruusamäe <glen@delfi.ee> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

3f5f5d99b0ea1c204699b13d4a0caf4d9e745449 13-Jan-2014 Stéphane Graber <stgraber@ubuntu.com>

Fix some typos Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

2b142295afb3cac8c4be2a233e51ab5a9f7e10e9 12-Dec-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

typo fix: create $rootfs/dev/pts Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

f2a95ee1bf54c949614a68bf152ea9a8e1d3a172 06-Dec-2013 Stéphane Graber <stgraber@ubuntu.com>

Move some common Ubuntu config This introduces a new /usr/share/lxc/config directory containing common configuration snippets. The two Ubuntu templates are then simplified to just include the relevant entries avoiding a whole lot of hardcoded cgroup, capabilities and mount points configuration. An extra comment is also added at the top of all generated configuration files telling the user to look at lxc.conf(5) for more information. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

0a3673e80732ab83d807d406fb2fd3c3b7f54ad3 02-Dec-2013 Stéphane Graber <stgraber@ubuntu.com>

Some tweak on previous change (timezone) This adds the same code to the Debian-based templates (Ubuntu and Ubuntu Cloud) and also avoids a needless fork. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

5ff337745e4a705293b056ab58f6ea7a92cabbc8 02-Dec-2013 Stéphane Graber <stgraber@ubuntu.com>

ubuntu: Actually attempt to remove /dev/shm Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

c01c25fcdd1e0cacad8075bcfcef4c8e8d4b8cb6 25-Nov-2013 Stéphane Graber <stgraber@ubuntu.com>

Tab/spaces consistency for templates Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

853d58fdf5af0960b7b6edc9dea0fadddb8535f1 25-Nov-2013 Elan Ruusamäe <glen@delfi.ee>

use awk, instead of 'grep | awk' Signed-off-by: Elan Ruusamäe <glen@delfi.ee> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

d59feca3be9651b0ec38a57a8614cc2f3c51ca45 12-Nov-2013 Stéphane Graber <stgraber@ubuntu.com>

lxc-ubuntu*: Mark non-essential mounts optional Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

57d116ab501594c2e50ab45f1cf2fae48c5eab09 06-Nov-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

create_run_template: tell the template what caller's uid was mapped to conf.c/conf.h: have replaced bool hostid_is_mapped() with int mapped_hostid() which returns the mapped uid for the caller's uid on the host, or -1 if none create_run_template: pass caller's uid into template. lxc-ubuntu-cloud: 1. accept --mapped-uid argument 2. don't write to devices cgroup - not allowed. 3. if running in userns, use $HOME/.cache 4. chown cached files to the uid to which our caller was mapped 5. ignore /dev when extracting rootfs in a userns Changelog: nov 5: remove debugging INFO line. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

9c3bc32c5789b76b8c42b75d7625377d61e052c1 08-Oct-2013 Stéphane Graber <stgraber@ubuntu.com>

lxc-ubuntu-cloud: Cope with spaces in paths Reported-by: Scott Moser <smoser@ubuntu.com> Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

494fd6b390ecae077375e171230ce78d6784dd43 08-Oct-2013 Scott Moser <smoser@ubuntu.com>

lxc-ubuntu-cloud: pass --numeric-owner and -p to untar Just following up here, Serge raised the question of whether or not the other two invocations of 'tar' in this script need '--numeric-owner'. They probably should have it, although its of little concern because the 'build_root_tgz' path is only taken if there is no '-root.tar.gz' file for download, and the only supported ubuntu release without the -root.tar.gz download is 10.04 at this point. Anyway, below is a more complete diff, also including a fix as '--numeric-uid' is not a valid option to tar. The name is '--numeric-owner'. Signed-off-by: Scott Moser <smoser@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

4d7bcfb638c5c4907e8539aa09d41bb1de08a097 16-Sep-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

ubuntu templates: make pstore fstab entry optional Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

84bce17b8bc5c69e8dce03457a5f7859e0b46940 13-Sep-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

add pstore to container fstab Otherwise user-namespace containers will hang on mountall. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

acbb59f50d5196facde837ea377f70e98ce1e6f8 30-Aug-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

fix license text in ubuntu and ubuntu-cloud templates Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

840295ff4cf11da0938a19f99fef8a1525de8106 30-Aug-2013 Stéphane Graber <stgraber@ubuntu.com>

Fix some typos Signed-off-by: Dmitry Shachnev <mitya57@ubuntu.com> Reported-by: Vincent Ladeuil Acked-by: Stéphane Graber <stgraber@ubuntu.com>

65d8ae9c4a66f5ca85289c02dc06d63261c84619 09-Aug-2013 Scott Moser <smoser@ubuntu.com>

add a clone hook for ubuntu-cloud images This allows ability to now specify '--userdata' arguments to 'create' or to 'clone'. So now, the following means very fast start of instances with different user-data. $ sudo lxc-create -t ubuntu-cloud -n precise -- \ -r precise --arch amd64 $ sudo lxc-clone -B overlayfs -o precise -s -n ephem1 \ --userdata="my.userdata1" $ sudo lxc-clone -B overlayfs -o precise -s -n ephem2 \ --userdata="my.userdata2" Also present here is * an improvement to the static list of Ubuntu releases. It uses ubuntu-distro-info if available degrades back to a static list on failure. * moving of the replacement variables to the top of the create template This is just to make it more obvious what is being replaced and put them in a single location. Signed-off-by: Scott Moser <smoser@ubuntu.com>

d273b8abfa24040c8ef0dd73eb1d30ef8dcbec54 07-Aug-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

ubuntu-cloud: remove debugging echo Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

1aad9e44d65e7c20dabc4c99f57bcf532db66c68 22-Jul-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

ubuntu-cloud: changes to support unprivileged use don't try to lock if using a specified tarball The lock/subsys/lxc-ubuntu-cloud lock is to protect the tarballs managed under /var/cache/lxc/cloud-$release. Don't lock if we've been handed a tarball. fake device creation Unprivileged users can't create devices, so bind mount null, tty, urandom and console from the host. Changelog: Jul 22: as Stéphane points out, remove a left-over debug line Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

6f259716e75552cf46ee5125bdbd21e34456d0c0 17-Jul-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

ubuntu templates: add some kernel filesystems to container fstab The debugfs, fusectl, and securityfs may not be mounted inside a non-init userns. But mountall hangs waiting for them to be mounted. So just pre-mount them using $lxcpath/$name/fstab as bind mounts, which will prevent mountall from trying to mount them. If the kernel doesn't provide them, then the bind mount failure will be ignored, and mountall in the container will proceed without the mount since it is 'optional'. But without these bind mounts, starting a container inside a user namespace hangs. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

868a70afead6cc48a4c883126ea3ef01b6ec57e0 12-Jul-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

ubuntu-cloud template: accept --rootfs argument Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

9313e1e628160ca64f9e7fcec6500056c9a0725f 10-Jul-2013 Stéphane Graber <stgraber@ubuntu.com>

ubuntu: Tweak layout of the config Just add an extra white line to both templates. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

1897e3bcd36af9f3fe6d3649910a9adb93e5e988 26-May-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

Move container creation fully into the api 1. implement bdev->create: python and lua: send NULL for bdevtype and bdevspecs. They'll want to be updated to pass those in in a way that makes sense, but I can't think about that right now. 2. templates: pass --rootfs If the container is backed by a device which must be mounted (i.e. lvm) then pass the actual rootfs mount destination to the templates. Note that the lxc.rootfs can be a mounted block device. The template should actually be installing the rootfs under the path where the lxc.rootfs is *mounted*. Still, some people like to run templates by hand and assume purely directory backed containers, so continue to support that use case (i.e. if no --rootfs is listed). Make sure the templates don't re-write lxc.rootfs if it is already in the config. (Most were already checking for that) 3. Replace lxc-create script with lxc_create.c program. Changelog: May 24: when creating a container, create $lxcpath/$name/partial, and flock it. When done, close that file and unlink it. In lxc_container_new() and lxcapi_start(), check for this file. If it is locked, create is ongoing. If it exists but is not locked, create() was killed - remove the container. May 24: dont disk-lock during lxcapi_create. The partial lock is sufficient. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

b85ab7989ebe24629267048cb269b278eeb50490 02-May-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

ubuntu templates: add comments to show how to enable nesting Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

eee3ba81c88e64b8a732694fc4843a39d5bde491 01-May-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

templates: deny writes to host's clock (v2) Don't allow write to /dev/rtc0, and remove sys_time. Thanks, Christoph. v2: drop sys_time, sys_module, mac_admin and mac_override in all templates. Reported-by: Christoph Mitasch <cmitasch@thomas-krenn.com> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

a2abaa9ec60a8967611e8c8905698bd01bde5861 22-Apr-2013 Stéphane Graber <stgraber@ubuntu.com>

ubuntu: Various fixes - Drop disabled entries from allowed devices list - Improve generated config layout a bit - Drop redundant uname call - Re-generate the SSH host keys on container creation Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

ed4616b1cfbc84dd01caa8546d813e8c5d482921 21-Apr-2013 Christian Bühler <christian@cbuehler.de>

Use "uname -m" instead of "arch" According to "arch"'s manpage, it's identical to "uname -m". Some distros ship uname but don't ship arch, however all distros ship uname, therefore it makes sense to use "uname -m" whenever possible. Signed-off-by: Christian Bühler <christian@cbuehler.de> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

8a63c0a9d9089e6365e5a696455476febed39d6a 27-Mar-2013 Stéphane Graber <stgraber@ubuntu.com>

ubuntu: Tweak architecture support This updates the various checks to match the grid below: == lxc-ubuntu support per architecture == amd64: amd64, i386, armel, armhf, powerpc i386: i386, armel, armhf, powerpc armel: armel, armhf armhf: armhf, armel powerpc: powerpc == lxc-ubuntu-cloud support per architecture == amd64: amd64, i386 i386: i386 armel: armel, armhf armhf: armhf, armel Note that most of the foreign architectures on x86 are supported through the use of qemu-user-static. This one however isn't yet support for cloud images (I'll send a patch for 1.0). Also, qemu-user-static is technically able to emulate amd64 on i386 but qemu-debootstrap doesn't appear to know that and fails quite miserably. We may also want to add a test for amd64 kernel but i386 userspace, which is a valid combination that allows running an amd64 container on an i386 host without requiring emulation, but that's for another patch. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

daaf41b36790bdaae855048e56ed090b17a77c97 19-Feb-2013 Stéphane Graber <stgraber@ubuntu.com>

lxc-ubuntu{-cloud}: Config layout tweaking This commit tweaks the layout of the config file for the Ubuntu templates. With this, we now get a clear network config group, then a path related group, then a bunch of random config options and the end of the config is apparmor, capabilities and cgroups. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com>

fe253caa8b98854445aaf6ee253545ee1f13beb1 06-Dec-2012 Stéphane Graber <stgraber@ubuntu.com>

templates: Consistent use of locking Move to per-template lock (except for oracle that's per-container). Also ensure that the path used for the lock is relative to LOCALSTATEDIR. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

eba7df9ee0a1963984ef212e7ddfc0e0835af288 06-Dec-2012 Stéphane Graber <stgraber@ubuntu.com>

templates: Make generated config consistent This updates all the templates and the configuration files to consistently use "key = value" everywhere. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

e29bf450cafa2ce2564aeb0b64d2014c17228407 05-Dec-2012 Dwight Engen <dwight.engen@oracle.com>

Use LXCPATH and LOCALSTATEDIR instead of hardcoded /var Signed-off-by: Dwight Engen <dwight.engen@oracle.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

6b1a07ba086d16cfa822caadf95eab62b70889cd 26-Nov-2012 Serge Hallyn <serge.hallyn@canonical.com>

fix lxc-ubuntu-cloud option parsing bugs The -u shortopt matching --userdata was not specified, and when -L is found shift should have been by 1 not 2 since there is no optarg. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

1881820ae4ff9004beef1bf7f04553580840441d 12-Nov-2012 Serge Hallyn <serge.halyn@ubuntu.com>

lxc-create: Make location of container rootfs configurable Make 'dir' an explicit backing store type, which accepts '--dir rootfs' as an option to specify a custom location for the container rootfs. Also update lxc-destroy to now remove the rootfs separately, as removing @LXCPATH@/$name may not hit it. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

192df6e2eb8ebb1a337c7ba025c57852d38e0d26 25-Oct-2012 Serge Hallyn <serge.hallyn@ubuntu.com>

revert devtmpfs in ubuntu templates devtmpfs is shared between host and containers, and it messes up lucid containers too. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

c215bff6dfc298bdd6150e11b8c0f76c9d013a0a 25-Oct-2012 Stéphane Graber <stgraber@ubuntu.com>

lxc-ubuntu{-cloud}: Fix missing "fi" in new devtmpfs code The "if" statement to add devtmpfs was missing a matching "fi" causing parsing error when using the template. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

bf7d76cf3ae180820c0a29e0bfbaa97c20ce6a3d 25-Oct-2012 Serge Hallyn <serge.hallyn@ubuntu.com>

templates: mount devtmpfs in ubuntu containers That way /dev/disk/ exists, and update-grub can succeed. Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1060404

b942e67226af9e690bd63ac440b99aedb6becbb3 25-Oct-2012 Scott Moser <smoser@ubuntu.com>

ubuntu-cloud template cleanups Fix for quantal images which do not have the user 'ubuntu' present. Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1045955 Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

10f73bfa4aece7707f48379b82e5858d1909d98f 25-Oct-2012 Serge Hallyn <serge.hallyn@ubuntu.com>

lxc-ubuntu-cloud: get full pathname to userdata file When passing '--userdata somefile' to the ubuntu-cloud template, a user may pass a relative pathname. The template uses the filename after changing current directory, so store the full pathname for the userdata file instead of a potential relative pathname. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

f02ce27d4b1a9d01b88d0ffaf626e5bafa671bf0 25-Oct-2012 Stéphane Graber <stgraber@ubuntu.com>

Add lxc.aa_profile example to all templates LXC has optional apparmor support, default profile is lxc-container-default. This change adds a commented "lxc.aa_profile = default" line to all templates, uncommenting this will bypass apparmor for the container. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

e470cba076535e4e9732173e0e314e473165478c 25-Oct-2012 Stéphane Graber <stgraber@ubuntu.com>

Use lxc_putold as the pivot_root put dir in the ubuntu templates By default we use mnt, but that means that lxc fstab entries do not work when placed under the container's /mnt/. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

542939c31bb73bab55f2fd71243b98f5559597d1 25-Oct-2012 Stéphane Graber <stgraber@ubuntu.com>

Fix lxc-ubuntu and lxc-ubuntu-cloud to properly deal with /dev/shm. Now that initscripts in Debian and Ubuntu has been updated to no longer do silly things with /dev/shm and /run/shm on installation/update, the check needs updating to detect any remaining broken case and fix it. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

f1ccde27c038e7fb7e538913505248b36ddd9e65 25-Oct-2012 Serge Hallyn <serge.halyn@ubuntu.com>

ubuntu and debian templates: Clean up cache if cache build is interrupted Otherwise the next lxc-create may rsync a bad cache. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

add1d11833394aaa3a3497c2fdf548e5b14c80d4 31-Jul-2012 Serge Hallyn <serge.hallyn@ubuntu.com>

templates: don't fail on busy flock Just wait until the lock is available. That is a nicer behavior for concurrent lxc-creates. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>

f34ff296835b2afa4b80018651d902448c99ac75 31-Jul-2012 Serge Hallyn <serge.hallyn@ubuntu.com>

ubuntu templates: remove maverick as it is end-of-life Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>

b8bced69a80a8be95fdbbb6b4e9ad7fa85464b1e 31-Jul-2012 Serge Hallyn <serge.hallyn@ubuntu.com>

Update Ubuntu templates for quantal Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>

edd3810e951ec1b20af761955e6100ab75a66534 31-Jul-2012 Serge Hallyn <serge.hallyn@ubuntu.com>

lxc-ubuntu-cloud: extract the right filenames from tarball Signed-off-by: Ben Howard <ben.howard@canonical.com> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>

42ff5f0f8767114d060f5031055038a1a1c3759a 31-Jul-2012 Serge Hallyn <serge.hallyn@ubuntu.com>

lxc-ubuntu*: in precise, make /dev/shm a symbolic link to /run/shm This would be done (though done wrongly) by mounted-dev.conf, but that doesn't run because we don't mount /dev. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>

5a0f7f3c707bf713f35382eaabc54395d2b36b12 31-Jul-2012 Serge Hallyn <serge.hallyn@ubuntu.com>

Description: Fix handling of user-data in ubuntu-cloud template Signed-off-by: Ben Howard <ben.howard@canonical.com> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>

b08ee0ce9a17b575a35eb90778bcf166ecf3634a 31-Jul-2012 Serge Hallyn <serge.hallyn@ubuntu.com>

Minor lxc config template layout fix Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>

80a881b232b8955b85b360d4def99e6e680ff61b 31-Jul-2012 Serge Hallyn <serge.hallyn@ubuntu.com>

templates: use relative paths when creating containers At the same time, allow lxc.mount.entry to specify an absolute target path relative to /var/lib/lxc/CN/rootfs, even if rootfs is a blockdev. Otherwise all such entries are ignored for blockdev-backed containers. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>

427bffc7a10c9015dc78ef52543f7b8cb9414359 31-Jul-2012 Serge Hallyn <serge.hallyn@ubuntu.com>

lxc-ubuntu-cloud.in: re-enable use of daily cloud images There are two types of cloud images - released and daily ones. We were always using daily ones, instead of using released by default with an option for daily. Fix that. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>

3eecde703e9ac3af788ac17357f378d6b6d7c658 31-Jul-2012 Serge Hallyn <serge.hallyn@ubuntu.com>

Description: fix handling of non-precise cloud image format Also includes a fix for broken check for $debug Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>

52c8f624b5f9ef665f33a7aa80e0aa18b91daa4a 19-Mar-2012 Serge Hallyn <serge.hallyn@canonical.com>

ubuntu templates cleanups 1. fix inconsistent use of '--auth-key' (not --auth_key) which broke their usage 2. add --debug option to lxc-ubuntu (which does set -x to show what broke) (idea from Idea from lifeless and benji) 3. fix incorrect assumption about group with -b option. User's default group may not be the same as username. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>

4759162d078d86628956cae4846c6efccf548e67 26-Feb-2012 Serge Hallyn <serge@hallyn.com>

update ubuntu templates to provide macaddr and more Add a macaddr if precisely one veth is specified but no hwaddr. Allow specifying ssh authkeys. In cloud template, copy locales by default and allow a tarball to be specified. Signed-off-by: Ben Howard <ben.howard@canonical.com> Signed-off-by: Serge Hallyn <serge@hallyn.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>

d1458ac8d13880f83fa2d1e08623b97c50d311d7 26-Feb-2012 Serge Hallyn <serge.hallyn@canonical.com>

Add ubuntu-cloud template This is a new template to create containers based on the ubuntu cloud images, rather than using debootstrap. Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>