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]-azure-hyperv.vhd.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.

  3. Extract the compressed file using software such as the 7-Zip* tool or the WinZip* tool.

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

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

    Note

    You may need to manually enable Hyper-V on a Windows* machine. Review Windows Features.

  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)

    • Specify Generation: Generation 1

    • Startup memory: 2048 MB or more

    • Configure Networking: Change Connection to Default Switch

    • Connect Virtual Hard Disk: Select Use an existing virtual hard disk and browse to find the clear-[VERSION]-azure-hyperv.vhd 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.

    Optional

    • If you wish to Encrypt state and virtual machine traffic, under :guilabel:`Security, select Add Key Storage Drive.

    • 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.