Hyper-V basics: switches, VMs and checkpoints

Most Windows servers these days are virtual machines, and in a lot of companies they run on Hyper-V, the hypervisor that comes with Windows Server and Windows 11 Pro. Building switches, VMs and checkpoints on it is everyday work for a Windows admin.

You’ll check that your laptop supports virtualization, turn on Hyper-V, create internal and private switches and build a Generation 2 VM from the Server 2025 ISO. Then you’ll work with checkpoints and fix a VM that won’t boot and one that won’t start.

TimeYou needBy the end you can
About 75 minutesA laptop with Windows 10/11 Pro, Enterprise or Education (Home doesn’t include Hyper-V), the Server 2025 ISO from Lesson 2, 8 GB RAM or moreCheck hardware support, enable Hyper-V, create switches and VMs with PowerShell, use dynamic memory and checkpoints, and troubleshoot boot and start failures

What it is, in one line

Hyper-V is Microsoft’s type-1 hypervisor: it runs directly on the hardware and shares it between many virtual machines, each with its own virtual CPU, memory, disks and network.

In Simple Words

One big house, many flats

A builder can turn one big house into several flats. Each flat gets its own front door, kitchen and electricity meter, but they all share the same foundation, walls and water supply. Hyper-V does this to a server: the physical machine is the house, each VM is a flat that believes it’s a whole house, and the hypervisor is the building manager making sure no flat takes all the water. A checkpoint is a photo of a flat before you repaint it. You can always go back to the photo, but if you keep stacking photos for years they fill up the cellar.

Engineer's View

Hypervisor, partitions, switches, disks

Architecture: once Hyper-V is on, the hypervisor loads first and Windows itself becomes the parent partition that manages the hardware. VMs run in child partitions and reach the hardware through the VMBus and integration services. You need a 64-bit CPU with hardware virtualization (Intel VT-x or AMD-V) and SLAT (EPT or RVI).

Generations: Generation 2 VMs use UEFI, Secure Boot and SCSI boot disks and are the default for modern Windows, while Generation 1 emulates older BIOS hardware for old operating systems.

Virtual switches: an External switch connects VMs to a physical network adapter, an Internal one connects the VMs and the host only, and a Private one connects VMs only to each other. Windows 11 also gives you a NAT “Default Switch”.

Disks: VHDX files (up to 64 TB) can be dynamically expanding or fixed size. Dynamic memory moves RAM between VMs within the limits you set.

Checkpoints: a production checkpoint uses VSS inside the guest to get an application-consistent copy, and a standard one saves the memory state as well. Every checkpoint creates an AVHDX differencing disk that keeps growing until you delete the checkpoint, and none of this is a backup.

Nested virtualization lets a VM run Hyper-V itself, which is how Azure and test labs stack hypervisors. VirtualBox doesn’t reliably support Hyper-V as a nested guest, so this lab uses your laptop’s own Hyper-V.

How it works, step by step

Here’s how the layers stack once Hyper-V is turned on:

Hyper-V layers: hardware, hypervisor, parent partition, VMBus and child partitions

Your laptop’s Windows doesn’t go away; it becomes the parent partition, a special VM with direct access to the hardware. That’s why turning Hyper-V on needs a restart, and why VirtualBox runs a little slower afterwards (from then on it works through the Windows Hypervisor Platform).

Here’s the Hyper-V lab you’ll build on your laptop:

Hyper-V lab on a laptop: host, switches, HV-TEST01 and checkpoints
  1. Check that the CPU supports virtualization and SLAT.
  2. Enable Hyper-V and restart.
  3. Create an internal switch (VMs and host) and a private switch (VMs only).
  4. Build HV-TEST01, a Generation 2 VM with dynamic memory, from the Server 2025 ISO.
  5. Use a production checkpoint, then delete it properly.
  6. Optionally switch Hyper-V off again so VirtualBox runs at full speed.

If your laptop runs Windows Home, read along and keep the commands for work, because the PowerShell is the same on Windows Server.

Hands-on Lab: Hyper-V on your own laptop

Before you run any command, double-check it

Read every command twice before you press Enter. Check the target: the system or account, the IDs, the names and the sizes. These commands are for learning and were tested in our lab, not on your system. At work, run the read-only list commands first, follow your change process, make sure a backup exists, and ask a second person to check anything that changes or deletes data. You run them at your own risk.

Shut down your VirtualBox VMs first, then open PowerShell as administrator on your laptop (not inside a VM).

