Running more than one Linux distro using images and overlay, like containers
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Running more than one Linux distro using images and overlay, like containers
I got this idea the other day and I hope someone else might have also had it.
Basically, with Docker, containers, snapcraft, flatpak, and such we have prebuilt images that are used with overlay fs to mount the filesystem. I was wondering if this same technique can be applied to the host Linux system itself?
Imagine for example, on boot, you are greeted with a menu much like how grub allows you to select which partition to boot from. But instead you can select some pre-downloaded images of default systems of whatever distros you fancy.
Some benefits I see would be:
1. Much faster install, allowing to download prebuilt images instead of installing from source image on media.
2. Much easier to keep the OS up to date, instead of having to run major upgrades.
3. Quickly reset to original image (and take snapshots)
4. No wasted space by having to use different partitions.
So like I mentioned, I feel this might not be a unique idea, and I hope someone has some resources or thoughts on this. I think it could be the natural progression as this sort of tech was brought to devops via docker, then desktop apps with snapcraft and flatpak.
So what you're suggesting is something akin to Type 1 virtualization. Why not just use that, since pre-downloaded images would have to reside on the host drive anyway?
So, snapcraft and flatpak are application "containers" for lack of a better word, not OS containers. Docker is an OS and app "container". What you are describing is OS virtualization.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.