<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000"><div>Hi Serge,</div><div><br data-mce-bogus="1"></div><div>Thanks for your input. <br>I still don't understand how I can manage the equivalent to create a container using LXD instant of lxc-create. <br><br>My goal is just to create a container with a permanent existence .</div><div>To me, lxc launch is only for volatile containers, a bit more like a docker container </div><div><br data-mce-bogus="1"></div><div>I'll try to understand more how I should work with LXD instant of only LXC . I understand all the capabilities of LXD but I misunderstand how I can just do what i am doing right now : <br></div><div><br data-mce-bogus="1"></div><div>- Create a dedicated système user (unpriv container)<br></div><div>- Apply a specific lxc.config file </div><div>- Create a new rootfs with LVM or BTRFS</div><div>- Create a new container like this </div><div><span style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;" data-mce-style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"> lxc-create -n test -t ubuntu -B lvm --lvname test --vgname vg_node1 --fstype ext4 --fssize 1GB </span></div><div><span style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;" data-mce-style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"><br data-mce-bogus="1"></span></div><div><span style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;" data-mce-style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;">So the specific user will have his own container .</span></div><div><br></div><div>User A will <span style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;" data-mce-style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;">have his own space for containers</span><br>User B will have his own space for containers</div><div><br></div><div>They should do "lxc-ls -f" or "lxc list" and see only their own containers </div><div><br data-mce-bogus="1"></div><div>Maybe this is not a typical use case ?</div><div><br data-mce-bogus="1"></div><div data-marker="__SIG_PRE__"><div><span style="color: rgb(51, 51, 51); font-family: times new roman,new york,times,serif;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif;">Cordialement,</span><span style="color: rgb(51, 51, 51); font-family: times new roman,new york,times,serif; font-weight: bold;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;"><span style="color: rgb(51, 51, 51); font-family: times new roman,new york,times,serif; font-weight: bold;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;"><br></span></span></div><div><br></div><div><span style="color: rgb(51, 51, 51); font-family: times new roman,new york,times,serif; font-weight: bold;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;">Benoît </span></div></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>De: </b>"Serge Hallyn" <serge.hallyn@ubuntu.com><br><b>À: </b>"lxc-users" <lxc-users@lists.linuxcontainers.org><br><b>Envoyé: </b>Lundi 29 Février 2016 13:41:45<br><b>Objet: </b>Re: [lxc-users] lxc / lxd I'm lost somewhere<br></div><div><br></div><div data-marker="__QUOTED_TEXT__">See https://github.com/lxc/lxd for how to set up lxd using lvm.<br><br>Quoting Benoit GEORGELIN - Association Web4all (benoit.georgelin@web4all.fr):<br>> It's a bit confusing. Thanks for the explanation . <br>> <br>> I thought I was using LXD but since the beginning I am just using LXC . <br>> <br>> Do you know what will be the command to create a new container using LXD witch will be the same as doing this : <br>> <br>> lxc-create -n test -t ubuntu -B lvm --lvname test --vgname vg_node1 --fstype ext4 --fssize 1GB <br>> This is how I use to deploy new containers.. so obviously, it's not LXD aware. <br>> <br>> Thanks <br>> <br>> Cordialement, <br>> Benoit <br>> <br>> <br>> De: "Serge Hallyn" <serge.hallyn@ubuntu.com> <br>> À: "lxc-users" <lxc-users@lists.linuxcontainers.org> <br>> Envoyé: Vendredi 26 Février 2016 19:42:08 <br>> Objet: Re: [lxc-users] lxc / lxd I'm lost somewhere <br>> <br>> Quoting Benoit GEORGELIN - Association Web4all (benoit.georgelin@web4all.fr): <br>> > Hi, <br>> > <br>> > I have a (stupid?) question, I think I have a misunderstanding of something around LXD and LXC <br>> > <br>> > Here is what I don't understand <br>> > <br>> > $ lxc list <br>> > +--------------+---------+------+------+------------+-----------+ <br>> > | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | <br>> > +--------------+---------+------+------+------------+-----------+ <br>> > | test1-debian | STOPPED | | | PERSISTENT | 0 | <br>> > +--------------+---------+------+------+------------+-----------+ <br>> > <br>> > $ lxc-ls -f <br>> > NAME STATE IPV4 IPV6 GROUPS AUTOSTART <br>> > ----------------------------------------------------------- <br>> > Chaul RUNNING 1xx.xxx.xxx.xxx - - NO <br>> > laravel RUNNING 1xx.xxx.xxx.xxx - - NO <br>> > <br>> > <br>> > What are the difference between both commands ? <br>> > Why LXD REST API only knows about the content of lxc list but not about lxc-ls ? <br>> > <br>> > Thanks for you help <br>> <br>> They are a completely distinct set of containers. For one, the lxc-ls <br>> ones are in /var/lib/lxc while lxc list ones are in /var/lib/lxd/containers. <br>> For another, the configuration for lxd containers is in the lxd database, <br>> not in configuration files, while the lxc ones are in /var/lib/lxc/$container/config. <br>> <br>> -serge <br>> _______________________________________________ <br>> lxc-users mailing list <br>> lxc-users@lists.linuxcontainers.org <br>> http://lists.linuxcontainers.org/listinfo/lxc-users <br><br>> _______________________________________________<br>> lxc-users mailing list<br>> lxc-users@lists.linuxcontainers.org<br>> http://lists.linuxcontainers.org/listinfo/lxc-users<br><br>_______________________________________________<br>lxc-users mailing list<br>lxc-users@lists.linuxcontainers.org<br>http://lists.linuxcontainers.org/listinfo/lxc-users<br></div></div></body></html>