Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
KubeVirt: Running Virtual Machines on Kubernetes Hands-On
New
32 students

KubeVirt: Running Virtual Machines on Kubernetes Hands-On

Stop running two platforms. Learn to run VMs alongside containers on Kubernetes with real, hands-on KubeVirt demos
Created byYogesh Raheja
Last updated 11/2026
English
English [Auto],

What you'll learn

  • Explain what KubeVirt is, why it exists and how VMs and containers run side by side on one cluster
  • Describe the KubeVirt architecture (virt-api, virt-controller, virt-handler, virt-launcher) and the full VM creation flow
  • Set up a two-node Kubernetes cluster and install KubeVirt and virtctl
  • Create and manage virtual machines declaratively and with virtctl
  • Configure VMs on first boot using cloud-init (passwords and user data)
  • Use instancetypes and preferences to standardize VM sizing and settings
  • Expose VMs outside the cluster with Services and connect over SSH
  • Provide persistent storage using NFS data disks and CDI-managed root disks
  • Scale VMs with VirtualMachineInstanceReplicaSets and VirtualMachinePools
  • Understand feature gates, live migration, snapshots and restores, hotplug, health probes and disk expansion

Course content

13 sections • 47 lectures • 4h 58m total length
  • Introduction6:12
  • GitHub Repository Link0:10
  • Course Material - KubeVirt: Running Virtual Machines on Kubernetes Hands-On0:07

Requirements

  • Basic Kubernetes knowledge (pods, deployments, services)
  • Comfort with the command line and kubectl
  • Basic Linux skills
  • A machine or cloud account able to run two Linux nodes (we build the cluster together)
  • No prior VMware, KVM or virtualization experience needed
  • No paid tools required, everything used is open source

Description

“This course contains the use of artificial intelligence.”


Most organizations don’t get to pick between containers and virtual machines. They run both. Containers live on Kubernetes, while legacy apps, Windows workloads and stateful systems stay on VMware, KVM or something similar. The result is two platforms, two toolsets and two teams doing the same job twice.


KubeVirt fixes that. It’s an open-source CNCF project that extends Kubernetes so virtual machines run natively next to containers, on the same cluster, with the same tools and the same workflows. A VM becomes just another Kubernetes object: you create it with kubectl, expose it with a Service, store its disk on a PVC and scale it like any other workload. It’s also the upstream project behind Red Hat’s OpenShift Virtualization, so what you learn here applies to real-world platforms.


This course takes you from zero to confident with KubeVirt, with clear explanations first and hands-on demos for every concept. You’ll start with the problem KubeVirt solves, using simple analogies instead of documentation-speak. Then you’ll go inside the architecture (virt-api, virt-controller, virt-handler and virt-launcher) and trace exactly how a VM is created, step by step.


Then you build. You’ll set up a two-node Kubernetes cluster from scratch, install KubeVirt and virtctl, and create your first virtual machine declaratively with YAML and with virtctl. From there you’ll:


  • Configure VMs with cloud-init

  • Standardize hardware with instancetypes and preferences

  • Expose VMs outside the cluster and SSH into them

  • Attach persistent data disks using an NFS provisioner

  • Scale fleets of VMs with VirtualMachineInstanceReplicaSets and VirtualMachinePools

  • Use the Containerized Data Importer (CDI) to build persistent root disks

  • Cover the production concepts every operator runs into: feature gates, live migration, snapshots and restores, hotplug volumes, VM health probes and disk expansion


What makes this course different

Most KubeVirt content is either a dry walk through the docs or a quick “look, a VM is running” demo with no explanation of why it works. This course does both properly. The theory is short, visual and beginner-friendly, and the demos are real, live and unedited, so you see the commands, the output and what to check when something doesn’t work. Every concept is built on a simple example, not a wall of YAML.

Who this course is for:

  • DevOps and platform engineers who want one platform for containers and VMs
  • Kubernetes administrators who need to bring VM workloads into their clusters
  • VMware, KVM or Hyper-V administrators exploring a Kubernetes-native alternative
  • Cloud and SRE engineers managing hybrid container and VM environments
  • Solutions architects evaluating KubeVirt and OpenShift Virtualization for modernization
  • Students and career switchers with Kubernetes basics who want a standout, in-demand skill