What is a cloud hypervisor? How virtual machines share and isolate resources
A cloud hypervisor is the virtualization layer that mediates how virtual machines (VMs) share a physical server’s CPU, memory, and devices. It presents each VM with virtual hardware so that it can run its own operating system, while enforcing boundaries that prevent one VM from freely accessing another’s memory or devices. In a public cloud, the provider usually operates the host and hypervisor, while you manage the guest operating system and applications.
A cloud hypervisor is the virtualization layer that mediates how virtual machines (VMs) share a physical server’s CPU, memory, and devices. It presents each VM with virtual hardware so that it can run its own operating system, while enforcing boundaries that prevent one VM from freely accessing another’s memory or devices. In a public cloud, the provider usually operates the host and hypervisor, while you manage the guest operating system and applications.
What problem does a hypervisor solve?
Without a hypervisor, one operating system on a server manages the CPU, memory, and physical devices directly. A hypervisor makes those resources appear as virtual CPUs (vCPUs), virtual memory, network interfaces, and disks, allowing several guest operating systems to run on one host. The host is the physical server; a guest is an operating system running inside a VM.
The hypervisor schedules VM execution, separates memory address spaces, and routes virtual-device requests to physical devices or virtualized I/O paths. In Microsoft’s Hyper-V architecture, partitions are isolation units, and a child partition’s device requests can pass through VMBus and virtualization service components in the parent partition. Microsoft Hyper-V architecture
How do a VM’s CPU, memory, and devices connect to hardware?
A vCPU is not the same as a dedicated physical core. The hypervisor schedules the virtual processor that a VM sees onto execution time on the physical host. If several VMs are busy at once, they can compete for host resources, so a vCPU count alone does not guarantee a fixed level of performance. The hypervisor also translates and isolates the addresses used by the guest from the host’s physical memory.
I/O can use both virtual-device models and hardware features. A virtual device appears to the guest OS as a standard disk or network interface. Requests may pass through the hypervisor, a host-side virtualization stack, or dedicated hardware. Microsoft explains that Hyper-V’s VMBus and virtualization-aware I/O can bypass device emulation to improve efficiency. AWS Nitro uses processor virtualization features to partition CPU and memory and offloads some network and storage I/O to separate Nitro hardware. These are documented implementations, not a universal design. Hyper-V I/O architecture · AWS Nitro components
Where do the cloud provider’s and customer’s responsibilities meet?
For a public-cloud VM, the provider generally operates the physical servers, hypervisor, host isolation, and underlying infrastructure. Customers usually manage the guest OS, accounts and firewall rules, applications, and data protection. The division changes with managed services and configurations such as nested virtualization. Google Cloud, for example, says it manages host hardware and the hypervisor for Compute Engine VMs, while customers manage the guest OS and data when they use VMs directly. Google Cloud VMs and bare metal
A hypervisor is an important isolation boundary, but “it is a VM” does not mean “it is secure.” A vulnerable guest OS, exposed management port, excessive IAM permissions, or incorrect network rules are not fixed by VM isolation. Nested virtualization adds another boundary: the provider’s hypervisor and a customer-installed hypervisor inside the VM. AWS assigns customers responsibility for securing the nested hypervisor, nested VMs, guest OSs, applications, and data. For performance-sensitive work that requires hardware virtualization extensions, AWS recommends evaluating bare-metal instances. AWS nested virtualization responsibilities and considerations
How is a hypervisor different from containers and bare metal?
A container is usually an isolated process that shares the host kernel. A VM runs a guest operating system with its own kernel, using virtual hardware boundaries provided by a hypervisor. Containers are useful for packaging and deploying applications with low overhead; VMs are useful when you need a different guest OS or a separate kernel. Cloud deployments often run containers inside VMs. Docker’s comparison of containers and VMs
A bare-metal instance lets the customer’s OS access physical CPU and memory directly, without a hypervisor in between. It can suit workloads that need lower virtualization overhead, direct access to hardware features or performance counters, or their own hypervisor. It also increases the operational scope and responsibility at the physical-host level. Google Cloud describes its VMs as using the KVM hypervisor and bare-metal instances as providing direct access to physical resources without a hypervisor. Google Cloud VMs and bare metal
When is nested virtualization useful, and what does it cost?
Nested virtualization runs a hypervisor inside a VM and uses it to create more VMs. For example, the cloud hypervisor on the physical host is L0, a hypervisor inside your VM is L1, and a VM created by L1 is L2. The provider and instance type must expose processor virtualization extensions and support the configuration. AWS documents which EC2 types and L1 hypervisors currently qualify; check the latest provider documentation before deployment because support can change. AWS nested virtualization
This can help with test labs, hypervisor evaluation, emulators, and some development tools. More layers make CPU and memory management and I/O paths more complex and can add latency. Microsoft documents limitations for performance-sensitive applications and some cluster scenarios with nested Hyper-V. Start by deciding whether you need container isolation, a separate guest OS, or virtualization inside a guest; the shallowest layer that meets the need is usually easier to operate. Microsoft nested virtualization scenarios
How should you choose a cloud hypervisor environment?
For a web service, for example, you might select a VM size and network and disk options, patch the guest OS, and monitor service load. The provider’s hypervisor places and isolates VM resources on shared hosts. Your application should account for possible performance variation by designing scaling, caching, and load tests. If you need dedicated cores, particular device access, or a guest hypervisor, check whether an ordinary VM is sufficient or whether the provider supports bare metal or nested virtualization.
Before choosing, verify the required guest OS and CPU features, performance and latency targets, direct hardware access, nested virtualization support, the security responsibilities of each party, and behavior during faults and maintenance. Do not infer performance or isolation quality from a hypervisor label alone; use the cloud’s instance documentation and measurements of your workload.
References: Microsoft Hyper-V architecture, AWS Nitro components, Google Cloud VMs and bare metal, AWS nested virtualization, Microsoft nested virtualization, Docker containers and VMs.