Jump to content

How to Create a Windows-7 Virtual Machine with Hyper-V

mesin virtual windows-7 di Hyper-V
5
(5)

For those of you who have a computer with the Windows-10 or Windows-11 operating system, You can create a Windows-7 virtual machine using Hyper-V. Each virtual machine acts like a complete computer.

With Hyper-V you can run operating systems and programs, and can run more than one virtual machine on the same hardware at the same time.

In this tutorial, I will demonstrate step by step how to create a Windows-7 virtual machine using Hyper-V Manager in Windows 10.

What is Hyper-V?

Hyper-V is a hardware virtualization product created by Microsoft which functions to create and run versions of computer software, which is called a virtual computer. More about Hyper-V

With Hyper-V you can install and run other operating systems such as Windows 7 on your computer so it's as if you have two different computers. Hyper-V is even capable of running non-Windows operating systems. you can create a CentOS-7 virtual machine with Hyper-V.

Preparation

Several requirements must be met to create a Windows-7 virtual machine using Hyper-V

Condition:

  1. Windows 10/11 Enterprise, Pro, or Education
  2. 64-bit processor withSecond Level Address Translation (SLAT).
  3. CPU support for VM Monitor Mode Extension (VT-c on Intel CPUs).
  4. Minimum memory 4GB
  5. Minimum free storage space is 40GB
  6. Activate Hyper-V.  You can read the guide how to enable Hyper-V.
  7. File ISO Image (.iso) from the Windows-7 Operating System installation DVD

Creating a Windows-7 Virtual Machine

The easiest step to create a virtual machine in Hyper-V is to use the Virtual Machine Wizard.

1. Using the Virtual Machine Wizard.

To use the Virtual Machine Wizard, do the following steps:

  • Open Hyper-V Manager, if you can't find it on Start Menu try to find it via the search feature on Taskbar, click the search icon then type Hyper-V
  • On Hyper-V Manager, in section Action, click New -> Virtual Machine, window New Virtual Machine Wizard will open.
Hyper-V Manager
Hyper-V Manager
  • The first appearance of the Virtual Machine Wizard, You need to make some settings, for click Next
Virtual Machine Wizard
Virtual Machine Wizard

2. Specifies the Name and Location of the Virtual Machine.

In this section you are asked to specify the name and location of the virtual machine, let's do the following steps:

  • On the field Name, type a name for the virtual machine (Red box), example: Windows-7 

Notes: by default the virtual machine will be created on-premisesC:\ProgramDataMicrosoftWindowsHyper-V (green box)

  • If you don't want to change the location of the virtual machine, click Nextto continue.
menentukan nama mesin virtual
Specifies the Name and Location of the Virtual Machine
  • If you want to choose a different location, select Store the virtual machine in a different locatioan, then select the location via the button Browse
  • Click Next to continue
pilih lokasi mesin virtual
Specifies the Name and Location of a different Virtual Machine

3. Selecting a Virtual Machine Generation

Windows-7 can only be run with next-generation virtual machines 1, for:

  • Select Generation 1
  • Then click Next to continue
pilih Generasi Mesin virtual
Select the virtual machine generation

4. Determining the Virtual Machine Memory Size

Just like a normal computer machine, Virtual computers also need memory to work. Therefore you need to determine how much memory you allocate to the virtual machine.

Keep in mind that the size you set will increase the size of your computer's physical memory when you run the virtual machine.

For the next step, do the following:

  • On the field Startup memory, Enter the desired number of MB, for Windows-7 the minimum is 1GB or 1024MB, maybe more if your physical computer memory is large enough.
  • Select Use Dynamic Memory
  • Click Next
menentukan ukuran Memori mesin virtual
Determines the memory size

5. Configuring Virtual Machine Networking

In this section you can immediately proceed to the next stage because currently the virtual machine connection is set to not be connected to the network.

This step was selected because you have not yet created one virtual switch, and this is useless if you don't want the virtual machine to connect to the network. If you want the virtual machine to connect to the network, see section Connecting Virtual Machines to the Network.

  • Click Next to continue.
Konfigurasi Jaringan mesin virtual
Network configuration

6. Connecting a Virtual Hard Disk