1Check virtualization support

On your laptop, run this:

Get-ComputerInfo -Property HyperV* | Format-List

You should see something like this:

HyperVisorPresent                                 : False
HyperVRequirementDataExecutionPreventionAvailable : True
HyperVRequirementSecondLevelAddressTranslation    : True
HyperVRequirementVirtualizationFirmwareEnabled    : True
HyperVRequirementVMMonitorModeExtensions          : True

All four requirements have to be True. If VirtualizationFirmwareEnabled is False, switch on Intel VT-x or AMD-V (SVM) in your laptop’s BIOS or UEFI settings. If HyperVisorPresent is already True, some hypervisor is already running (Windows security features can cause this) and the requirement lines may be empty, which is fine.

✅ Checkpoint: All four Hyper-V requirements are True (or a hypervisor is already present).

2Enable Hyper-V

On your laptop:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
Restart-Computer

After the restart, in PowerShell as administrator:

Get-VMHost | Select-Object Name, LogicalProcessorCount, @{n='MemoryGB';e={[math]::Round($_.MemoryCapacity/1GB)}}, VirtualMachinePath

You should see something like this:

Name        LogicalProcessorCount MemoryGB VirtualMachinePath
----        --------------------- -------- ------------------
LAPTOP-7Q2K                     8       16 C:\ProgramData\Microsoft\Windows\Hyper-V

On Windows Server you’d do the same with Install-WindowsFeature Hyper-V -IncludeManagementTools -Restart, and the rest of the lab is identical on both.

✅ Checkpoint: Get-VMHost returns your laptop with its CPU and memory.

3Create virtual switches

On your laptop:

New-VMSwitch -Name LabInternal -SwitchType Internal | Out-Null
New-VMSwitch -Name LabPrivate -SwitchType Private | Out-Null
Get-VMSwitch | Select-Object Name, SwitchType

You should see something like this:

Name           SwitchType
----           ----------
Default Switch Internal
LabInternal    Internal
LabPrivate     Private

Creating the internal switch also adds a network adapter on your laptop called “vEthernet (LabInternal)”, so the host can talk to the VMs on it, while the private switch has no host adapter at all. An external switch would bind to your physical network card, which is often unreliable on a laptop with Wi-Fi, so the lab uses the built-in Default Switch for internet access instead.

✅ Checkpoint: Get-VMSwitch shows Default Switch, LabInternal and LabPrivate.

4Build a Generation 2 VM

On your laptop:

New-Item -ItemType Directory C:\Lab\HyperV -Force | Out-Null
New-VM -Name HV-TEST01 -Generation 2 -MemoryStartupBytes 2GB -NewVHDPath C:\Lab\HyperV\HV-TEST01.vhdx -NewVHDSizeBytes 40GB -SwitchName 'Default Switch' -Path C:\Lab\HyperV | Out-Null
Set-VMProcessor -VMName HV-TEST01 -Count 2
Set-VMMemory -VMName HV-TEST01 -DynamicMemoryEnabled $true -MinimumBytes 1GB -MaximumBytes 4GB
Add-VMDvdDrive -VMName HV-TEST01 -Path C:\Lab\ISO\server2025.iso
Set-VMFirmware -VMName HV-TEST01 -FirstBootDevice (Get-VMDvdDrive -VMName HV-TEST01)
Get-VM HV-TEST01 | Select-Object Name, Generation, State, ProcessorCount, DynamicMemoryEnabled

You should see something like this:

Name      Generation State ProcessorCount DynamicMemoryEnabled
----      ---------- ----- -------------- --------------------
HV-TEST01          2 Off                2 True

Start it and open its console:

Start-VM HV-TEST01
vmconnect localhost HV-TEST01

When the console says Press any key to boot from CD or DVD, press a key straight away. Install Windows Server 2025 Datacenter Evaluation the way you did in Lesson 5 (Server Core is quicker). The disk shows up as 40 GB.

✅ Checkpoint: HV-TEST01 boots from the ISO and Windows Setup starts.

5Use a checkpoint, then delete it properly

After the install, on your laptop:

Get-VM HV-TEST01 | Select-Object Name, CheckpointType
Checkpoint-VM -Name HV-TEST01 -SnapshotName 'Fresh install'
Get-VMCheckpoint -VMName HV-TEST01 | Select-Object Name, CheckpointType, CreationTime
Get-ChildItem C:\Lab\HyperV\*.avhdx | Select-Object Name, @{n='MB';e={[math]::Round($_.Length/1MB)}}

