HyperHobo is a bit of automation around Windows Hyper-V
- Windows 10 Pro or Enterprise. This might also work on Windows Server 2019 and up.
- The "Hyper-V" feature enabled (HyperHobo was only tested with all of the sub-features enabled), which can can be done via the following, with more details available at Install Hyper-V on Windows 10:
- Open an elevated PowerShell prompt
- Run
Enable-WindowsOptionalFeature -FeatureName "Microsoft-Hyper-V-All" -All -Online
- Reboot
- A virtual machine with at least one checkpoint.
Assuming you've cloned this repository and that hh.bat
is available in your PATH
(or you prefix a path before any hh.bat
):
- Create a file called
HyperHoboConfig.ps1
in the current folder, adding the following variables and values for them:Variable Name Description $vmName
The name of the virtual machine in Hyper-V $hostName
The name to set in the HOSTS file to go with the VM's IP address (optional) - Run
hh.bat apply "<checkpoint name>"
I imported the "MSEdge on Win10 (x64) Stable 1809" from Virtual Machines - Microsoft Edge Developer into Hyper-V and the VM was named MSEdge - Win10
. I created a checkpoint (called Imported
) before booting the first time and then created another checkpoint (called example
) after playing around for a bit.
My HyperHoboConfig.ps1
file looks like this:
$vmName = "MSEdge - Win10";
$hostName = "msedge.example.com";
I can then run hh.bat apply "example"
from that directory and the output will be something like:
Turning off 'MSEdge - Win10'...
Restoring 'MSEdge - Win10' to 'example'...
Turning on 'MSEdge - Win10'...
Waiting for 'MSEdge - Win10'...
Setting msedge.example.com -> 172.28.34.89