Clear Linux* OS on Microsoft Hyper-V*

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

Overview

Hyper-V is a type 1 bare-metal hypervisor that runs directly on system hardware. It is available for Windows* server and client operating systems, including Windows 10.

Clear Linux OS provides a virtual disk image for Hyper-V, which also includes a Hyper-V specific kernel and drivers.

Prerequisites

Download the Clear Linux OS disk image for Hyper-V

  1. Download the clear-[VERSION]-hyperv.vhdx.gz for Microsoft* Hyper-V from the downloads website.

  2. Verify and extract the image using these instructions: 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, then selecting New and 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 (for example, 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. Configure the VM by right-clicking it in the Hyper-V Manager and selecting Settings…. Figure 3 shows the Settings page after configuration selections.

    • 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 to improve performance.
    |CL| VM Settings in Hyper-V Manager

    Figure 3: Clear Linux OS VM Settings page after configuration

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

  6. Click OK at the bottom of the VM Settings 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 is displayed.

  3. After Clear Linux OS is booted, log in to the console with user root. You are prompted to set a new password immediately.

    > User: root
    

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