[lxc-users] LXD vivid container images and systemd?

Stéphane Graber stgraber at ubuntu.com
Tue May 12 14:30:35 UTC 2015


On Tue, May 12, 2015 at 02:15:07AM +0000, Serge Hallyn wrote:
> Quoting Mark Constable (markc at renta.net):
> > I seem to be reasonably comfortable with old school lxc (not the LXD lxc)
> > root containers with scripts to automatically set them up with nginx etc
> > but trying to do the same thing with LXD lxc is proving to be trickier.
> > Aside from not being able to autostart them, the ifupdown networking system
> > doesn't seem to want to start and in trying to work out why I thought maybe
> > I am missing a fundamental point... is it still too early to expect systemd
> > to be fully working in a vivid container?
> 
> Yup that's sadly a known bug right now.  I suppose the workaround would be
> to have a startup script do 'ifdown eth0; ifup eth0' after a few seconds...
> <sigh>

https://github.com/lxc/lxd/issues/581

> 
> > Another issue is that I can't seem to ssh in as root (using ssh-copy-id)
> > and trying to get some internal container logging I notice rsyslogd was
> > running and journalctl was empty so I am confused whether systemd is really
> > being used, and yet...
> > 
> > ~ file /sbin/init
> > /sbin/init: symbolic link to `/lib/systemd/systemd'
> > 
> > Or, how would I go about creating and setting up my own lxc (of LXD fame)
> > container image so I could at least include openssh-server, nano and git
> > by default... docs anywhere?
> 
> lxc remote add lxc images.linuxcontainers.org
> lxc start lxc:ubuntu/vivid/amd64 base
> lxc exec base bash
>  <type><hack><modify>
>  poweroff
> lxc image export base my-custom-container.img
> 
> > And what is the simplest way to refer to lxc, the original flavor, versus
> > the lxc command from the LXD suite to distinguish which is which?
> 
> Generally i'll talk about 'legacy lxc', but actually the new thing is
> mostly just 'lxd'.  lxc happens to be the client for it, but as it is a
> wrapper around the rest api for lxd, we usually talk about 'lxd'.

-- 
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/20150512/f2037800/attachment.sig>


More information about the lxc-users mailing list