Windows 10 developer virtual machine

You probably know that you can download free developer tools for Windows 10 up at the Windows Dev Center here.

Visual Studio Community IS effectively the Pro SKU and is free for Open Source. You may even have a «Take Home» license at your work since the paid version of VS is licensed per-user, not per-machine, so ask your boss if you can install it at home and get the same pro tools you use at work.

BUT, did you know (I did not!) that you can download a free time-boxed Windows 10 Development environment for your Mac, Windows, or Linux machine as a virtual machine?

That means, there’s a pre-configured VM for VMWare or Hyper-V or VirtualBox or Parallels up at https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/ right now. This has been super useful when I wanted to get a build running fast on a system to test something or get started TODAY.

This evaluation virtual machine includes:

  • Windows 10, version 2004 (10.0.19041.0)
  • Windows 10 SDK, version 2004 (10.0.19041.0)
  • Visual Studio 2019 with the UWP, .NET desktop, and Azure workflows enabled and also includes the Windows Template Studio extension
  • Visual Studio Code
  • Windows Subsystem for Linux enabled with Ubuntu installed
  • Developer mode enabled

These are for eval or quick testing and expire regularly, so check back to get another if you need to. (BTW there are also free VMs for testing IE11 or Edge Legacy but we don’t talk about those.)

Free Windows 10 VMs

Again, VS Code is free for Windows, Mac, and Linux, and VS itself is free for Windows and Mac so you may not need these VMs, but knowing there are Windows developer VMs available free for eval is a super useful way to bootstrap development on any machine. Enjoy!


Sponsor: Have what it takes to code securely? Select from dozens of complimentary interactive secure coding labs, test your skills, and earn a badge. Learn more!

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook
twitter
subscribe
About   Newsletter

Hosting By
Hosted in an Azure App Service

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: Development VM, Hyper-V, Microsoft, Virtual Machine, Virtualization, Visual Studio, Visual Studio Code, VM, Windows, Windows 10. Developer Last modified: June 2, 2021

About the Author / Thomas Maurer

Thomas works as a Senior Cloud Advocate at Microsoft. He engages with the community and customers around the world to share his knowledge and collect feedback to improve the Azure cloud platform. Prior joining the Azure engineering team, Thomas was a Lead Architect and Microsoft MVP, to help architect, implement and promote Microsoft cloud technology.
 
If you want to know more about Thomas, check out his blog: www.thomasmaurer.ch and Twitter: www.twitter.com/thomasmaurer

Hyper-V is more known as a server virtualization technology; however, since Windows 8, it is also available in the client operating system. In Windows 10, Microsoft improved the experience drastically to make Hyper-V an excellent solution for developers and IT Pros.

 
Microsoft Hyper-V, codenamed Viridian, is a native (type 1) hypervisor that directly runs on the hardware, compared to VMware Workstation, VirtualBox, and other type 2 or hosted hypervisors. It was first released in Windows Server 2008, and it allows you to run virtual machines on x86-64 systems.

As mentioned, with Windows 10, Microsoft optimized Hyper-V for developers. Hyper-V allows developers to quickly spin up development virtual machines on Windows 10 with excellent performance, but it is also used in a couple of other development features as a back-end technology, like the Android Emulator, the Windows Subsystem for Linux 2 or Docker Containers. In this article, we will have a quick look at what Hyper-V on Windows 10 can over for developers.

Quick Create VM Gallery

First, let’s start with one of the essential features to create virtual machines. Now you can not only create Hyper-V virtual machines by installing them with an ISO file; you can use the Hyper-V Quick Create VM Gallery, to quickly create a new Windows 10 Development environment or even an Ubuntu virtual machine. It will download a pre-configured Hyper-V virtual machine with Windows 10 and the visual studio development environment or Ubuntu 18.04 or 19.04. If you want, you can also create your own Quick Create VM images and even share them with other developers.

