LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 08-05-2022, 07:50 PM   #1
sev.k
LQ Newbie
 
Registered: Aug 2022
Posts: 2

Rep: Reputation: 0
Using an external SSD as a "containerized" Linux OS?


I've done a search for this, but I get too much cruft to sort through, maybe someone here can help or point to available books/manuals/online resources.

My basic premise is to us an existing distro, maybe maintained as a minimal, semi-immutable OS, use this to build a non-bootable Linux install on an external SSD, then SSH (or similar tool) into it to install and run whatever software i want in that OS as a de-facto containerized OS. The idea is not to use docker or other container like software that someone else controls. I would like to keep the option of later adding a bootloader to this SSD and be able to boot into the Linux distro that I've built. I plan partition the SSD with this idea in mind, in advance.

Is such a thing even possible or would I need to have an actual separate computer running this as a server?

I'm not a noob to computing, fairly new to Linux, but I know my around the terminal and software development.
 
Old 08-06-2022, 09:27 AM   #2
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
Doing update/upgrades would be hairy (your system isn't the running one), which means doing chroot and running binaries that aren't compatible like run time libs and paths.

I think you probably just want to run virtualization like virtualbox. You could install what you want and there are tutorials on converting to real disk but most people have little need for that. You can run it on your host or dedicate a box for that and just ssh/X into it, or run virtual desktop to them.
 
Old 08-06-2022, 12:29 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,256

Rep: Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338
Well, Docker's just a friendly layer on top of LXC. This should get you started:

https://ubuntu.com/lxd

Last edited by dugan; 08-06-2022 at 12:47 PM.
 
Old 08-06-2022, 08:04 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,692
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
@sev.k: I sense in your post a bit of confusion as to what "containerization," "virtualization" and maybe even "[dual]-booting" actually is. (Also, how "docker" relates to "containerization in general.") I would simply like to make a few comments here with the intent of cleaning up that confusion. I'm not going to attempt to address your original post point-by-point. Instead, I would like to clarify these terms.

Dual-Booting refers to the ability to choose which operating system will (completely ...) control your machine when you power it on. You are first presented with some kind of menu. Once you make your selection, control is passed to the target OS's boot-loader as though the intermediate step had never existed. Once in control, the chosen OS has unfettered access to the entire hardware as it actually exists.

Virtual Machines use a layer of software which is able to conceal the entire nature of the so-called "host machine" from its "guest." Instead, it presents the "guest" with a completely functional illusion of "real hardware." So thorough, in fact, that a completely different operating system from the "host" can be run in the "guest."

Containerization works from the reality that "virtual machines are often overkill." It works by rose-colored glasses. The container occupant's software – which must be of the same OS-type as the host – in fact does run directly on the host. But, it cannot "see" the host. It "sees" only an illusion that is artfully created by the host: filesystem structure and content, network architecture, user-ids, and "am I root?" All of this is an illusion. Yet, the container's processes actually are "ordinary host-system processes," being directly(!) run by the host.

Docker® is, shall we say, "a packaging of" the container concept, intended to make commonly-encountered [cloud ...] use-cases even easier to handle. The system provides a large library of pre-fabricated containerized components – "an Apache web server, a MySQL database" – and strives to make each of them "a black box." The idea is to reduce the number of things that you actually have to do in order to get a particular job, when "that particular job" is in fact "more similar to what 'everybody else' is doing" than different. It's a great idea that works great ... when it works. But, my personal experience has been that: "well, maybe there's a little bit too much of a good thing." When your particular needs evolve even slightly, it can become a problem.

But there are other players in this space, with different objectives, such as Kubernetes®, which tries to focus on "management at scale." And, public services such as RackSpace.® All of these are technologically based on the "containerization" model and its derivatives.

Last edited by sundialsvcs; 08-06-2022 at 08:05 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL 7.6 & OpenSUSE 15: Using TRIM/fstrim - How to extend the life of SSD and prevent SSD from eventually slowing down anthony000 Linux - Newbie 6 06-03-2019 06:26 PM
LXer: Google Plans to Add Support for Containerized Linux Apps to Chromebooks LXer Syndicated Linux News 0 02-26-2018 10:18 AM
LXer: How Service Discovery Works in Containerized Applications Using Docker Swarm Mode LXer Syndicated Linux News 0 03-02-2017 11:42 PM
LXer: Flatpak: A Containerized Approach to Developing Linux Applications LXer Syndicated Linux News 0 08-16-2016 08:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration