Olá Dev's, queria saber se é possível transformar uma VM em LXC? Se não, como posso criar um LXC com um sistema operacional (por exemplo, Oracle Linux)? Então, se eu puder montá-lo, disponibilizá-lo para a comunidade?
Google Translate:
Hello Dev's, I wanted to know if it is possible to turn a VM into LXC? If not, how can I create an LXC with an operating system (e.g. Oracle Linux)? So if I can assemble it, make it available to the community?
It's not a PVE question per-se, yet it works perfectly fine. The easiest steps would be:
boot a live linux inside of your VM
tar the filesystem and store it "outside" of the VM and compress it with e.g. gzip
use this file as a template for creating an LX(C) container
This is the easiest method, not the best. I would then further optimize it by removing stuff like kernel, grub and everything else boot related (e.g. efi stuff).
I'm running a couple of Oracle Linux VMs in various setup (e.g. including oracle database) for quick tests.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.