Kahibaro
Discord Login Register

19.2 Hypervisors

Understanding Hypervisors in Networking

Hypervisors are the core software layer that makes server and network virtualization possible. In networking, they are the invisible platform under most virtual machines and many virtual network functions. To understand virtual switches, SDN, and cloud networking, it is essential to understand what a hypervisor is and how it interacts with hardware, operating systems, and virtual networks.

What a Hypervisor Does

A hypervisor is a special kind of software that allows multiple virtual machines, often called VMs, to run on a single physical computer. Each VM behaves as if it has its own CPU, memory, disk, and network cards, but in reality they are all sharing the same physical resources.

The hypervisor sits between the physical hardware and the VMs. It presents each VM with a set of virtual hardware devices, including virtual network interface cards. When a VM sends or receives network traffic, it goes through these virtual devices, then through the hypervisor, and finally to the real physical network or to other VMs on the same host.

From a networking perspective, the hypervisor is the point where physical network interfaces are mapped to multiple virtual interfaces. It is also where much of the internal switching between VMs happens before traffic ever touches a physical switch.

Type 1 vs Type 2 Hypervisors

There are two main types of hypervisors, and they have important implications for performance, security, and how networking is implemented.

Type 1 Hypervisors

A Type 1 hypervisor, often called a bare metal hypervisor, runs directly on the physical hardware. There is no general purpose operating system underneath it. The hypervisor itself is the primary software that controls the hardware and runs the VMs.

Examples include VMware ESXi, Microsoft Hyper‑V in its bare metal form, and open source platforms like KVM when used as a hypervisor layer in enterprise platforms.

Because there is no extra operating system below, Type 1 hypervisors can be very efficient and secure. For networking, this often means better throughput, lower latency, and more consistent performance for virtual machines. Many data centers and cloud providers use Type 1 hypervisors as their foundation.

Type 2 Hypervisors

A Type 2 hypervisor, often called a hosted hypervisor, runs as an application on top of a regular operating system such as Windows, macOS, or Linux. The chain of control looks like: hardware, then host operating system, then the hypervisor software, and finally the VMs.

Common examples are VMware Workstation, VMware Fusion, Oracle VirtualBox, and desktop versions of Hyper‑V that run inside a full OS.

In this model, the host operating system controls the physical network cards. The hypervisor uses the host OS to send and receive packets. This adds an extra layer, so networking performance is typically lower compared to Type 1 hypervisors. However, Type 2 hypervisors are very convenient for labs, development, and testing.

Type 1 hypervisors run directly on the hardware. Type 2 hypervisors run on top of a host operating system.

This simple distinction is important to remember, since many interview and certification questions rely on it.

Hypervisors and Virtual Hardware

For networking, the most important virtual hardware component is the virtual network interface card, often called vNIC. Each VM usually has one or more vNICs. The hypervisor presents these vNICs to the guest operating system as if they were real network adapters.

Inside the guest OS, the vNIC looks like any other network card. It has a MAC address, can be assigned IP addresses, and can send and receive Ethernet frames. When the guest OS sends a frame, it is passed to the hypervisor, which decides what to do next.

The mapping from vNICs to the physical network is not direct. VMs do not talk to the physical Network Interface Card themselves. Instead, the hypervisor gathers traffic from many vNICs and then forwards it using one or more physical network interfaces on the host.

In many enterprise hypervisors, there are different virtual NIC models provided to VMs. Some are designed for compatibility, others for high performance. Drivers inside the guest OS need to match the virtual NIC model in order to get the best possible network performance.

Hypervisors and Virtual Switching

Hypervisors are also responsible for creating and managing virtual switches. While virtual switches are a separate topic, it is useful here to see how they relate to hypervisors.

Inside a hypervisor, multiple vNICs from different VMs are connected together through a software based switching layer. This behaves like a small switch built into the host. When one VM sends traffic to another VM on the same host, the traffic may stay entirely within this virtual switch and never hit a physical cable.

From a networking point of view, you can think of the hypervisor as running one or more software switches, each of which can connect to physical uplink ports. The physical NICs of the host serve as uplinks from these virtual switches to the physical network.

Hypervisors usually allow you to create multiple port groups or networks, attach vNICs to them, and decide which physical interfaces these groups use. This is how you can separate management traffic, storage traffic, and application traffic within a virtualized host.

Hypervisor Networking Modes in Labs

Type 2 hypervisors on desktops and laptops often offer several simple networking modes for virtual machines. These are useful in learning environments and small labs. Even though exact names can vary slightly, the concepts are mostly the same across products.