You should see something like this:

Name      CheckpointType
----      --------------
HV-TEST01 Production

Name          CheckpointType CreationTime
----          -------------- ------------
Fresh install Production     19/10/2026 21:40:12

Name                                                 MB
----                                                 --
HV-TEST01_8C1E2B7A-5D3F-4A90-B6E1-2F7C9D0A3B44.avhdx  4

The VM is now writing to the AVHDX file rather than the original VHDX. Make a change inside the VM (create a folder), then roll back with Restore-VMCheckpoint -VMName HV-TEST01 -Name 'Fresh install' -Confirm:$false, and the folder is gone.

Next, delete the checkpoint so its changes merge back into the VHDX:

Remove-VMCheckpoint -VMName HV-TEST01 -Name 'Fresh install'
Start-Sleep -Seconds 30
Get-ChildItem C:\Lab\HyperV\*.avhdx

No AVHDX files are left because Hyper-V merged them. Don’t ever delete AVHDX files by hand, because that breaks the VM’s disk chain.

✅ Checkpoint: You restored a checkpoint, then removed it, and no AVHDX files are left.

Hyper-V lab: production checkpoint and its AVHDX file
Taking a checkpoint creates an AVHDX file; removing the checkpoint merges it back.

6Optional: switch Hyper-V off for VirtualBox speed

If VirtualBox feels slow with Hyper-V on, you can stop the hypervisor loading at boot (Hyper-V stays installed):

bcdedit /set hypervisorlaunchtype off
Restart-Computer

When you need Hyper-V again, turn it back on with bcdedit /set hypervisorlaunchtype auto and restart. Some Windows security features also rely on the hypervisor, so ask before changing this on a work laptop.

✅ Checkpoint: You know how to switch the hypervisor on and off for the next lessons.

Break It, Then Fix It

These two Hyper-V tickets come up all the time: “the VM won’t boot” and “the VM won’t even start”.

1Break it: a Generation 2 VM that doesn’t boot

Create a second VM and start it, but this time don’t press a key at the boot prompt:

New-VM -Name HV-TEST02 -Generation 2 -MemoryStartupBytes 1GB -NewVHDPath C:\Lab\HyperV\HV-TEST02.vhdx -NewVHDSizeBytes 20GB -SwitchName 'Default Switch' -Path C:\Lab\HyperV | Out-Null
Add-VMDvdDrive -VMName HV-TEST02 -Path C:\Lab\ISO\server2025.iso
Start-VM HV-TEST02
vmconnect localhost HV-TEST02

After a few seconds the console shows something like this:

Virtual Machine Boot Summary

1. SCSI Disk     (0,0)   The boot loader did not load an operating system.
2. Network Adapter (00155D01A2B3)   A boot image was not found.

No operating system was loaded. Your virtual machine may be configured incorrectly. Exit and re-configure your VM
or click restart to retry the current boot sequence again.

Two things went wrong here. The boot order still starts with the empty disk (you didn’t run Set-VMFirmware this time), and a Generation 2 VM boots from DVD only if you press a key within a few seconds. Network boot didn’t find a server either.

Fix it: put the DVD first, restart, and press a key at the prompt:

Stop-VM HV-TEST02 -TurnOff
Set-VMFirmware -VMName HV-TEST02 -FirstBootDevice (Get-VMDvdDrive -VMName HV-TEST02)
Start-VM HV-TEST02

✅ Checkpoint: HV-TEST02 failed with “No operating system was loaded” and boots Setup after the fix.

2Break it: not enough memory to start

Give HV-TEST02 far more startup memory than your laptop has:

Stop-VM HV-TEST02 -TurnOff
Set-VMMemory -VMName HV-TEST02 -DynamicMemoryEnabled $false -StartupBytes 64GB
Start-VM HV-TEST02

You’ll get an error like this:

Start-VM : 'HV-TEST02' failed to start.
Not enough memory in the system to start the virtual machine HV-TEST02.
'HV-TEST02' failed to start. (Virtual machine ID 3B9E2C41-...)
Not enough memory in the system to start the virtual machine 'HV-TEST02' with ram size 65536 megabytes. (Virtual
machine ID 3B9E2C41-...)
    + CategoryInfo          : NotSpecified: (:) [Start-VM], VirtualizationException
    + FullyQualifiedErrorId : OutOfMemory,Microsoft.HyperV.PowerShell.Commands.StartVM