If you don't have a virtual hard disk then you need to create a virtual hard disk because that is where the operating system will be installed, to create a virtual hard disk select Create a virtual hard disk.

  1. On the field Name, type a name for the virtual hard disk.
  2. On Location determine the desired location, In this practice, I chose the same location as the virtual machine location, namely partition D:\
  3. On the field Size, fill in the appropriate size, minimum is 20GB
  4. Then click Next to continue
Membuat hard-disk virtual
Create a virtual hard disk

7. Determining Installation Options

In the preparation section we have made ISO Image (.iso), then we will use it in the installation options. Do the following steps:

  1. Select Install an operating system from a bootable CD/DVD-ROM
  2. Select Image file(.iso) which had been prepared beforehand, then select the location where the installation file is located via the button Browse
  3. Click Next to continue
Menentukan pilihan instalasi
Determine installation options

8. Completing Virtual Machine Creation

Here is a summary of virtual machines. The next step is Connecting Virtual Machines to the Network or you can also jump to a section Running a Virtual Machine if the virtual machine does not need to be connected to the network.

  • Virtual machine creation is complete. Click Finish
Ringkasan Mesin Vertual
Vertical Machine Summary

Connecting Virtual Machines to the Network

1. Virtual Switch Manager

  • Back to Hyper-V Manager, then on section Action, select Virtual Switch Manager
Membuka pengelola jaringan virtual
Opens virtual network manager

2. Creating a New Virtual Switch

  1. In section Virtual Switches, click New virtual network switch
  2. In section Create virtual switch, click External
  3. Then click the button Create Virtual Switch
Membuat Virtual Switch
Creating Virtual Switches
  1. On the field Name, type a name for Virtual Switch, example: V_LAN
  2. On Connection type, select External network, select an available network device, then click Allow management operating system to share this network adapter
  3. Click OK
Menentukan properti Virtual Switch
Define Virtual Switch properties
  1. If confirmation appears “Apply Network Change” click Yes
Konfirmasi perubahan jaringan
Confirm network changes

3. Changing Network Settings on a Virtual Machine

  • On Hyper-V Manager, right click on the virtual machine name, then click Settings
Membuka Pengaturan Mesin Virtual
Opening Virtual Machine Settings
  1. In section Hardware, select Network
  2. Then on Virtual switch, select the name of the virtual switch that was created previously
  3. Click OK
Pengaturan Jaringan pada Mesin Virtual
Network Settings on a Virtual Machine

Virtual Machine Network Setup is complete. Next is to run the virtual machine.

Running a Virtual Machine

  1. Open Hyper-V Manager, in section Virtual Machine there is a virtual machine with the name you created earlier. In the attached image you can see two virtual machines because previously I had created a virtual machine with the name Centos7
  2. Right click on the virtual machine name and then click Connect… then the virtual machine screen will appear
Menghubungkan dengan Mesin Virtual
Connecting with a Virtual Machine
  1. On the virtual machine screen, machine status in state Off , click Start to run a virtual machine
Layar Mesin Virtual
Virtual Machine Screen
  1. When the virtual machine is started, The installation process starts immediately, You can learn Easy guide to installing Windows 7 until finish.
Memulai instalasi Windows-7
Starting the Windows-7 installation in the virtual machine
  1. After the installation is complete, The virtual machine will run like a normal computer
mesin virtual windows-7 sedang berjalan
The Windows-7 Virtual Machine is running

Finished

Creation of a Windows-7 virtual machine using Hyper-V in Windows 10/11 have been completed. Now it's as if you have two different computers and can use them at the same time.

Hope it is useful.

How useful is this article?

Click on a star to rate it!

Average rating 5 / 5. Total votes: 5

No sound so far! Be the first to rate this article.

We apologize that this article was not useful for you!

Let us improve this article!

Let us know how we can improve this article?

2 response to β€œHow to Create a Windows-7 Virtual Machine with Hyper-V”

  1. Keren…
    #ask bro
    Can be done on all versions of Windows 11 like the educational version, home or only for the pro and enterprise versions, bro ? πŸ˜πŸ˜πŸ™πŸ™

Comments are closed.