[lxc-users] upgrading to lxd-daily and migrating to unprivileged containers

Stéphane Graber stgraber at ubuntu.com
Sat Mar 21 02:22:18 UTC 2015


Right,

The lxc-* commands are to control LXC itself. They are in no way
deprecated and we still expect a lot of people to use them.

LXD is a new take on the whole container experience. It still uses LXC
behind the scene through liblxc, however the lxc-* commands will not let
you interact with LXD containers (at least not easily). Instead we have
that unique "lxc" command which interacts with local or remote LXD
daemons.

So yes, "lxc-attach -n first" is now "lxc exec first /bin/bash" and all
interactions with that container should be done with sub-commands of
"lxc".

On Fri, Mar 20, 2015 at 06:52:06PM -0700, Joe McDonald wrote:
> Great.  upgrade went smoothly. thank you.
> 
> question:  are the /usr/bin/lxc-* commands now deprecated in favor of
> plain "lxc"?
> how to do lxc-attach ?
> using the lxc-attach no longer works:
> $ lxc-attach -n first
> lxc-attach: attach.c: lxc_attach: 632 failed to get the init pid
> get errors for other lxc-* commands as well.
> 
> is "lxc exec first  /bin/bash"  the new lxc-attach?
> 
> thanks in advance,
> -joe
> 
> 
> On Thu, Mar 19, 2015 at 7:08 PM, Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
> > Quoting Joe McDonald (ideafilter at gmail.com):
> >> I am on lxc 1.07 and would like to upgrade to lxd and latest lxc.
> >> I have: ppa:ubuntu-lxc/stable  as a repository.
> >> Do I need to remove that and remove lxc before following the
> >
> > No, you can keep it.
> >
> >> instructions on https://github.com/lxc/lxd/blob/master/README.md ?
> >> Or will following those instructions simply upgrade my system?
> >>
> >> Also, my lxc containers are currently privileged containers
> >> on /var/lib/lxc  is there any way to "migrate" them to
> >> unprivileged containers?
> >
> > Hm, shouldn't be hard to write a script to do that.  The rootfs will
> > need to be moved, and the configuration moved into the database.
> >
> >> Finally I want to thank Bostjan Skufca and Fajar Nugraha for helping
> >> me with lxc bridging question, solution worked great.
> >> _______________________________________________
> >> lxc-users mailing list
> >> lxc-users at lists.linuxcontainers.org
> >> http://lists.linuxcontainers.org/listinfo/lxc-users
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150320/f00fa3ff/attachment.sig>


More information about the lxc-users mailing list