Ubuntu 20.04 Virtual Machine with Hyper-V

I mainly followed the following article, but wanted to capture some notes on two things that caught me up:

1. Secure Boot must be disabled.

2. Changing the resolution can be done inside the Ubuntu Virtual Machine's grub settings.

Main Article I followed

How to install Ubuntu 20.04 on Hyper-V with enhanced session, by Francesco Tonini on Apr 27, 2020

Secure Boot

The important thing is to remember to turn off Secure Boot

Picture of Hyper-V Manager pointing to Virtual Machine Settings Link Hyper-V Virtual Machine Settings Page with arrow pointing to the settings sub-menu which shows the checkbox to toggle to enable or diasable Secure Boot. We want it disabled.

Changing the resolution

This unfortunately isn't made very simple but this guide did it for me.

How To Change the Resolution of an Ubuntu Hyper-V Virtual Machine, by Elias Khnaser on 09/29/2014 at 1:28 PM

I've made an ansible role for this that in included in my preferred post-install setup.

See below!


Ansible roles and Makefiles to configure my Ubuntu LTS based terminals, virtual machines, and desktops

It makes it easy to setup my desktop exactly how I want it, so I can get right back to whatever I need to be doing!

Ansible Playbook to configure my laptops and desktops

I care about not having to think too much about my setup between machines.

Especially when I want to get right to work.

For that reason, it is very comfortable for me to have the same base configuration on each machine (look, feel, keyboard shortcuts, core software, etc.).

My journey to the current state of this repo

  • I found a cool bash script on the internet (I didn't understand most of it) 🤷
  • I modified cool bash script for my needs and it worked! 🚀
  • I learned about Makefiles. 😄
  • I proceeded to do everything with Makefiles. 🤩🤩🤩
  • I got tired of running successive Make targets over and again 😐.
  • I used Ansible at work and decided to take a course to learn more about it. 🤓
  • I put off actually taking the plunge to use Ansible. 🕒🕕🕘🕛
  • I finally took the plunge and decided to use Ansible for my configuration. ✔️

I've aligned ansible tags/roles around my common use cases: