Absurd: Creating a Linux VM in HyperV


While I typically prefer to run Linux, I do find myself needing to run Windows on occasion, and while WSL is great, it often isn't entirely adequate. In such situations, Microsoft's Hyper-V is available. To install Hyper-V, you need only go to Control Panel -> Programs and Features -> Turn Windows features on or off and then check the box next to Hyper-V. This will install the hypervisor, and you should now find the Hyper-V Manager in Windows Tools.

The next step for us is to open Hyper-V Manager.

Hyper-V Manager

Your computer's name should be listed on the left. Click it. You'll then have a menu on the right-hand side of the window, and you should see an entry in that menu that says Hyper-V Switch Manager. Click that.

Hyper-V Manager with computer clicked

This will open a window where you'll have a menu on the left-hand side of the window with an entry of New virtual network switch. Click that.

Virtual switch manager

You will then have the option to create a new switch, and we will want a type of External.

Create a new switch

Now, you need to provide a name for the switch, then set the network adapter. When you're done here, click apply.

Back on the main Hyper-V Manager screen, click Quick create.... This will give you the option to create your new virtual machine.

Create Virtual Machine

This screen is nice, but I have little interest in either a Windows or an Ubuntu virtual machine. I clicked Local installation source, and I navigated to my downloads folder to select an ISO.

Create Virtual Machine with customizations

Here, I also deselected the checkbox for This virtual machine will run Windows, because mine will be running Slackware. I then clicked the dropdown for more options, because I needed to select the network switch created earlier. With that stuff complete, I clicked Create Virtual Machine.

Virtual machine created

On this screen, I clicked Edit settings.... Even should you not intend to edit anything, it's worth clicking to inspect what settings were chosen.

edit settings

You can change any of these settings as you'd like. For myself, the primary change was to memory. I doubled the standard 4GB to 8GB. Otherwise, these choices were adequate. When you're done, you should click Connect.

Virtual machine is off

You should be presented with a window that shows the state of the machine as off. Click start.

Virtual machine booting

Most of you will not have chosen Slackware, but this is the expected boot screen for install disc.

Virtual machine showing lsblk

So, after the install disc booted, I can see that I have the expected hard disk and the DVD-ROM drive.

Virtual machine showing network

And with a few commands, we can see that networking is functional.

⇠ back

© MMXXIV, Abort Retry Fail LLC
Licentiam Absurdum