This script will help prepare your template virtual machine for a classroom lab to use Hyper-V nested virtualization.
- Script must be executed using administrator privileges.
- If running this script on a client O.S. like Windows 10 which does not support DHCP Server, use the "Default Switch" in the network settings.
- Connect to template machine for your class.
- Clone repository or download files in this folder onto the template machine.
- Open a PowerShell window. Make sure that the window notes it is running under administrator privileges.
- Run
SetupForNestedVirtualization.ps1
. - The script may ask you to restart the machine and re-run it. A note that the script is completed will show if no further action is needed.