Virtualization lets one physical computer share its hardware among several separate digital environments. Each environment can act like an independent computer, even though the underlying server is shared. Cloud providers use this separation to serve multiple customers without giving each one dedicated hardware. section 13.4.2 section 13.4.1
A virtual machine (VM) is a software-defined computer running on a physical host. It has its own operating system, applications, and allocated computing resources. Think of dividing a large hotel suite into smaller private rooms: guests share the building, but use their rooms independently. section 13.4.2
One university server, several jobs
A university has a server with 16 CPU cores and 64 GB of RAM. Rather than reserve it for one job, its IT team divides it into four VMs. One runs a Windows Server exam platform; another runs a Linux research notebook hub. Sharing the server this way makes better use of its capacity and can reduce space, electricity, and cooling needs. section 13.4.2
|
|
Virtual
Machines (VMs)
|
Containers
|
|
Virtualization
|
Full
(Hypervisor emulates entire hardware stack)
|
Lightweight
(Container engine shares the host OS)
|
|
Isolation
|
Strong
(each VM instance has its own OS)
|
Moderate
(each container is a runtime environment on the same shared OS)
|
|
Startup Time
|
Slow
(minutes)
|
Fast
(seconds)
|
|
Performance
|
~15% loss
|
<2% loss
|
|
Density
|
10–100
instances per host
|
100–1000
instance per host
|
|
Security Risks
|
Compromise
of OS is typically contained to that VM
|
Shared OS
increases potential blast radius on OS security attacks
|
|
Ideal Use Case
|
Running
multiple fully independent OS environments
|
Rapid
deployment of microservices and applications
|
|
Virtualization
|
Full
(Hypervisor emulates entire hardware stack)
|
Lightweight
(Container engine shares the host OS)
|
|
Isolation
|
Strong
(each VM instance has its own OS)
|
Moderate
(each container is a runtime environment on the same shared OS)
|
Compare VMs with containers before choosing an approach: VMs have separate operating systems and stronger isolation, while containers share the host operating system and are lighter and faster to start. section 13.4.2
Virtualization is part of the infrastructure a cloud provider manages. In Infrastructure as a Service (IaaS), the provider manages the data center, hardware, and virtualization, while the customer manages the operating system, applications, and data. Moving to the cloud does not remove the customer’s responsibility for protecting its data. section 13.5


