<div dir="ltr">Sorry, my mistake. I meant "lxc-console". And I just rechecked, apparently there's the equivalent "lxc console" command as well.<div><br></div><div>Ignore my comment about "lxc-attach" earlier. You should be able to use lxd rootfs for lxc as long as:</div><div>- you have the correct uid mapping (it's simpler if you just use privileged container. Otherwise just setup uid map on lxc config file manually)</div><div>- you have a suitable lxc config file (the easiest way is probably to create a new lxc container, then replace the original rootfs with the one from rsync/lxd-p2c)</div><div><br></div><div>-- </div><div>Fajar<br><div><div><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 9, 2018 at 10:59 AM, Saint Michael <span dir="ltr"><<a href="mailto:venefax@gmail.com" target="_blank">venefax@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">LXD does not support lxc-attach?</div><div class="gmail_default" style="font-size:small">I thought that LXD was a superset of LXC, that added on top of it.</div><div class="gmail_default" style="font-size:small">Maybe somebody care to explain how LXC and LXD compare.</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Wed, Aug 8, 2018 at 11:21 PM Fajar A. Nugraha <<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">I've converted (manually) some lxc containers to lxd and back in the past. IIRC the biggest difference was that lxd does not need to output anything to console, while lxc needs it (e.g. for lxc-attach). Depending on what container distro and version you use, it might not matter (e.g. it should "just work" for newer ubuntu), and you can use the same container rootfs for both.</div><div class="gmail_quote"><br></div><div class="gmail_quote">If you use anything else and simple 'rsync --numeric-ids)' doesn't work, take a look at the customizations done by lxc-template to find out what else need to be adjusted, e.g. <a href="https://github.com/lxc/lxc-templates/blob/master/templates/lxc-debian.in#L67" target="_blank">https://github.com/lxc/<wbr>lxc-templates/blob/master/<wbr>templates/lxc-debian.in#L67</a> for old debian system that still use sysvinit.</div><div class="gmail_quote"><br></div><div class="gmail_quote">-- </div><div class="gmail_quote">Fajar</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Thu, Aug 9, 2018 at 9:18 AM, Saint Michael <span dir="ltr"><<a href="mailto:venefax@gmail.com" target="_blank">venefax@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-size:small">The question is how can I use that for plan LXC. </div><div style="font-size:small">I can install a box with LXD, bring the computer in, but then I want a plain LXC container.</div><div style="font-size:small">Is it doable?</div></div><div class="m_-2362301215959998208m_7312036048101029157gmail-HOEnZb"><div class="m_-2362301215959998208m_7312036048101029157gmail-h5"><br><div class="gmail_quote"><div dir="ltr">On Wed, Aug 8, 2018 at 7:17 PM David Favor <<a href="mailto:david@davidfavor.com" target="_blank">david@davidfavor.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">  wrote:<br>
> Has anybody invented a procedure, a script, etc., to convert a running <br>
> machine to a LXC container? I was thinking to create a container of the <br>
> same OS, and then use rsync, excluding /proc /tmp/ /sys etc.  Any ideas?<br>
<br>
Use the fabulous lxd-p2c script.<br>
______________________________<wbr>_________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.<wbr>linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.<wbr>org/listinfo/lxc-users</a></blockquote></div>
</div></div><br>______________________________<wbr>_________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.<wbr>linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.<wbr>org/listinfo/lxc-users</a><br></blockquote></div><br></div></div>
______________________________<wbr>_________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.<wbr>linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.<wbr>org/listinfo/lxc-users</a></blockquote></div>
</div></div><br>______________________________<wbr>_________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.<wbr>linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.<wbr>org/listinfo/lxc-users</a><br></blockquote></div><br></div>