[lxc-users] lxc / lxd I'm lost somewhere
Serge Hallyn
serge.hallyn at ubuntu.com
Mon Feb 29 18:41:45 UTC 2016
See https://github.com/lxc/lxd for how to set up lxd using lvm.
Quoting Benoit GEORGELIN - Association Web4all (benoit.georgelin at web4all.fr):
> It's a bit confusing. Thanks for the explanation .
>
> I thought I was using LXD but since the beginning I am just using LXC .
>
> Do you know what will be the command to create a new container using LXD witch will be the same as doing this :
>
> lxc-create -n test -t ubuntu -B lvm --lvname test --vgname vg_node1 --fstype ext4 --fssize 1GB
> This is how I use to deploy new containers.. so obviously, it's not LXD aware.
>
> Thanks
>
> Cordialement,
> Benoit
>
>
> De: "Serge Hallyn" <serge.hallyn at ubuntu.com>
> À: "lxc-users" <lxc-users at lists.linuxcontainers.org>
> Envoyé: Vendredi 26 Février 2016 19:42:08
> Objet: Re: [lxc-users] lxc / lxd I'm lost somewhere
>
> Quoting Benoit GEORGELIN - Association Web4all (benoit.georgelin at web4all.fr):
> > Hi,
> >
> > I have a (stupid?) question, I think I have a misunderstanding of something around LXD and LXC
> >
> > Here is what I don't understand
> >
> > $ lxc list
> > +--------------+---------+------+------+------------+-----------+
> > | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
> > +--------------+---------+------+------+------------+-----------+
> > | test1-debian | STOPPED | | | PERSISTENT | 0 |
> > +--------------+---------+------+------+------------+-----------+
> >
> > $ lxc-ls -f
> > NAME STATE IPV4 IPV6 GROUPS AUTOSTART
> > -----------------------------------------------------------
> > Chaul RUNNING 1xx.xxx.xxx.xxx - - NO
> > laravel RUNNING 1xx.xxx.xxx.xxx - - NO
> >
> >
> > What are the difference between both commands ?
> > Why LXD REST API only knows about the content of lxc list but not about lxc-ls ?
> >
> > Thanks for you help
>
> They are a completely distinct set of containers. For one, the lxc-ls
> ones are in /var/lib/lxc while lxc list ones are in /var/lib/lxd/containers.
> For another, the configuration for lxd containers is in the lxd database,
> not in configuration files, while the lxc ones are in /var/lib/lxc/$container/config.
>
> -serge
> _______________________________________________
> 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