Windows Subsystem for Linux 2 (WSL 2)

 
With the Windows Subsystem for Linux, did Microsoft bring a Linux environment to the Windows 10 desktop, and allows you to run a GNU/Linux environment — including most command-line tools, utilities, and applications — directly on Windows, unmodified, without the overhead of a full virtual machine. In the latest Windows, 10 Insider Preview builds, Microsoft released a preview of WSL 2. WSL 2 uses Hyper-V virtualization technology to isolate and virtualize WSL in the backend. This provides not just security benefits but also a huge performance boost. You can find more about the Windows Subsystem for Linux 2 on my blog.

Enhanced Session Mode to share devices with your virtual machine

 
One of the difficult parts in the past was the interaction between the virtual machine and the host machine. With the Enhanced Session Mode, Microsoft made it easy to copy-paste files between them and also allows you to map and share devices from the host with the virtual machine. This includes:

  • Makes virtual machines resizable and high DPI aware
  • Improves virtual machine integration
  • Allows device sharing

Enhanced session mode is enabled by default on Windows 10 Hyper-V, in Windows Server, you will need to enable that feature in the Hyper-V Settings. If you create your own Linux virtual machine, make sure you install the latest virtualization drivers.

Checkpoints

A huge benefit of virtualization is the ability to easily save the state of a virtual machine, which allows you to go back or forward at a specific point in time. In Hyper-V, this feature is called a virtual machine checkpoint, formerly known as a virtual machine snapshot.

Hyper-V knows to types of checkpoints:

  • Standard Checkpoints: takes a snapshot of the virtual machine and virtual machine memory state at the time the checkpoint is initiated.
  • Production Checkpoints: uses Volume Shadow Copy Service or File System Freeze on a Linux virtual machine to create a data-consistent backup of the virtual machine. No snapshot of the virtual machine memory state is taken.

 
The checkpoint type can be set by virtual machine. Both types of checkpoints have different advantages and disadvantages. In the latest versions of Hyper-V, production checkpoints are selected by default. However, you can easily change this using the Hyper-V Manager Settings or PowerShell. On my Windows 10 client machine, I prefer to use standard checkpoints, since it also saves the virtual machine memory state, however on production server systems I highly recommend to use production checkpoints, and even then you should be careful.

NAT Networking

 
One of the features which were very painful in the past was networking. With the introduction of the NAT switching option in the Hyper-V virtual switch, you can now easily connect all your virtual machines to the network your host is joined. On Windows 10, you will get a default switch to connect your virtual machines. If this is not enough or you want to leverage the NAT VM Switch on a Hyper-V server, you can use the following commands to create a VM switch and NAT rule.

You can read more about the Hyper-V NAT networking here.

Run Windows and Linux Containers on Windows 10

Containers are one of the hot technologies right now, with Docker Desktop for Windows you can run them on your Windows 10 machine. In the background, Windows uses Hyper-V technology to apply additional isolation between the container and the host operating system, so-called Hyper-V Containers. This feature also allows you to run Windows and Linux containers on Windows side by side, without the need of running a full Linux VM on Windows 10.

PowerShell Direct & HVC

If you want to interact with your virtual machine running on Windows 10, you can use the Hyper-V Manager and the console to interact with the operating system directly. However, there are also two other options that allow you to manage and access the VMs using the command line. PowerShell Direct lets you create a PowerShell remoting session to the virtual machine using the VM Bus, so no networking is required. The same applies to Linux virtual machines and the HVC tool, which allows you to create an SSH connection directly into the VM. Both options also allow you to copy files to and from virtual machines.

 
This is extremely handy if you set up some automation, and you need to run some commands within the virtual machine.

Windows Sandbox

 
Windows Sandbox is a new feature in Windows 10 and was released in version 1903. Windows Sandbox uses Hyper-V technology to provide you with a Windows 10 Sandbox. The Sandbox allows you to spin up an isolated, temporary, desktop environment where you can run untrusted software. The sandbox is great for demos, development, testing, troubleshooting, or if you are dealing with malware. If you close the sandbox, all the software with all its files and state are permanently deleted. It is a Windows 10 virtual machines, with the advantage that it is built into Windows 10, so it leverages the existing OS, which gives you faster startup, less footprint, better efficiency, and easier handling, without losing security.

