Master Windows Server virtualization with Hyper-V.
Domain: Manage virtual machines and containers (15-20%)
This module covers Hyper-V architecture, VM creation, virtual networking, and checkpoints.
When you enable Hyper-V on Windows, the entire OS becomes a virtual machine running on the hypervisor!
| Feature | Generation 1 | Generation 2 |
|---|---|---|
| Firmware | BIOS (Legacy) | UEFI |
| Boot Disk | IDE controller | SCSI controller |
| Secure Boot | No | Yes |
| PXE Boot | Legacy adapter only | Standard adapter |
| DVD Boot | IDE CD-ROM | SCSI |
| Hot Add Memory | No | Yes |
| Guest OS | Older Windows, Linux | Windows 8+, Modern Linux |
Only use Gen 1 when running legacy operating systems (Windows 7, Server 2008) or older 32-bit Linux distributions.
| Type | VMs ↔ VMs | VMs ↔ Host | VMs ↔ Network |
|---|---|---|---|
| External | ✓ | ✓ | ✓ |
| Internal | ✓ | ✓ | ✗ |
| Private | ✓ | ✗ | ✗ |
Create an External switch to give VMs access to the physical network through a host NIC.
An Internal switch lets VMs communicate with the host, but not with the physical network.
A Private switch isolates VMs from both the host and the physical network entirely.
Checkpoints capture VM state for point-in-time recovery.
Capture the current VM state before making changes so you can roll back if needed.
List all checkpoints for a VM to see your available restore points.
Roll back to a previous checkpoint to undo changes that caused problems.
Get a quick overview of every VM on this Hyper-V host and their current state.
Create a new Generation 2 VM with a dynamically expanding virtual hard disk.
Start a VM to boot it, or stop it gracefully. Use -Force for an immediate power-off.
Adjust CPU and memory settings on a VM without recreating it.
Attach a VM's network adapter to a virtual switch for network connectivity.
| Task | Cmdlet |
|---|---|
| List VMs | Get-VM |
| Create VM | New-VM -Name X -Generation 2 |
| Start/Stop | Start-VM / Stop-VM |
| Checkpoint | Checkpoint-VM -SnapshotName X |
| Switches | Get-VMSwitch / New-VMSwitch |