Install Ubuntu 20.04 LTS on Windows 11 Pro Hyper-V VM with UEFI BIOS and Secure Boot MOK Full Screen
Detailed written instructions are available here:
https://dellwindowsreinstallationguide.com/ubuntu-20-04-lts-hyper-v/
To Enable the optional feature Hyper-V open the Windows Terminal (Admin) and type in:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
To restart when prompted type in:
y
Note Hyper-V is a feature only available for Windows 10/11 Pro/Education and not available for Windows 10/11 Home.
Download the Ubuntu 20.04 ISO (the ISO needs Update 1 or later as the original Ubuntu 20.04 does not pass a UEFI BIOS with Secure Boot due to the 2020 GRUB2 Security Exploit Patch, subsequent ISOs are updated). These instructions should also work with other Linux distros which support Secure Boot with a Machine Owner Key such as Mint 20.2, Zorin OS 16 Beta and DeepIn 20.2.2. It will also work with Fedora 34 and KDE Neon (although these distros don't configure a Machine Owner Key to install multimedia codecs).
Create a new virtual machine that is Generation 2, has 2-4 GB of memory, a default switch for networking, the default virtual hard disk settings and installs the media from the Ubuntu 20.04 ISO.
Right click the VM and select Settings. Go to Security and change the Template to Microsoft UEFI Certificate Authority and Enable the Trusted Platform Module. Select Apply. Change the number of Processor Cores to 2 (or more depending on how many Processor Cores you have). Select Apply. Then go to Integration Services and check Guest Services. Select Apply.
Right click the VM and select Connect. Then select Action and Start. Install Ubuntu as normal ensure you select Install Third-Party Software Graphics and Wi-Fi Hardware Additional Media Formats to create a Machine Owner Key (MOK). When Ubuntu is installed, enroll the MOK to the Virtual UEFI BIOS MOK.
Finally we need to make the Virtual Machine full screen. Open up the terminal and type in the following command:
sudo nano /etc/default/grub
Then update the line to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"
Press [Ctrl] + [x] to exit and then [y] to save and [Enter] to overwrite the original file. Next to update the grub bootloader type in:
sudo update-grub
Then to reboot type in:
sudo reboot
The VM should start full screen (maximise it to display it full screen on your Host PC).
#Ubuntu #Hyper-V #VirtualMachine