Shape Shifting Code: The Many Faces of Your Host Operating System

Cheryl Abram
7 min readFeb 9, 2024

In the digital world, your host Operating System (OS) is akin to the many-faced god. It’s a shapeshifter, a chameleon that can transform its function with the fluidity of a seasoned actor. It is the core persona that takes on a multitude of roles, from the logical guardian of your digital experiences to the mysterious logical force behind the scenes. But to understand its capacity to change, let’s quickly revisit what it means for something to be “logical”.

The Nature of Logical Things

As a newby in cybersecurity, I struggled for months to understand what logical meant in terms of computing and applications. The definitions I read didn’t help. I had to go on my own journey of discovery to find out what “logical” actually means (other than, not physical).

If you know me at all, you know that I found out.

Anything logical is very simply “written instructions”, however they’re written instructions documented in a nitty-gritty or minutely detailed kind of way.

In computing, logical means the instructions are meticulously detailed providing step-by-step directions that are clear and specific enough for a computer’s operating system (OS) to understand and execute.

For example, here are everyday instructions on how to make a peanut butter and jelly sandwich.

  1. Take two slices of bread out of the bread bag.
  2. Spread peanut butter on one slice of bread using a knife.
  3. Spread jelly on the other slice of bread.
  4. Put the two slices of bread together so that the peanut butter and jelly are on the inside.
  5. Cut the sandwich in half, if desired, and enjoy.

We can follow these directions easily but your host OS would have a digital aneurysm trying to interpret these instructions. It would become wholly unable to do anything with instructions like this, because they’re not logical.

Now here are the logical instructions on how to make that same sandwich.

23-Step Sandwich making proces

The essence of anything logical in computing means “written instructions,” but with a level of precision that leaves no room for ambiguity. Software is meticulously detailed logical instructions, providing step-by-step directions that are clear and specific.

What is Your Host Operating System?

Your host operating system (OS) is the primary set of instructions that interpret the logical instructions provided by applications. It’s a collection of software that manages the hardware resources necessary to make the peanut butter and jelly sandwich.

It’s the first level of software running on the hardware, providing a foundation for all other software to operate.

When an application asks the OS to perform a task, like opening a file, that request is packaged in specific, detailed operations that the OS can translate into actions by the computer’s hardware. The OS knows exactly which system calls to make, which pieces of hardware to engage, and in what order to fulfill the request.

The Many Faces of Your Host OS:

Instructions, whether they are for humans or computers, are like guidelines, blueprints or scripts. They describe what should be done, but on their own, they don’t have the power to act.

Instructions need an agent to interpret and execute them.

Consider a stop sign at a street corner. The word “STOP” is a logical instruction: “Stop here before proceeding.” However, the word (or the sign) doesn’t physically stop the car; it must rely on the driver to interpret the instruction (to recognize the sign and understand its meaning) and then act on it (by applying the brakes).

If the driver is the car’s operating system, the sign is like an application giving the instruction. The car’s brakes are the hardware that responds to the driver’s decision to stop.

Consider an actress. The script is a collection of logical instructions that mean nothing until the actress, not just speaks the lines, but embodies the part so you believe and experience her as one of the only people who survived the Titanic, or as one of the only surviving members of a space craft that was infiltrated by an Alien.

Your host OS is the primary application, akin to a leading actress. It is Angela Bassett, Alfre Woodard, Sanaa Lathan, Regina King or Viola Davis at the core, but ready to assume the role dictated by the script it’s handed.

For example, when you download a virtualization application like VirtualBox, on a host operating system, what we commonly refer to and experience as the “hypervisor” function is, in reality, the host OS carrying out a set of instructions from VirtualBox.

These instructions are meticulously designed to enable the host OS to extend its host role and simulate the environment and capabilities of a hypervisor, allowing for the creation and management of virtual machines.

When VirtualBox is installed and run, it instructs the host OS to:

  • Allocate system resources like memory, CPU time, and disk space to create virtual environments that mimic separate computers.
  • Ensure these virtual environments are isolated from each other and from the host system, maintaining stability and security.
  • Simulate virtual hardware for each VM, such as network interfaces, storage devices, and graphic adapters, based on the configurations specified by the user or the defaults set by VirtualBox.
  • Manage the lifecycle of VMs, including starting, pausing, stopping, and restarting them according to user commands or automated scripts.

In this setup, the host OS doesn’t change its fundamental nature or operations. Instead, it extends its capabilities to “act” as a hypervisor, orchestrating the virtualization process seamlessly, much like an actor taking on a new role without losing their identity.

The “hypervisor” we interact with through VirtualBox is, in reality, the host OS performing a specialized set of tasks based on the detailed instructions provided by the virtualization software.

Unlike other types of applications virtualized applications uniquely leverage the host operating system’s ability to extend its host functions.

Remember, instructions don’t DO anything, and software/applications are logical instructions that need an agent to carry our their instructions and make those instructions a reality.

Here are the other ways in which your host Operating System and its underlying hardware become that agent:

  1. Docker: The host OS becomes a Container Manager, overseeing the operation of containers that encapsulate applications and their environments, ensuring they’re isolated yet efficiently share the OS kernel.
  2. Kubernetes: The host OS transforms into an Orchestrator for Containers, managing the deployment, scaling, and operation of containerized applications across a cluster of machines, handling tasks like load balancing and self-healing.
  3. Hyper-V: In this scenario, the host OS acts as a Platform for Virtual Machines, creating and managing VMs with full virtualized hardware stacks, from CPUs to network adapters.
  4. Xen: With Xen, the host system becomes a Virtual Machine Monitor (VMM), running VMs with a high degree of isolation and control, allowing for multiple guest OSes to run simultaneously on the same physical hardware.
  5. LXC (Linux Containers): The host Linux OS becomes a Linux Container Host, leveraging kernel features to run multiple, isolated Linux systems (containers) on a single control host, each with its own filesystem, network, and process space.
  6. OpenStack: In environments where OpenStack is deployed, the host OS serves as the foundation of a Cloud Infrastructure, managing pools of compute, storage, and networking resources across a datacenter to provide flexible cloud services.
Benjamin Evan Ainsworth as Pinocchio

In each of these instances, the operating system extends its capabilities to fulfill the specific needs imposed by the virtualization software, effectively “becoming” the device, process, or environment necessary to make the imagined…real.

Conclusion:

Your host operating system, in its multifaceted glory, mirrors the complexity and adaptability of human roles. In the same way that we are our fundamental selves at our core, we take on a plethora of roles when instructed and compelled to.

As we navigate our devices, let’s spare a thought for the OS, the versatile force that keeps our digital worlds turning, seamlessly transitioning from one role to the next.

Call to Action:

Subscribe to my Medium blog https://ypifany.medium.com/ and to my YouTube Channel Person Centered Cyber https://www.youtube.com/personcenteredcyber

--

--