The Windows Sandbox experience can also be customized with configuration files. So, you can add additional software and tools to your Windows Sandbox. You can read more about Windows Sandbox and how you create the configuration files here.

Windows Defender Application Guard

 
This one might be not directly development related. However, I think we all have been here. We see a link, and we are not sure if this is a trusted site or if it is a malicious website. With Windows Defender Application Guard, we get an isolated browser, which protects us from malicious websites and software. If a user goes to an untrusted site through either Microsoft Edge or Internet Explorer, Microsoft Edge opens the site in an isolated Hyper-V-enabled container, which is separate from the host operating system.

You can enable Windows Defender Application Guard on Windows 10, using the following steps.

Hyper-V Battery Pass-through

 
This feature is more about convenience. If you are working and develop inside a virtual machine and you are running this virtual machine console in full-screen mode, you might not notice when your notebook runs out of battery. With the Battery Pass-through feature, the guest operating system inside the virtual machine knows about the battery status. The Hyper-V Virtual Battery feature is enabled by default and works with Windows and Linux virtual machines.

Nested Virtualization

 
Nested Virtualization lets you run virtualization in a virtual machine, basically like inception for virtual machines. With Hyper-V, you can run Hyper-V within a Hyper-V virtual machine. This is interesting for a couple of different scenarios. First, you can create a virtual Hyper-V host for testing and labs, or you even more important, you can run Hyper-V Containers or Windows Sandbox within a virtual machine. And another great thing about Nested Virtualization, it also works with virtual machines in Microsoft Azure.

To enable nested virtualization within a Hyper-V, you basically can follow this guide.

Visual Studio Emulator for Android

If you are using Visual Studio to build Android applications, I am sure you already used the Visual Studio Emulator for Android. This enables developers to use a hardware accelerated Android emulator, without needing to switch to Intel’s HAXM hypervisor, which gives them even more performance and speed.

How to set up Hyper-V on Windows 10

Now, as you can see, Hyper-V is a great developer tool and used for many different features. To Install Hyper-V, you have to check for the following requirements on your machine:

  • 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.

For more information and troubleshooting, see Windows 10 Hyper-V System Requirements.
If you want to enable and install Hyper-V on Windows 10, you can run the following PowerShell command.

 
For more information on how you can install Hyper-V on Windows 10, you can check the following Microsoft Docs.

I hope this gives you an overview of why Hyper-V is great for developers and enables a lot of different features. If you have any questions, please leave a comment.

News

Use VMs for Windows 10 Development

Microsoft is making it so much more convenient for developers to get hands-on experience building Windows 10- and UWP-based apps — via preconfigured Windows 10-based virtual machines.

Microsoft is making it so much more convenient for developers to get their hands dirty building Windows 10- and UWP-based apps without having to do lots of hardware and software acquisition and configuration. Instead, the company now has Windows 10 environments preconfigured for use on virtual machine environments.

«Last year, we released the evaluation VMs and we took the feedback to heart that you wanted a fully configured Windows 10 development environment that won’t expire,» said Clint Rutkas, a Microsoft Program Manager, in a blog post on the Windows Developer site.

As Rutkas notes, the evaluation version with the expiration date is still available (and currently, any VMs spun up with this version will stop being accessible after Oct. 31), but the addition of a non-expiring Professional VM that comes with a full compliment of Windows 10 developer tools is what’s new. The Pro version requires a Windows 10 Professional license key to use it; a single-use license can be obtained in the Microsoft Store.

The VMs are available for installation on four different VM environments: Microsoft’s own Hyper-V, VMware, VirtualBox, and Parallels.

