<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><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">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/lxc-templates/blob/master/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_7312036048101029157gmail-HOEnZb"><div class="m_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>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></blockquote></div>
</div></div><br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div></div>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></blockquote></div>