The common modes are usually similar to the following:

ModeDescriptionTypical Use Case
BridgedVM shares the physical network as a peerVM appears as a normal device on LAN
NATVM sits behind NAT performed by the hostInternet access without LAN visibility
Host‑onlyVM can only talk to the host and other host‑only VMsIsolated test networks
Internal / CustomVM uses custom virtual networks defined in the hypervisorComplex multi‑VM labs

In bridged mode, the hypervisor connects the VM to the same network that the host machine uses, usually by acting as a simple bridge. The VM obtains an IP address from the same DHCP server as physical devices and can be reached directly from other computers on that network.

In NAT mode, the hypervisor acts like a small router and performs Network Address Translation for the VMs. The VM can usually reach the internet or the outside network through the host, but other devices cannot easily start connections to the VM unless additional port forwarding is configured.

In host only mode, the hypervisor creates a separate network that only the host and its VMs can use. This is ideal for building small isolated labs that must not affect or be visible to the real network.

Internal or custom networks let you build multiple disconnected virtual networks inside a single machine. This is very useful for practicing routing, firewall rules, and other networking topics in a safe environment.

From the perspective of hypervisors, these modes simply control how the virtual switch inside the hypervisor connects or does not connect to the host OS and the physical NICs.

Hypervisors in Data Center and Cloud Environments

In enterprise data centers and public clouds, hypervisors are the base platform on which large scale virtual networks are built. Many virtual machines from many customers or internal teams run on clusters of hypervisor hosts.

In these environments, network design has to consider not only physical switches and routers, but also how the hypervisors connect to them. Each hypervisor host typically has several physical NICs that carry multiple VLANs or encapsulated overlay networks. The hypervisor then presents these networks to VMs using port groups or similar abstractions.

Hypervisor based virtualization also enables network functions virtualization. Traditional hardware appliances such as routers, firewalls, and load balancers can be replaced with virtual machines that run the same functions. These virtual network functions depend heavily on the hypervisor to provide reliable and high performance access to the underlying physical network.

Cloud providers often build their own hypervisor platforms or extend existing ones. While the details are hidden from customers, every virtual machine instance you create in a cloud environment runs on some form of hypervisor. When you configure security groups, subnets, or virtual private clouds, you are indirectly configuring how the hypervisor connects your VMs to the cloud network fabric.

Performance and Security Considerations

Because the hypervisor sits between VMs and the actual hardware, its design affects both performance and security.

For performance, the hypervisor is responsible for scheduling access to the CPU and for moving packets between vNICs and physical NICs. Network intensive workloads such as virtual firewalls or high traffic web servers can push a hypervisor to its limits. Features like hardware offload and direct assignment of devices exist to improve performance for such cases.

For security, the hypervisor enforces isolation between VMs. Each virtual machine should be separated from others, even if they share the same physical resources. If a hypervisor is compromised, the attacker might gain control over multiple VMs at once. For this reason, hypervisors are often hardened and tightly controlled in production environments.

From a networking view, the hypervisor and its virtual switch are also a key security boundary. The ability to apply port security, isolation between different tenants or departments, and enforcement of certain firewall rules can all be integrated into the hypervisor platform.

Management and Control of Hypervisors

Hypervisors do not stand alone. They are usually managed in groups as part of a larger virtualization platform. Centralized management tools monitor the health and load of each host, move VMs between hypervisors, and manage the networking configurations.

For example, features such as live migration let administrators move a running VM from one hypervisor host to another with minimal interruption. To make this work, both the compute and network state must be handled carefully. The new host must provide the same network connectivity and IP addressing so that external devices continue to reach the VM without noticing the move.

Networking teams often need to coordinate with virtualization teams when hypervisors are deployed or reconfigured. Changes in the physical network, such as new VLANs or uplink configurations, can directly affect how VMs connected through hypervisors communicate.

How Hypervisors Prepare the Ground for Advanced Networking

Hypervisors are not only about running multiple operating systems on a single machine. In modern architectures they are the core platform on which software defined networking and overlay networks are built.

Because the hypervisor has full control over vNICs and virtual switches, it becomes a natural point where advanced network features can be implemented in software. For instance, overlay networks rely on encapsulation done at or near the hypervisor, and SDN controllers frequently program the behavior of virtual switches that are part of the hypervisor platform.

Understanding hypervisors, their types, and their role in virtual networking makes it much easier to learn about virtual switches, SDN, and cloud networking concepts that build on top of them.

Views: 47

Comments

Please login to add a comment.

Don't have an account? Register now!