In this article, we will examine how to set up Windows 10 on a new virtual machine using Hyper-V virtualization software, which is widely used in Microsoft’s Windows and Server systems.
How to Install Windows 10 on a Virtual Machine using Hyper-V
Thanks to Hyper-V software, you can easily install and use both Windows and Linux-based operating systems on your physical computer that supports virtualization. All operations on the virtual machines you create are independent of your host computer, so you can make any changes you want without damaging the system files.
Compared to other virtualization programs, Microsoft Hyper-V Client is virtualization software that uses hardware resources most efficiently and offers advanced performance for guest operating systems. It has the Hypervisor system that manages the hardware devices of virtual computers running on the host computer or Windows server well.
This virtualization program is built into Windows operating systems and is not enabled by default. However, you can install it on your computer using the Turn Windows Features On or Off tool from the control panel.
How to Create a New Virtual Machine for Windows 10
In order to use the Windows 10 operating system virtually on your computer, you must first prepare a virtual PC with the correct settings.
After installing Hyper-V, you need to create a new External Switch using Virtual Switch Manager to connect guest systems to your local network or the Internet. This software has a Default Switch adapter that uses NAT connection to access the network, but in most cases, it will be healthier to use External Switch as it causes network problems.
Before starting the virtual machine creation steps, open the Virtual Switch Manager and select the New virtual network switch option. Next, select the Internal or External virtual switch type you will create and click the Create Virtual Switch button.
After creating the external virtual switch, select the Ethernet or Wi-Fi adapter of your physical computer connected to the network from the External Network section and click OK. While the new virtual switch is being created, your network connection may be interrupted for a short time because your host computer’s network adapter will be configured.
After creating the External Switch, click Action / New / Virtual Machine on Hyper-V Manager.
To create a new virtual machine with default settings, you can directly click the Finish button or choose to create a custom VM by continuing with Next. In order not to display the Before You Begin window again, check Do not show this page again and click Next to create a custom VM.
Type the name of the Windows operating system, check the Backup virtual machine’s files in an external location option, and select your external SSD or NVMe disk via Browse.
If the capacity of your host disk is 1 TB or 2 TB, you can choose to backup in the default location.
In this window, you can select Generation 1, which supports BIOS firmware for legacy systems, or Generation 2, which supports UEFI-based firmware supporting newer systems.
Since installing UEFI-supported Windows is recommended for both security and performance, select Generation 2 and click Next.
To assign a RAM size for the Windows 10 VM according to the RAM capacity of your host computer, type 4096 MB (4 GB) or higher in the Startup Memory section.
Here, you can additionally enable the Dynamic Memory feature to automatically increase the RAM size by the program in case the VM needs more memory. You can configure the maximum RAM size to be used from the host in the Dynamic Memory settings of the VM.
This feature is especially useful if you are running multiple virtual computers. Otherwise, you will use only one VM in your system, it would be better to assign a memory value of 4 GB.
Select the External virtual network adapter you created using the Virtual Switch Manager tool.
In this window, you can see that the location where you will backup the virtual PC and the location where the virtual disk will be backed up are the same. If you choose to back up only the virtual disks on an external storage device, you can change the location of the virtual disk.
The maximum virtual HDD capacity for the Windows 10 VM is 127GB, but if you want to specify a smaller size, you can change it in the Size section.
To add the Windows 10 ISO file to the VM in the setup options settings, enable the Bootable Image File option and click the Browse button to select the image file you downloaded to your computer.
After checking the settings you made in the summary window in the last step of the virtual machine wizard, click Finish.
The virtual computer you created will appear in the Virtual Machines section. Here, to set some settings of the VM first, right-click on it and click Settings.
Click the Processor hardware in the settings of the Windows 10 virtual PC and increase the number of virtual processors according to the characteristics of your host CPU.
Finally, first, connect to the guest system to start the Windows 10 VM.
After connecting to the guest operating system, you can run the VM by clicking the Start button from the tool menu.
How to Install Windows 10
After creating the Windows virtual PC and configuring its settings, you will now follow the same steps on the VM as if you were installing the system on a physical computer.
After starting the virtual computer, press any key on your keyboard to start the installation with the ISO image mounted on the CD/DVD device.
Set the display language, time and region settings, and keyboard layout you want to use on the Windows 10 setup screen and click Next.
Click the Install Now button on the setup screen to start installing Windows 10 in Hyper-V.
If you have previously purchased a Windows 10 product key and would prefer to use that key in the VM, type in your license key and click Next. If you are going to use the VM for testing purposes only, click I don’t have a product key.
You need to choose one of the Home, Home N, Home Single Language, Education, Education N, Pro, or Pro N editions of Windows 10. Select the most commonly used Pro version on PCs and click Next.
To accept the Microsoft software license terms, check I accept the license terms and click Next.
Since you have installed Windows from scratch and you cannot continue with the Upgrade option on this screen, just click on the Install Windows option.
You need to create a new partition on the disk where you want to install Windows. To configure the disk with a capacity of 50 GB, click the New button, then the Apply button, and then click OK in the information window informing that additional spaces can be created.
After creating a new partition on the virtual disk, select the Primary type Drive 0 Partition 3 and click Next to start the Windows installation.
Wait while the Windows installation files are being prepared. The time to copy system files may vary depending on the hardware performance of your host computer, so wait a bit.
To configure the region settings of your system, select the country you live in and click Yes.
You must also select your host computer’s keyboard layout in the system setup. If you want to use a different layout on your system, you can add a second keyboard layout in the next step.
If you prefer to add a second keyboard layout, you can click the Add Layout button. Click Skip if you want to use the keyboard layout you selected in the previous step.
If you are going to use your virtual machine in a domain environment, you can continue with the Organization option and make your settings. However, if you are going to configure it for personal use, select Personal and click Next.
At this stage, you will be asked to enter a Microsoft account. If you don’t want to log into the VM online, you should click Offline Account.
The setup wizard will offer you the benefits of logging in with the online account again. To continue creating an offline account, click Limited Experience.
If you decide to open an online account instead of using an offline account at this step, you can click Or, even better, use an online account to return to the previous settings. To create an offline account, type a new user account name that you will use on the virtual PC and click Next.
If you do not want anyone else to access your guest operating system, you can create a memorable password.
If you prefer to send reports containing an advertisement, location, or error data to Windows 10, click Accept.
Microsoft analyzes your location information, typing, or search history to improve your system experience, allowing you to get better results through Cortana. If you want to enable Cortana in the VM, you can click Accept or click Learn More for more information.
After configuring the necessary settings, your virtual system will be ready in a few minutes. Do not turn off your VM and wait while the setup wizard configures the final settings for your system.
After the final settings are configured, you need to do Display Configuration to connect to the VM. So you can configure the screen resolution of the VM on your host machine as you want.
After choosing the screen resolution, you will be able to access the Windows 10 desktop environment. You can find out the version of the system you have installed by executing the winver command in the Run window.
How to Check Internet Connection
One of the first things you should do after installing Windows 10 on the VM is to test the local network and Internet connection. After testing your network connection, you can start making the changes you want to your system.
To test the internet connection, right-click on the start menu, open Command Prompt (CMD), and test your connection by pinging Google servers by executing the ping 188.8.131.52 command.
If you get results like the image below, that is, if you get TTL (Time-to-Live) values, you can understand that there is no problem with your Internet connection.
Open the Microsoft Edge browser and check that you can access the Google homepage.
How to Use USB Flash Memory in Virtual Machine
Using USB flash memory in VMs on Hyper-V can be solved with a very simple method. To do this, you must first plug a flash drive into your host’s USB 3.0/3.1 port and then configure local resources when connecting to the VM.
Plug a USB memory into your host computer and then connect to your virtual computer in Hyper-V. Then, when the screen configuration window opens, click Show Options.
In the Local Resources tab, under Drives, tick your flash drive and click OK.
Under My Computer / Redirected drives and folders, you can now see the USB stick you have plugged into your physical computer.
You can also see all the files or folders that you have copied into the flash memory on the virtual PC on the host. Thus, you can transfer data between the host and the VM more easily.
♦ How to Install Windows XP in Hyper-V
♦ How to Install Windows 7 in Hyper-V
♦ How to Install Windows 8 in Hyper-V
♦ How to Install Ubuntu in Hyper-V
♦ How to Install Windows Vista in Hyper-V