[lxc-users] CirrOS on OpenStack using LXD as a hypervisor

Serge E. Hallyn serge at hallyn.com
Tue Jul 26 13:36:21 UTC 2016


Well, cirros does not in fact have /bin/bash :)  Try /bin/sh.

Quoting Muneeb Ahmad (muneeb.gandapur at gmail.com):
> Thank you for your reply. I tried the way you suggested. ran a lxc cirros
> container and replaced lxd container's rootfs with lxc container's.
> Restarted it and when I try to enter it with 'lxc exec <name> /bin/bash',
> nothing happens.
> In lxc.log, i get an error. Any ideas?
> "ERROR    lxc_attach - attach.c:lxc_attach_run_command:1226 - No such file
> or directory - failed to exec '/bin/bash'"
> 
> On Tue, Jul 19, 2016 at 5:38 PM, Serge E. Hallyn <serge at hallyn.com> wrote:
> 
> > Quoting Muneeb Ahmad (muneeb.gandapur at gmail.com):
> > > Hi guys,
> > >
> > > First of all I greatly appreciate the work you guys have been doing.
> > > My question is about CirrOS. I have deployed OpenStack with nova-lxd
> > > through devstack. Is there any way I can run CirrOS on it as far as I
> > read,
> > > it's not available for LXD yet. Any help?
> >
> > Odd, that surprises me, I thought images.linuxcontainers.org had that.
> > But,
> > you create a lxc cirros container, create a dummy lxd container, copy the
> > lxc rootfs over into it, then (once verified everything is working) publish
> > that lxd container as a new image that you can launch containers from.
> > It's
> > a hastle, but only the first time.
> > _______________________________________________
> > 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



More information about the lxc-users mailing list