Hyper-V reserves a VM’s startup memory before it starts the VM. On real hosts you see this after someone adds more VMs, or when a host fails over and the remaining hosts can’t fit everything, so always keep some memory spare.

Fix it: use a realistic size with dynamic memory, then clean up the test VM:

Set-VMMemory -VMName HV-TEST02 -DynamicMemoryEnabled $true -StartupBytes 1GB -MinimumBytes 512MB -MaximumBytes 2GB
Start-VM HV-TEST02
Stop-VM HV-TEST02 -TurnOff; Remove-VM HV-TEST02 -Force; Remove-Item C:\Lab\HyperV\HV-TEST02.vhdx

✅ Checkpoint: Start-VM failed at 64 GB and succeeded with 1 GB dynamic memory.

Hyper-V lab: Start-VM fails with not enough memory
Hyper-V has to reserve a VM’s startup memory, so a VM asking for 64 GB on a laptop can’t start.

This happened at work

The checkpoint nobody deleted

Before a database upgrade, an admin took a checkpoint of the company’s main SQL Server VM “just in case”. The upgrade went fine, everyone was pleased, and the checkpoint was forgotten. For seven months every write to the database went into the AVHDX file instead of the main disk, until it had grown past 900 GB. One night it filled the host’s storage volume, and Hyper-V paused every VM on that volume with the status “Paused-Critical”, twelve VMs at once. Freeing space and merging a checkpoint that big took most of the next day, the database was slow the whole time, and the backups kept failing during the merge.

The fix: a weekly report now lists every VM with a checkpoint older than three days, checkpoints get deleted the same day the change is accepted, and rollback plans use real backups.

The lesson: a checkpoint is meant for minutes or hours, not months, so delete it as soon as the change is confirmed.

Common mistakes and troubleshooting

Mistake or symptomWhat happensWhat to do instead
Old checkpoints left on VMsAVHDX files grow until storage fills; VMs pauseDelete checkpoints once the change is confirmed; report on old ones
Deleting AVHDX files by handThe VM’s disk chain breaksAlways use Remove-VMCheckpoint
“No operating system was loaded” on Gen 2Wrong boot order, or no key pressed for DVDSet-VMFirmware first boot device; press a key quickly
“Not enough memory” on Start-VMThe host can’t reserve startup memoryRight-size VMs, use dynamic memory, keep spare host RAM
Using checkpoints as backupsLost data when the host or disk failsReal backups (Lesson 38)
External switch on Wi-FiUnstable or no network for the hostUse the Default Switch or an internal switch with NAT
VirtualizationFirmwareEnabled FalseHyper-V won’t installEnable VT-x or AMD-V in the BIOS/UEFI
Gen 1 VMs for modern WindowsNo Secure Boot, older devicesGeneration 2 unless the OS needs Gen 1
Overcommitting CPU and memory heavilySlow VMs for everyoneMonitor host counters; plan capacity

Interview questions

Click a question to open it. Each one is phrased the way an interviewer would ask it, and underneath you’ll find why they ask it and one way you could answer in your own words.

Fresher level

1. How would you explain a hypervisor to someone who has never used virtual machines?

Why they ask this: They’re checking you understand the basic idea of virtualization and where Hyper-V fits.

How you might answer: I’d say a hypervisor is software that lets one physical machine run lots of virtual machines by sharing out its hardware, a bit like one big house split into separate flats. Hyper-V is a type-1 hypervisor, which means it runs directly on the hardware.

2. Hyper-V has three types of virtual switch. Can you tell me what each one is for?

Why they ask this: They want to see you know Hyper-V networking, because the wrong switch type is a common reason a VM has no network.

How you might answer: An External switch connects VMs to the physical network, and an Internal switch lets VMs talk to each other and to the host. A Private switch lets them talk only to each other, with no host or outside access.

3. You’re creating a new Windows Server VM. Would you pick Generation 1 or Generation 2, and why?

Why they ask this: They want to know you understand the VM types and choose the right one for modern systems.

How you might answer: Generation 2, because it uses UEFI, Secure Boot and SCSI boot and it’s the default for modern Windows. Generation 1 emulates BIOS and IDE, so I’d keep it for old operating systems that need that.

2–5 years experience

4. Before an app upgrade, you want a checkpoint. What’s the difference between a production and a standard checkpoint, and which would you take?

