Introduction
This walkthrough is meant to document how I managed to configure my instance of Hyper-V to stand up Ubuntu 16 using the Generation 2 option. I ran into an issue half way through the process that prevented me progressing past secure boot. I could get the VM to boot in Generation 1 but had to go through the whole installation process from the beginning.
Things you will need
- An iso of Ubuntu 16
- a computer with Hyper-V installed
- Powershell
How to to begin
- Set up your Virtual Switch
- Choose either an internal switch or an external switch
- Setting up your Hyper-V instance
- Name your instance and pick where you want to store your VM
- Select generation 2
- Choose start up memory
- Select your recently created Switch
- Create a hard disk
- Select your Ubuntu 16 OS
- Finish
- Making sure It can Boot
- Open powershell
- `Set-VMFirmware -VMName “Your-Computer-Name-Here” -EnableSecureBoot off
- Your Gen 2 Ubuntu 16 VM should boot now