Windows Hyper-V

An overview of virtualization and Hyper-V, plus how to install CentOS on Hyper-V

What Is Virtualization?

In general, an OS runs on hardware such as memory and hard disks. By running that hardware as software, you can create another computer inside an OS.

Benefits of Virtualization

  • You can save space, energy, and cost by reducing the number of physical servers.
  • You can build different OS environments.
  • You can reduce the cost and time needed to prepare environments.

Drawbacks of Virtualization

  • Because overhead is added, applications that depend heavily on hardware may not work properly.

What Is Hyper-V?

Hyper-V is a virtualization technology provided by Microsoft.

Hyper-V Features

Hyper-V has two major characteristics.

  • It is a Windows Server feature.
    • Because Microsoft provides it just like Windows, it is included with Windows Server, has no additional cost, and is simple to use.
  • It is hypervisor-based virtualization technology.
    • Unlike host-based virtualization technology such as Virtual Server, it runs on a hypervisor in the same way as the management OS, so it operates faster than host-based virtualization.

Enable Hyper-V

To use Hyper-V, you must install and enable it first. Enable it through the page below.

Install CentOS on Hyper-V

Download the CentOS Installation File

CentOS Download

Download CentOS Stream 9 x86_64 from the link above.

Quickly Create a Virtual Machine for Installing CentOS on Hyper-V

Here, create a virtual machine with Quick Create.

  1. Open Hyper-V and click “Quick Create…”.
    Hyper-V

  2. When the “Create Virtual Machine” dialog appears, click “Local installation source (_L)”, then click the “Change installation source” button. Hyper-V

  3. In the file selection window opened by “Change installation source”, select the CentOS .iso file downloaded earlier. Since you are not installing Windows, clear the “This virtual machine will run Windows” checkbox.
    Hyper-V

  4. Click “More options” to show the “Name” and “Network” fields. Enter any name you want, then click “Create Virtual Machine”.
    Hyper-V

  5. The screen changes to the virtual machine creation screen, and messages appear while it creates several items. Hyper-V

  6. After a short wait, it finishes with the message “The virtual machine was created successfully.” Hyper-V

Create a New Virtual Machine for Installing CentOS on Hyper-V

Here, create a virtual machine by using New Virtual Machine.

  1. Open Hyper-V and click “New…”.
    Hyper-V

  2. Specify Name and Location: set a name and select the installation location. Here, the D drive is specified. Hyper-V

  3. Specify Generation: select the desired generation. Here, proceed with the default Generation 1. Hyper-V

  4. Assign Memory: the default is 1024 MB, but here it is changed to 4096 MB. Hyper-V

  5. Configure Networking: select the connection setting to use. Hyper-V

  6. Connect Virtual Hard Disk: configure the hardware. Here, only the size is set to 80 GB. Hyper-V

  7. Installation Options: select options for the operating system to install. Here, select the CentOS .iso file from above.
    Hyper-V

  8. Summary: the items selected above are summarized. Click the final “Finish” button to complete. Hyper-V

Install CentOS on Hyper-V

Now install CentOS on Hyper-V.

  1. If you created the virtual machine with “Quick Create”, click the “Connect” button after the installation screen appears. Hyper-V
    Or select the added virtual machine from the list and click “Connect”.
    Hyper-V

  2. A black screen appears as shown below. Click “Start”. Hyper-V

  3. Select “Install CentOS Stream 9”. Hyper-V

  4. When the language selection screen appears, click “Continue”. Hyper-V

  5. This is the configuration screen.

    1. You must configure all items with warning marks before the “Begin Installation” button becomes active.
      Hyper-V
    2. On the “Installation Summary” screen, click “Installation Destination”, select the disk to install to, and click “Done”.
      Hyper-V
    3. On the “Installation Summary” screen, click “Root Password”, set the root account password, and click “Done”.
      Hyper-V
    4. On the “Installation Summary” screen, click “User Creation”, set the user information, and click “Done”.
      Hyper-V
    5. On the “Installation Summary” screen, click “Software Selection”, select the base environment, and click “Done”. Here, select “Minimal Install” because CLI will be used.
      Hyper-V
    6. When all settings are complete, click “Begin Installation”. Hyper-V
  6. Installation now proceeds.
    Hyper-V

  7. When installation finishes with the message “Complete!”, click “Reboot System”. Hyper-V

  8. After rebooting, you can confirm that login works with the account configured above.
    Hyper-V