Clear Linux* OS on Microsoft Hyper-V*

This page explains how to run a Clear Linux* OS VM on a a Microsoft Hyper-V* hypervisor.

Overview

Hyper-V is a type 1 bare-metal hypervisor that runs directly on system hardware.

Hyper-V is available both on server and client Windows operating systems as Hyper-V on Windows Server and Hyper-V on Windows 10.

Prerequisites

Download the Clear Linux OS disk image for Hyper-V

Clear Linux OS provide a virtual disk image for Hyper-V with Clear Linux OS pre-installed. This includes a Clear Linux OS Hyper-V specific kernel with Hyper-V Linux drivers ready-to-go. Get the latest Clear Linux OS image for Microsoft* Hyper-V from the downloads website. The file is named clear-[VERSION]-hyperv.vhdx.gz.

We also provide instructions for downloading and verifying a Clear Linux images. For more information, refer to Download, verify, and decompress a Clear Linux* OS image.

After extraction, the file should be named clear-[VERSION]-hyperv.vhdx.

Create and configure new VM

  1. Open the Hyper-V Manager from the Start menu.

    Hyper-V Manager from the Start menu

    Figure 1: Hyper-V Manager from the Start menu

  2. Create a New Virtual Machine by clicking the Action menu and selecting the New submenu, and selecting Virtual Machine….

    New Virtual Machine in Hyper-V Manager

    Figure 2: New Virtual Machine in Hyper-V Manager

  3. Follow the New Virtual Machine Wizard to create a new virtual machine specifying the options below:

    • Name: Choose name (e.g. ClearLinuxOS-VM).
    • Generation: Generation 2
    • Startup memory: 2048 MB or more
    • Connect Virtual Hard Disk: select Use an existing virtual hard disk and browse to find the clear-[VERSION]-hyperv.vhdx file.

    After finishing the wizard, the VM will be created but not powered on.

  4. Go to Virtual Machine Settings by right-clicking the newly created Clear Linux OS VM in the Hyper-V Manager and selecting Settings…

    • Under Firmware, select the Virtual disk and click Move Up… until it is at the top of the list.
    • Under Security, uncheck the Enable Secure Boot checkbox.
    • Under Processor, consider increasing the number of virtual processors assigned to the Clear Linux OS VM for performance.
    |CL| VM Settings in Hyper-V Manager

    Figure 3: Clear Linux OS VM Settings page after selections

  5. Click Apply at the bottom of the VM Settings screen.

  6. Click OK at the bottom of the VM Setting screen.

Start the VM

  1. Start the Clear Linux OS VM by right-clicking the VM in Hyper-V Manager and selecting Start

  2. Connect to the VM console by right-clicking the VM in Hyper-V Manager and selecting Connect…. A new Virtual Machine Connection window will appear.

  3. After Clear Linux OS is booted, login to the console with user root. You will be prompted to set a new password immediately.

    > User: root
    

Clear Linux* OS on Microsoft Hyper-V* is ready for use.