[lxc-devel] Help building LXC from source

Tycho Andersen tycho.andersen at canonical.com
Sun Nov 2 16:50:23 UTC 2014


On Fri, Oct 31, 2014 at 03:47:56PM -0700, David Richardson wrote:
> Thanks Tycho!
> 
> Indeed that fixes it.  Just to check: is my workflow the best build/install
> method for doing development work on LXC source?

Yes, I think so. You can also do a local install via make, but that
comes with its own problems :)

Tycho

> ~Dave
> 
> On Fri, Oct 31, 2014 at 3:34 PM, Tycho Andersen <
> tycho.andersen at canonical.com> wrote:
> 
> > On Fri, Oct 31, 2014 at 03:31:38PM -0700, David Richardson wrote:
> > > Hey everyone,
> > >
> > > Apologies up front for a somewhat dumb question, but I'm looking to build
> > > and install LXC from source on Ubuntu-14.04 so that I can debug some
> > issues
> > > I'm seeing with automounting in a container.  My current strategy is to
> > > build from the source at *ppa:ubuntu-lxc/stable*, and it looks something
> > > like:
> > >
> > > # Get all the LXC dependencies built and installed:
> > > apt-get build-dep lxc
> > > apt-get install adduser bridge-utils dnsmasq-base iptables python3
> > apparmor
> > > sysv-rc libc6
> > >
> > > # Get LXC source from repo and build the packages
> > > apt-get source lxc
> > > cd lxc-1.0.6
> > > <MODIFY SOME CODE>
> > > debuild -us -uc -b
> > >
> > > # Install built packages:
> > > dpkg -i lxc_1.0.6-0ubuntu0.1~ubuntu14.04.1~ppa1_amd64.deb
> > > ...
> > >
> > > Unfortunately, no matter what order I chose to install the .deb
> > packages, I
> > > get complaints about unmet dependencies between my packages.
> >
> > You can install multiple packages at the same time, e.g.:
> >
> > sudo dpkg -i lxc_*.deb
> >
> > and dpkg should figure out what order to install them in.
> >
> > Tycho
> >
> > > What's the best procedure for building, installing, and debugging LXC on
> > a
> > > dev box?
> > >
> > > Thanks!
> > >
> > > ~Dave
> >
> > > _______________________________________________
> > > lxc-devel mailing list
> > > lxc-devel at lists.linuxcontainers.org
> > > http://lists.linuxcontainers.org/listinfo/lxc-devel
> >
> > _______________________________________________
> > lxc-devel mailing list
> > lxc-devel at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-devel
> >

> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel



More information about the lxc-devel mailing list