a home/$me bind-mounted template would rock

Bug #800482 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
Low
Serge Hallyn

Bug Description

13:13 < lifeless> hallyn: I want to do LP development in a lxc container rather than a VM
13:13 < lifeless> hallyn: so in the container I want to install rabbitmq, postgresql, apache etc
13:13 < lifeless> hallyn: and I want my source code sitting in my /home/robertc
13:14 < lifeless> hallyn: where I can edit it as normal, commit with my bzr & gpg keys etc
13:14 < lifeless> hallyn: then run the tests within the lxc container, using the lxc postgresql, rabbit apache
13:15 < lifeless> hallyn: so inside the lxc it needs to write to me homedir without messing stuff up, but I don't care about service accounts
13:15 < hallyn> lifeless: would you want the whole /home bind-mounted? just ~/src or something?
13:16 < lifeless> hallyn: whole home/$me would be easiest to reason about I think
13:16 < hallyn> 'without messing stuff up' meaning not changing owner uids, right?
13:16 < lifeless> yeah
13:16 < hallyn> ok
13:16 < hallyn> lifeless: i think i'd use that myself :) would that be higher prio for you than cgroup-bin?
13:16 < lifeless> definitely

Related branches

Changed in lxc (Ubuntu):
status: New → Confirmed
Changed in lxc (Ubuntu):
status: Confirmed → In Progress
importance: Undecided → Low
assignee: nobody → Serge Hallyn (serge-hallyn)
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Patches are here:

http://sourceforge.net/mailarchive/forum.php?thread_name=20110622140928.GA12177%40mail.hallyn.com&forum_name=lxc-users

http://sourceforge.net/mailarchive/forum.php?thread_name=20110622181733.GA17756%40mail.hallyn.com&forum_name=lxc-users

With these, I can do:

lxc-create -t ubuntu -n n1 -f /etc/lxc.conf -- -r natty -b serge

to create a natty-based container called n1, with user serge with my password existing in the container and /home/serge bind-mounted in.

I'll post new packages with this support to ppa:serge-hallyn/lxc-natty later today.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc - 0.7.4.2-0.3ubuntu1

---------------
lxc (0.7.4.2-0.3ubuntu1) oneiric; urgency=low

  * Sync upstream 0.7.4.2
  * Add diff up to git head.
    - Fix interaction with cgroups-bin (LP: #784093)
    - Fix arch support to create i386 containers on amd64 (LP: #798476)
    - Support a bind-mounted $HOME with template (LP: #800482)
  * add debootstrap to Recommends (LP: #803745)
  * debian/patchs updates:
    - refresh 0002-disable-debian-checkroot-script.patch
    - drop:
      * 0004-add-ubuntu-mirrors.patch
      * 0005-add-netbase-to-templates.patch
      * 0006-fix-template-syntax-error.patch
      * 0007-natty-template-install-lxcguest.patch
      * 0010-templates-use-dpkg.patch
    - renamed and updated:
      * 0008-add-arm-to-supported-archs.patch to
        0004-add-arm-to-supported-archs.patch
      * 0009-templates-dont-use-devpts-in-fstab to
        0005-dont-use-devpts-in-fstab
      * 0011-templates-allow-fuse.patch to
        0006-templates-allow-fuse.patch
  * remove unused debian/lxc-start.sh
  * include autoreconf.mk to force Makefile.in to be rebuilt
  * Remaining changes over debian:
    - add lxcguest package
    - debian/control
      * keep docbook-utils in Build-Depends
    - lxc.default: add commented example MIRROR
 -- Serge Hallyn <email address hidden> Thu, 07 Jul 2011 13:53:52 -0500

Changed in lxc (Ubuntu):
status: In Progress → Fix Released
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.