[lxc-users] Convert virtual machine to LXC container

Stéphane Graber stgraber at ubuntu.com
Wed Aug 8 23:16:19 UTC 2018


On Wed, Aug 08, 2018 at 07:04:31PM -0400, Saint Michael wrote:
> Has anybody invented a procedure, a script, etc., to convert a running
> machine to a LXC container? I was thinking to create a container of the
> same OS, and then use rsync, excluding /proc /tmp/ /sys etc.  Any ideas?

We have that for LXD, it's lxd-p2c and does pretty much exactly what you
describe but uses the LXD migration API as the rsync target effectively
(so rsync over custom websocket over https).


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20180808/87e79555/attachment.sig>


More information about the lxc-users mailing list