Windows 10 development virtual machine VM

Written by 1:34 pm Microsoft, PowerShell, Visual Studio, Visual Studio Code, Windows • 4 Comments

Create a Windows 10 development virtual machine

If you want to create a Windows 10 development virtual machine (VM) on your Windows 10 device, Microsoft Hyper-V with the quick start gallery has you covered. So in this blog, we are going to have a look at how you can create a Windows 10 development virtual machine VM) on Windows 10. These are some easy and simple steps to automatically download and create your Windows 10 dev VM.

Microsoft offers a Windows 10 development VM which includes a preinstalled version of Windows 10 with Windows 10 SDK, Visual Studio 2019 (with the UWP, .NET desktop, and Azure workflows enabled and also includes the Windows Template Studio extension), Visual Studio Code, the Windows Subsystem for Linux, Developer mode enabled, and much more.

If you are running Windows 10 on you laptop, you can easily do all of this using Hyper-V and build-in tools. If you want to run this development virtual machine on different virtualization software options like VMware, VirtualBox, and Parallels, check out my links below.

If you want to learn more about how Hyper-V can empower developers, check out my blog post Hyper-V for Developers.

Create a Windows 10 development virtual machine using Hyper-V

To get started you will need to enable Hyper-V on your Windows 10 machine. The Hyper-V feature has a couple of prerequisites:

  • Windows 10 Enterprise, Pro, or Education
  • 64-bit Processor with Second Level Address Translation (SLAT).
  • CPU support for VM Monitor Mode Extension (VT-c on Intel CPUs).
  • Minimum of 4 GB memory.

The Hyper-V role cannot be installed on Windows 10 Home. Upgrade from Windows 10 Home edition to Windows 10 Pro by opening up Settings > Update and Security > Activation.

For more information and troubleshooting, see Windows 10 Hyper-V System Requirements.

To enabled Hyper-V on Windows 10 open up PowerShell as Administrator and run the following command:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

After that your computer will ask you to reboot.

Now you can open the Hyper-V Manager from the startmenu and on the right you can click on “Quick Create…“.

Create a Windows 10 development virtual machine
Create a Windows 10 development virtual machine

Here you can find a couple of free images you can use like Ubuntu Hyper-V Images and more. It also includes the Windows 10 dev environment VM. Select the Windows 10 dev VM and click on Create Virtual Machine. This will download the image and create the virtual machine.

Download Windows 10 dev environment VM
Download Windows 10 dev environment VM

After the VM is successfully created, you can start the VM by clicking Connect, or first edit the settings.

Virtual machine created successfully
Virtual machine created successfully

Since Windows 10 is running inside a virtual machine, by default you will be using the Windows Subsystem for Linux version 1. If you want to use the WSL 2 (Windows Subsystem for Linux 2) inside the Windows 10 dev virtual machine, you will need to enable nested virtualization on your Hyper-V machine.

Run this command as Administrator in PowerShell on the Windows 10 machine (not inside the virtual machine).

Set-VMProcessor -VMName "Windows 10 dev environment" -ExposeVirtualizationExtensions $true
Set-VMNetworkAdapter -VMName "Windows 10 dev environment" -MacAddressSpoofing On

You will need to run these commands while the virtual machine is still turned off.

Now you can start using your Windows 10 development virtual machine. With enhanced session mode on, you can also easily copy-paste files between the Windows 10 host and the VM.

Windows 10 development virtual machine VM
Windows 10 development virtual machine VM

Create a Windows 10 development virtual machine on VMware, VirtualBox, or Parallels

If you want to run your Windows 10 dev VM on VMware, VirtualBox, or Parallels, you can download images on the following website.

Conclusion

I hope this blog post was helpful. If you have any questions, feel free to leave a comment below. If you want to learn more about how Hyper-V can empower developers, check out my blog post Hyper-V for Developers.

Tags: , , , , , , , , , Last modified: June 2, 2021
Close Search Window
Close