Why they ask this: They’re checking you know the checkpoint types and what each one saves.

How you might answer: A production checkpoint uses VSS inside the guest to save an application-consistent disk state, with no memory, while a standard checkpoint saves the memory and device state too. For a server app upgrade I’d normally take a production checkpoint, because the app’s data gets saved in a clean state.

5. What actually happens on disk when you take a checkpoint, and why does it matter?

Why they ask this: They want to see you understand AVHDX files, because a forgotten checkpoint can fill a disk.

How you might answer: The VM starts writing every change to a new differencing disk, an AVHDX file, instead of the original disk. When you delete the checkpoint, that file is merged back into the parent disk, and if checkpoints are left for weeks those files keep growing.

6. How does dynamic memory work in Hyper-V, and have you set it up?

Why they ask this: They want to know whether you’ve configured dynamic memory yourself and understand the three main settings.

How you might answer: The VM boots with its startup memory, and as demand changes it can grow up to the maximum or shrink to the minimum. Hyper-V balances memory across all the VMs on the host, so I can fit more VMs without giving each one its peak amount all the time.

Senior level

7. You’re asked to size and design a Hyper-V host for 30 VMs. How would you approach it?

Why they ask this: They want to see you think about capacity, growth and failure, and not only today’s numbers.

How you might answer: I’d add up the CPU, memory and storage the VMs need, allow for growth and keep headroom for failover, N+1 if it’s a cluster. I’d also keep management, VM, storage and live migration traffic on separate networks, use SET teaming, and plan backup and monitoring from day one.

8. It’s 2 a.m. and the alert says several VMs on a host are in “Paused-Critical”. What happened, and what do you do?

Why they ask this: They’re checking you know this storage risk, can recover calmly and can stop it happening again.

How you might answer: That usually means the volume holding the VMs has run out of space, often because of growing checkpoints or dynamic disks. I’d free up space, find and merge the old checkpoints and then resume the VMs, and afterwards I’d add monitoring on free space.

9. When would you use nested virtualization, and when would you avoid it?

Why they ask this: They want to see that you know its real use cases and its performance cost.

How you might answer: I’d use it for labs and training, for containers with Hyper-V isolation inside VMs, and in the cloud when a VM has to host its own VMs. For heavy production workloads I’d avoid it, because it costs performance.

Quick quiz

Q1. What does Hyper-V need from the CPU?

  1. Only 64-bit
  2. Hardware virtualization and SLAT
  3. A GPU
Show answer

B — VT-x or AMD-V plus EPT or RVI.

Q2. Which switch type lets VMs talk only to each other?

  1. External
  2. Internal
  3. Private
Show answer

C — No host or physical network access.

Q3. Why did HV-TEST02 show “No operating system was loaded”?

  1. The ISO was corrupt
  2. Boot order and no key pressed for DVD
  3. Not enough memory
Show answer

B — Set the DVD first and press a key.

Q4. What file grows while a checkpoint exists?

  1. VHDX
  2. AVHDX
  3. ISO
Show answer

B — Delete the checkpoint to merge it.

Q5. In the work story, why did 12 VMs pause?

  1. A power cut
  2. A forgotten checkpoint filled the storage volume
  3. A virus
Show answer

B — Delete checkpoints promptly.

Quick recap

  • Hyper-V is a type-1 hypervisor, and Windows becomes the parent partition.
  • Before enabling it, check for VT-x/AMD-V, SLAT and firmware support.
  • Switches: External, Internal, Private (and Default Switch on Windows 11).
  • Use Generation 2 VMs, dynamic memory and VHDX disks.
  • Checkpoints create AVHDX files, so delete them promptly and never by hand.
  • “Not enough memory” means the host can’t reserve startup RAM.

Next lesson

Lesson 29: Hyper-V advanced → Next you’ll build two nested Hyper-V hosts inside your laptop’s Hyper-V, live migrate a VM between them, set up Hyper-V Replica and learn about AVMA and GPU partitioning.

Further reading: Hyper-V

Want to go deeper into Hyper-V? Microsoft’s Hyper-V overview covers the architecture, and the nested virtualization guide explains running Hyper-V inside a VM. You can also see the full plan for this course on the Windows Server Administration course page.

Scroll to Top

This website uses cookies

We use a few cookies to keep this site working. If you allow it, we also use Google Analytics to count visits so we can improve our lessons. You can accept all, deny the optional ones, or choose what to allow.