With either version, developers gain access to the following platforms and tools:

  • Windows 10 Pro, Version 1607
  • Visual Studio 2015 Community Update 3 Build 14.0.25425.01
  • Windows Developer SDK and Tools Build 14393
  • Microsoft Azure SDK for .NET Build 2.9.5
  • Windows Bridge for iOS Build 0.2.160914
  • Windows UWP Samples September 2016
  • Windows Bridge for iOS Samples
  • Bash on Ubuntu for Windows

In addition, these tools are also available in their VM form via the Azure portal.

About the Author


Michael Domingo is a long-time software publishing veteran, having started up and managed several developer publications for the Clipper compiler, Microsoft Access, and Visual Basic. He’s also managed IT pubs for 1105 Media, including Microsoft Certified Professional Magazine and Virtualization Review before landing his current gig as Visual Studio Magazine Editor in Chief. Besides his publishing life, he’s a professional photographer, whose work can be found by Googling domingophoto.

comments powered by

Featured

  • New .NET MAUI Docs Detail How to Migrate from Xamarin.Forms

    Standing for .NET Multi-platform App UI, .NET MAUI has been described by the company as the «evolution of Xamarin.Forms» with said evolution including the ability to create desktop apps in addition to the traditional mobile targets of Xamarin, iOS and Android.

  • C# Dev Kit Goes GA with Same Licensing as Visual Studio Community Edition

    Microsoft announced the general availability of its C# Dev Kit, a Visual Studio Code extension that adds functionality missing in an existing C# tool — functionality that comes with for-pay licensing for organizations.

  • How AI Boosts Microsoft’s Low-Code Power Platform

    Microsoft detailed how a Copilot AI assistant and other advanced tech serves to bolster its low-code Power Platform, which includes components to help «ordinary business users» or «citizen developers» create applications, web sites and more.

  • Syncfusion Update Improves Cross-Platform Development with .NET MAUI, Blazor

    Third-party dev toolmaker Syncfusion updated its flagship .NET-based offering with new functionality for cross-platform development.


Please type the letters/numbers you see above.

garrick


  • #2

«Заданный промежуток времени»

как всегда 30 дней

? Посмотрел лицензию — расщедрились, аж целых 60!
Задолбаешся переустанавливать и перенастраивать каждый раз, Linux дешевле обойдётся.

MLNK

MLNK

Mod. Ethical Hacking


  • #3

«Заданный промежуток времени»

как всегда 30 дней

? Посмотрел лицензию — расщедрились, аж целых 60!
Задолбаешся переустанавливать и перенастраивать каждый раз, Linux дешевле обойдётся.

ну для работы можно настроить и посмотоянну, этоже больше для тестов. ибо в наше время скачать 20 гб быстрее чем поставить винду, студию и все апдейты

garrick


  • #4

ну для работы можно настроить и посмотоянну, этоже больше для тестов. ибо в наше время скачать 20 гб быстрее чем поставить винду, студию и все апдейты

А зачем для тестов Visual Studio и SDK? По-моему, этот набор как раз для разработки. Для каких-нибудь учебных классов сгодится — выполнили студенты курс практических занятий и поудаляли всё нафиг. Я правильно понял, что повторно эту сборку Винды использовать нельзя, надо качать новую? Это неправильно. Если не С#, я бы с этой штукой связываться не стал.

Langolier


  • #5

Задолбаешся переустанавливать и перенастраивать каждый раз, Linux дешевле обойдётся.

Вовсе не нужно каждый раз переустанавливать операционную систему, когда срок активации заканчивается.
Достаточно активировать её (windows).
Для Windows давно придуманы активаторы — это бесплатно и не лишает систему никаких возможностей: работают обновления и всё-всё-всё.
Или вы боитесь закон преступить ? Не пойму.

Кроме того, вовсе не нужно её переустанавливать !
Я пользуюсь универсальным активатором KMSAuto Net.

LJ9YHawYsCx4LzmeRNLXOoeA6C2d06.png

