liveBook · Manning

Virtual machine

As explained in Acing the CCNA Exam: Volume 2 Advanced Networking and Security

A virtual machine is a software-emulated computer that runs an operating system and applications in an isolated environment on physical hardware.

A virtual machine (VM) is an isolated software-based computer that allows a complete operating system and its applications to run on shared physical server hardware. VMs solve the inefficiency of dedicating one powerful server to one operating system by consolidating multiple operating systems on a single host. section 17.1 section 17.1.1

A hypervisor, also called a virtual machine monitor (VMM), sits between the hardware and VMs. It allocates CPU, RAM, and storage to each VM. A type 1 hypervisor runs directly on hardware and is common in data centers; a type 2 hypervisor runs as an application on a host operating system and is common for development, testing, and education. section 17.1.1 section 17.4

Key operational characteristics include:

  • Each VM runs its own guest operating system and behaves as an independent host on the network. section 17.4
  • A VM uses a virtual network interface card (vNIC) rather than a physical NIC. section 17.4
  • A virtual switch forwards frames between VM vNICs and the host's physical NICs; its ports can operate in access or trunk mode for VLAN segmentation. section 17.4 section 17.1.1
  • Type 1 hypervisors use hardware more efficiently, while type 2 hypervisors are easier to install and use. section 17.1.1 section 17.4

Virtual machines in cloud infrastructure

Infrastructure as a Service (IaaS) lets customers create VMs, choose their operating systems, customize CPU, RAM, and storage, run applications, and connect the VMs into a virtual network. AWS EC2, Azure Virtual Machines, and Google Compute Engine are examples. section 17.3.2

Figure 17.6 VMs connect to each other and the external physical network via a virtual switch. VMs are often segmented into separate VLANs, requiring trunk links.

Shows how VMs connect through a virtual switch to one another and to the external physical network, including VLAN access and trunk segmentation. section 17.1.1

How Acing the CCNA Exam: Volume 2 Advanced Networking and Security covers it

How deep it goes
Explains hypervisor placement, resource allocation, guest networking, virtual switching, and VLAN modes while stopping short of vendor configuration commands.
Examples
Uses type 1 and type 2 hypervisor diagrams, virtual-switch networking, and IaaS platforms such as AWS EC2 and Azure Virtual Machines.
What it assumes
Assumes basic operating-system and networking awareness while defining hosts, guests, hypervisors, vNICs, and virtual switches.
What you can do after
Evaluate VM architectures, distinguish hypervisor types, and understand how virtual machines connect to physical networks and cloud services.
How it connects
Connects virtual machines with hypervisors, guest operating systems, virtual switches, vNICs, VLANs, containers, and cloud computing.

Also explained in

Compare how 16 books explain virtual machine →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 2 Advanced Networking and Security. The section links point to the parts of the book it draws on.