Introducing

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

Windows 10 Hyper-V Manager Secure Boot 1

Windows 10 Hyper-V Manager Secure Boot 2

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!


ubuntu-dev-playbook

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. ✔️

Supported Ubuntu LTS Versions

I will support the LTS versions I use. There are no plans to support non-LTS versions.

LTS Last Supported Branch/Tag
Ubuntu 20.04 main
Ubuntu 18.04 2020.1.0

Ansible Galaxy Roles

There is broader LTS and Distribution support in the following roles:

Role Description
iancleary.docker Installs Docker and Docker-compose
iancleary.zsh Installs Zsh, oh-my-zsh plugin manager, and adds ~/.zshrc_aliases
iancleary.github_cli Installs the GitHub CLI.
iancleary.yadm Installs the yadm dotfile manager

Use Cases


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

📚 Back to Blog Back to Top 🔝