Это — один небольшой исполняемый файл, который способен активировать ЛЮБУЮ версию «окон», а также любую версию офисного пакета, если таковой установлен в системе.
Антивирусы ругаются на активатор, но никакого вируса там нет — проверено временем.
Ну а как-же вы хотели? Это-ж «халява» )) Вот и ругаются антивирусы ))

Установив любую версию «форточек» в виртуальную среду можно её активировать и установить любые приложения, дополнения и внести любые изменения.
Затем попросту можно сделать архивную копию виртуальной ОС и в случае краха или захламлённости оригинальной системы — восстанавливать её из архива.

1gNg7xfH5NjAZ5TlWH8Iquq4AMumtG.png

Последнее редактирование модератором:

MLNK

MLNK

Mod. Ethical Hacking


  • #6

Вовсе не нужно каждый раз переустанавливать операционную систему, когда срок активации заканчивается.
Достаточно активировать её (windows).
Для Windows давно придуманы активаторы — это бесплатно и не лишает систему никаких возможностей: работают обновления и всё-всё-всё.
Или вы боитесь закон преступить ? Не пойму.

Кроме того, вовсе не нужно её переустанавливать !
Я пользуюсь универсальным активатором KMSAuto Net.

LJ9YHawYsCx4LzmeRNLXOoeA6C2d06.png

Это — один небольшой исполняемый файл, который способен активировать ЛЮБУЮ версию «окон», а также любую версию офисного пакета, если таковой установлен в системе.
Антивирусы ругаются на активатор, но никакого вируса там нет — проверено временем.
Ну а как-же вы хотели? Это-ж «халява» )) Вот и ругаются антивирусы ))

Установив любую версию «форточек» в виртуальную среду можно её активировать и установить любые приложения, дополнения и внести любые изменения.
Затем попросту можно сделать архивную копию виртуальной ОС и в случае краха или захламлённости оригинальной системы — восстанавливать её из архива.

1gNg7xfH5NjAZ5TlWH8Iquq4AMumtG.png

если дома и только для себя то ок. но в офице или на фирме такое не прокатит. слишком большие риски.

  • #7

автор человечище — спасибо, удружил, а то тут срочно винда понадобилась в виртуалке, а на трекерах кроме малварей нехрена нет.

Bypass


  • #8

автор человечище — спасибо, удружил, а то тут срочно винда понадобилась в виртуалке, а на трекерах кроме малварей нехрена нет.

на трекерах есть чистые оф образы с хеш суммами, ты наверно не на тех трекерах тусуешь )

  • #9

на трекерах есть чистые оф образы с хеш суммами, ты наверно не на тех трекерах тусуешь )

вчера минут сорок искал на рутрекере — одни трояны. плюнул

Bypass


  • #10

вчера минут сорок искал на рутрекере — одни трояны. плюнул

Ссылка скрыта от гостей

или вот есть

Ссылка скрыта от гостей

— это команда, создавшая сервис, позволяющий скачивать MSDN образы напрямую с серверов M$, не имея учетной записи MSDN.
качай, суммы проверей, наслаждайся.
кста для заметки, WZT давно уже выкладывает оригинальные образы раньше чем майкросы )

Последнее редактирование:

  • #11

Ссылка скрыта от гостей

или вот есть

Ссылка скрыта от гостей

— это команда, создавшая сервис, позволяющий скачивать MSDN образы напрямую с серверов M$, не имея учетной записи MSDN.
качай, суммы проверей, наслаждайся.
кста для заметки, WZT давно уже выкладывает оригинальные образы раньше чем майкросы )

2018-10-16_111841.png

Ни знаешь для чего перезаливают? ))))

Bypass


  • #12

Посмотреть вложение 22825
Ни знаешь для чего перезаливают? ))))

знаю,так как вышли обновы, залит новый образ с

Ссылка скрыта от гостей

.

Последнее редактирование:

  • Windows 10 create restore point
  • Windows 10 defender disable tool
  • Windows 10 create media tools
  • Windows 10 corporate ltsc скачать
  • Windows 10 desktop not showing