Why containers use infrastructure better than one VM per application
A VM per application carries a guest operating system each time. Containers on OpenShift share the host instead, and an orchestrator handles the rest.
5 October 2026, 3 min read
- OpenShift
- Kubernetes
- Virtualization
- Platform engineering
A common way to run applications is to give each one its own virtual machine. It is simple to reason about, and it has a cost that is easy to overlook: every one of those machines carries a full operating system. This post explains where that cost comes from, what containers do differently, and what OpenShift adds on top.
What a VM per application costs
In a VM-centric setup, many virtual machines share physical hardware, with a hypervisor between them. Each VM runs its own guest operating system, including its own kernel. Before the application does any work, that guest uses memory and CPU of its own, and it needs patching and monitoring like any other server.
VMs are also usually sized for the peak. Capacity reserved for a busy hour sits idle the rest of the day, and it cannot easily be lent to the application next door.
What containers do differently
Containers share the host's kernel and its resources. The kernel keeps them apart with namespaces, which limit what a process can see, and cgroups, which limit how much it can use. There is no guest operating system per application, so more workloads fit on the same hardware, and a container starts in seconds because nothing has to boot.
What OpenShift adds
OpenShift is Red Hat's Kubernetes platform. It orchestrates containerized applications across shared infrastructure, and that brings several benefits at once.
Efficient scheduling
Each workload declares what it needs, and the scheduler places it where capacity exists:
resources:
requests:
cpu: 250m
memory: 256Mi
limits:
memory: 512Mi
The request is what the scheduler reserves, and the limit is the ceiling. Hardware is packed according to real requirements, not a VM sized for peak load.
Faster deployments
Starting a container is quicker than booting a virtual machine, so releases and rollbacks take less time.
Autoscaling
Workloads can scale with demand and release capacity when it drops, instead of holding it reserved all day.
Self-healing
The platform watches health checks and acts on them:
livenessProbe:
httpGet:
path: /healthz
port: 8080
readinessProbe:
httpGet:
path: /ready
port: 8080
A container that fails its liveness check is restarted. One that is not ready is kept out of traffic. Nobody has to log in at night to do either.
Persistent storage management
Storage is requested and attached through the platform with persistent volume claims, instead of being configured per VM. The application asks for what it needs and the platform provides it.
Centralized management
One control plane covers every workload, with one API, one access model and one place to apply policy. With VMs, each machine tends to become its own thing to manage.
Where VMs still make sense
A VM gives stronger isolation, because each one has its own kernel. Containers share a kernel, so a kernel-level flaw affects them all. OpenShift adds guardrails, for example by running containers as non-root by default, but the boundary is different from a VM's.
VMs also remain the right tool for workloads that cannot be containerized, that need a different operating system or kernel, or that are not worth the effort of moving. OpenShift Virtualization lets you run VMs on the same platform alongside containers, so this does not have to be an all-or-nothing choice.
What moving costs
Containerizing an application is work. Stateful systems need the most care, because their storage and recovery behaviour has to be understood before they move. The saving in infrastructure has to be weighed against that effort, workload by workload.
The takeaway
It is not just about running applications. It is about making better use of the infrastructure resources available to us.
Adapted from my LinkedIn post.