liveBook · Manning

Virtual machine

As explained in Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more

A virtual machine is a software-emulated computer that provides an isolated environment with virtualized hardware for running an operating system and its workloads.

A virtual machine is an isolated software-emulated computer that virtualizes hardware and runs an operating system with its workload. Unlike containers, it requires managing the guest operating system, kernel, init system, logging, security updates, backups, and associated overhead. section 1.2.1

Virtual machines provide stronger separation at a higher management cost:

  • A physical machine can run multiple applications in separate VMs, but each VM carries a complete operating system. section 1.2.1
  • Containers can be placed inside separate VMs when applications such as a web frontend and a database require additional isolation. section 11.5.2
Figure 1.4 Physical machine running three applications in three VMs

Compare a physical machine hosting three applications in three separate VMs with the corresponding container arrangement. section 1.2.1

How Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more covers it

How deep it goes
Compares complete-OS management and isolation but does not describe hypervisor implementation or virtual hardware internals.
Examples
Uses three applications on one physical machine and a web frontend separated from a credit-card database.
What you can do after
Evaluate when VM isolation justifies managing complete operating systems and additional runtime overhead.
How it connects
Connects virtual machines with containers, Linux namespaces, and security isolation.

Also explained in

Compare how 16 books explain virtual machine →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more. The section links point to the parts of the book it draws on.