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
- Compare type 1 (bare-metal) and type 2 (hosted) hypervisors with examples.
- Describe what a VM consists of and how it is moved (live migration).
- Describe virtual switches: vSwitch, distributed switch, Open vSwitch, VLAN tagging, uplinks.
- Explain SR-IOV and DPDK, and why network functions (NFV) use them.
Type 1 and type 2 hypervisors
| Type 1 (bare metal) | Type 2 (hosted) | |
|---|---|---|
| Runs on | The hardware directly | A host operating system |
| Examples | VMware ESXi, Microsoft Hyper-V, KVM, Cisco NFVIS | VirtualBox, VMware Workstation and Fusion |
| Use | Data centers, production, NFV | Labs and desktops |
| Performance | Close to native | Lower: 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 trunk | On 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
- Type 1 runs on bare metal; type 2 needs a host OS.
- The physical port facing a hypervisor is usually a trunk.
- Live migration needs the VM's VLAN on every host it can move to.
- SR-IOV bypasses the virtual switch.
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.