Overview
This lecture covers virtualization networking, software routing solutions, snapshot/checkpoint functionality, virtual disk formats, and VM management approaches in Hyper-V and Virtual Box environments.
Software-Based Routing with pfSense
- pfSense is a reliable software-based router for connecting internal/private networks to the outside world
- Can run on minimal hardware (as little as 512 MB RAM)
- Features a web-based interface accessible through a browser for configuration
- Beginner-friendly with extensive video tutorials available online
- Requires two virtual network cards: one for private network, one for public network
- Routers bridge between two networks, enabling communication across network boundaries
VM Checkpoints and Snapshots
- Hyper-V uses "Checkpoint" terminology; Virtual Box calls it "Snapshot"
- Allows freezing a VM's disk state at a specific point for later restoration
- Can capture complete system state, including open applications and cursor position
- Security concern: running snapshots bypass login prompts on next boot
- Best practice: shut down VM before creating checkpoint/snapshot
- Production checkpoints can automatically trigger on power-down events
- Standard checkpoints allow manual creation at any desired time
Virtual Disk Formats
- VHD: Original Hyper-V format with 2 terabyte storage limit
- VHDX: Current format supporting up to 65 terabytes of storage
- Recommendation: use VHDX (new style) when creating new virtual disks
- VM files are not natively compatible between Virtual Box and Hyper-V
- OVA format provides cross-platform compatibility for exports between virtualization platforms
Hyper-V vs Virtual Box Comparison
| Feature | Hyper-V | Virtual Box |
|---|
| Snapshot Name | Checkpoint | Snapshot |
| Default Connection | Headless (no display) | Graphical interface |
| Disk Format | VHD/VHDX | Various formats |
| Headless Support | Built-in default | Available with configuration |
Physical-to-Virtual (P2V) Conversion
- P2V tools like "P2V" by Mark Russinovich and "Disk2VHD" enable conversion
- Third-party tools like EasyGig are available but optional
- Recommended approach: create backup of physical machine, then restore to new VM
- Process: boot VM from backup software media (thumb drive), restore from network storage
- This method is automated and requires minimal manual intervention
VM Management and Headless Mode
- Hyper-V Management Console features three panes with Actions pane for common tasks
- Connect and Shutdown are the most frequently used operations
- Headless mode runs VMs without displaying console output on screen
- Useful for servers (file servers) that don't require interactive login
- Hyper-V defaults to headless operation; Virtual Box defaults to graphical display
- Remote Desktop Services (RDP) can connect to VMs independently of virtualization platform
- Connect button in Hyper-V Manager launches RDP session for administrative access
Key Terms & Definitions
- Headless: VM running without console display, managed remotely or through automation
- Checkpoint: Hyper-V's term for saving VM state at a specific point
- Snapshot: Virtual Box's equivalent to Hyper-V checkpoint functionality
- Bridge: Router function connecting two separate networks