<div dir="ltr">I am using LXD, so sorry about that confusion. In my case, I think an rsync or lsyncd will probably work best for converting the old openvz containers. Thanks for the response.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 12, 2016 at 12:56 PM, Sean McNamara <span dir="ltr"><<a href="mailto:smcnam@gmail.com" target="_blank">smcnam@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Firstly you will need to decide whether you want to use lxc, or lxd.<br>
There is no such thing as "lxd/lxc" as the two tools are completely<br>
separate, pretty different in behavior, and the interface for<br>
interacting with them is completely different.<br>
<br>
However, in the general case of any arbitrary Linux-based OS in an<br>
OpenVZ container, there's a fairly high chance that some random<br>
service or another will fail (for a multitude of reasons) if you try<br>
to boot its disk image under lxc or lxd; indeed, it may not even boot.<br>
<br>
It depends on what your container's OS is, though. An OpenVZ image of,<br>
say, Ubuntu 16.04, *might* be a better fit for direct copying into an<br>
lxc or lxd container, though you would still have to at least adjust<br>
things like networking, user and group IDs, and things like that.<br>
<br>
There is no general-purpose "command structure" that will work with<br>
*all* OpenVZ containers across *all* OpenVZ versions and allow<br>
successful, problem-free importing into any arbitrary version of lxc<br>
or lxd, though. You can try copying the raw files of the image into an<br>
lxd or lxc container you've created from scratch and then see if it<br>
boots, and fix it where it fails; or you can take the (IMO) easier<br>
path, and create a new container and then copy over the files you need<br>
via the host.<br>
<div><div class="h5"><br>
<br>
On Mon, Sep 12, 2016 at 1:33 PM, Steven Spencer <<a href="mailto:sspencerwire@gmail.com">sspencerwire@gmail.com</a>> wrote:<br>
> Greetings,<br>
><br>
> Is there a command structure that will allow for an import of an openvz<br>
> container into lxd/lxc or is the best method to use a new container and<br>
> rsync any content needed?<br>
><br>
> Thanks,<br>
> Steven G. Spencer<br>
><br>
</div></div>> ______________________________<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>
______________________________<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></blockquote></div><br></div>