2.1 Describe device virtualization technologies

ENCOR 350-401 v1.2 · 2.0 Virtualization

Virtualisation runs many systems on shared hardware. ENCOR expects you to compare type 1 and type 2 hypervisors, describe virtual machines, and explain virtual switching: how VM traffic reaches the physical network, and the newer options that bypass the hypervisor for speed.

What you must know

Type 1 and type 2 hypervisors

Type 1 (bare metal)Type 2 (hosted)
Runs onThe hardware directlyA host operating system
ExamplesVMware ESXi, Microsoft Hyper-V, KVM, Cisco NFVISVirtualBox, VMware Workstation and Fusion
UseData centers, production, NFVLabs and desktops
PerformanceClose to nativeLower: goes through the host OS

Virtual machines

A VM is a set of files (configuration, virtual disks, memory state) with virtual hardware: vCPUs, memory, vNICs and disks. The hypervisor schedules vCPUs onto real cores and isolates VMs from each other. Live migration (vMotion) moves a running VM to another host without downtime, so the VM's VLAN must exist on every host's uplinks. Network VMs such as the Catalyst 8000V router, ASAv firewall or virtual WLC are NFV: network functions as software.

Virtual switching

Inside the host, a virtual switch connects VMs to each other and to the physical NICs (uplinks). It learns MAC addresses like a physical switch and tags VLANs on the uplinks, which connect to trunks. A distributed switch (vDS, or Open vSwitch with a controller) is configured once and spans many hosts, so a VM keeps its port settings when it migrates.

Traffic between VMs on different hosts leaves through the uplinks, tagged, and crosses the physical switches (1). For high-throughput network functions, SR-IOV gives a VM a slice of the physical NIC directly (bypassing the vSwitch), and DPDK moves packet processing into user space; both trade some flexibility (such as live migration) for speed.

Commands

show interfaces trunkOn the physical switch: VLANs carried to the hypervisor uplinks.
show mac address-table interface <port>VM MAC addresses learned behind a hypervisor port.

Exam traps

Check yourself

Is KVM type 1 or type 2?
Type 1: it turns the Linux kernel into a bare-metal hypervisor.
Why use a distributed virtual switch?
One configuration across many hosts, so a migrating VM keeps its port settings.
What does SR-IOV give a VM?
Direct access to a virtual function of the physical NIC, bypassing the vSwitch for higher performance.

More topics in 2.0 Virtualization