Installing eLxr with Hyper-V

About This Task

Once you have downloaded the eLxr 12 image file, you can install it with Microsoft Hyper-V as described in this procedure.

For eLxr Server images, you have the option of installing a console-based system, or a desktop environment, such as XFCE.

Before You Begin

  • You must have an eLxr 12 image. For details, see Downloading the eLxr Image.

  • You must have Hyper-V enabled in Windows 11 and have administrator access on your Windows host.

  • You must connect Hyper-V to a server or your local computer to enable VM actions. For example, run Hyper-V as an administrator. In the main window, select Connect to server, then select Local computer and click OK. The list of available actions will now include Quick Create and New.

Creating the Virtual Machine

  1. From the Hyper-V interface, select Quick Create to open the Create Virtual Machine window.

    ../../_images/quick-create-hyperv-virtual-machine-window.png
  2. In the Create Virtual Machine window, click Local installation source, then click Change installation source and navigate to the eLxr image you want to use to create the VM. Click Open to select it. The image will display.

    ../../_images/quick-create-hyperv-image-selected.png
  3. Deselect the option to disable Windows Secure Boot.

    ../../_images/quick-create-hyperv-deselect-secure-boot-option.png
  4. Expand More options and enter a name for the VM. For network access, ensure that Default Switch, the default, is selected.

    Note

    If you do not enter a name, it will default to New Virtual Machine in the Virtual Machines list. You can change it in the Settings at any time.

  5. Click Create Virtual Machine. Once the VM is ready, the window will update and Virtual machine created successfully will appear.

    ../../_images/quick-create-hyperv-new-virtual-machine-ready.png
  6. Click Connect to open the eLxr VM Virtual Machine Connection window.

    ../../_images/hyperv-new-virtual-machine-connection-window.png
  7. Click Start or Action > Start to launch the VM and begin the installation.

    The next section describes the installation steps.

Installing eLxr

With the virtual machine configured, install eLxr as described in this section.

Tip

The eLxr Server image performs an automatic installation if you do not select an option quickly. Once the options are available, use the UP or DOWN arrow keys to halt the timer.

  1. Select the installation method.

    On booting you will be presented with a menu with options for running either the graphical or text-based installer.

    ../../_images/08-VMM-Install-Boot.png

    In this example we will use the Graphical Installer option.

    There is also an option for setting some advanced options, but these should not be required when using the VMM to install into a QEMU/KVM virtual machine.

    Other options offer help and installers with accessibility options which may assist those with vision impairments.

  2. Select language and location options.

    The first option presented by the graphical installer is to select the language:

    ../../_images/09-VMM-Install-Language.png

    Next, we need to set the location:

    ../../_images/10-VMM-Install-Location.png

    And then the keyboard layout:

    ../../_images/11-VMM-Install-Keyboard.png
  3. Verify hardware selection process.

    At this point the installer will run a number of tests to determine the hardware configuration of the machine.

    ../../_images/12-VMM-Install-DetectingHW.png
  4. Set the host name and domain for the virtual machine:

    ../../_images/13-VMM-Install-Hostname.png ../../_images/14-VMM-Install-Domain.png

    If the VM will appear on your local network then ensure you have a unique host name and that the domain matches the local network domain.

  5. Set the root password and add users.

    ../../_images/15-VMM-Install-RootPasswd.png

    Optionally you can also create regular users and set their passwords too. It is recommended to have at least one non-root user.

  6. Set and verify hard disk partitions.

    Prior to installing the OS the disk must be partitioned and formatted. The easiest method is to use the guided install as follows:

    ../../_images/16-VMM-Install-Partition-1.png

    First select which disk to install into. Unless you have configured the VM with multiple disks you should find there is only one option, the virtual disk.

    ../../_images/17-VMM-Install-Partition-2.png

    Several options for the partition layout are provided. Easiest is to install everything into a single partition.

    ../../_images/18-VMM-Install-Partition-3.png

    A summary displays before any changes are written to the disk.

    ../../_images/19-VMM-Install-Partition-4.png

    A final confirmation is needed before the disk contents are modified. Select Yes and click Continue to partition and format the disk(s).

    ../../_images/20-VMM-Install-Partition-5.png

    At this point the virtual disk is ready for installing eLxr.

  7. Install the base eLxr system.

    The base system will now be installed into the newly partitioned disk.

    ../../_images/21-VMM-Install-BaseSystem.png
  8. Choose whether you want to scan additional media to include in the APT Package Manager’s package sources. If you do not have any additional source repositories (default), select No, then click Continue.

    ../../_images/install-select-package-sources.png
  9. If you require a HTTP proxy to access the Internet from your eLxr image, enter the proxy address and port information. If you do not require a proxy, leave the filed blank. Click Continue.

    ../../_images/install-http-proxy-for-package-manager.png
  10. At the Software Selection window, choose any additional software options. By default, the installer selects Debian desktop environment, GNOME and standard system utilities. This installs the GNOME desktop with a standard set of utilities. To install a different window manager, deselect GNOME and select another from the available options.

    Optionally select other software, then click Continue.

    Note

    If you select more than one desktop environment, a window will prompt you to choose a preferred window manager.

    ../../_images/install-software-selection.png

    The installer will add the additional components and finish up.

    ../../_images/install-finishing-the-installation.png
  11. Install the boot loader.

    eLxr uses the GRUB bootloader (GRand Unified Bootloader) to start the operating system upon boot.

    First we must confirm that we want to install GRUB. Since there are no other operating systems in the virtual machine, select Yes and click Continue.

    ../../_images/23-VMM-Install-GRUB-1.png

    Then we select the disk it should be installed on. As with partitioning, there should be only one disk here unless you created multiple disks when setting up the virtual machine. In that case, select the first (vda) disk and click Continue.

    ../../_images/24-VMM-Install-GRUB-2.png
  12. Complete the installation.

    After installing GRUB the installer has some final setup to do:

    ../../_images/25-VMM-Install-Finishing.png

    Once finished, it will prompt to reboot the system into the fresh installation.

    ../../_images/26-VMM-Install-Finished.png

    Click Continue.

  13. On system restart, select the kernel option you want to use from the GRUB menu, either standard or rt (real time). You will only have a moment to make this selection.

    ../../_images/install-complete-reboot-kernel-console.png

    Important

    The kernel option you choose will become the default for your system. Only choose the rt kernel if the system requires deterministic processing.

  14. Log in to the eLxr image for the first time, either as root or as a user you created in step 5, above.

    For console-based installations, log in from the terminal.

    elxr-server login: root
    Password:
    Linux elxr 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC eLxr
    6.1.129 elxr3-1 (2025-05-21) x86_64
    
    The programs included with the eLxr Linux system
    are free software; the exact distribution terms
    for each program are described in the individual
    files in /usr/share/doc/*/copyright.
    
    eLxr Linux comes with ABSOLUTELY NO WARRANTY,
    to the extent permitted by applicable law.
    

    For desktop installations, log in from the desktop manager login prompt, for example, GNOME:

    ../../_images/install-gnome-login.png

    Optionally select the Applications icon to view available desktops and applications.

    ../../_images/install-gnome-default-apps.png
  15. Once you are done, you can power down the virtual machine. To simply power-off the virtual machine, run the following command from a terminal:

    root@elxr:~# shutdown -h now
    

Results

Now that your eLxr 12 image is running with Hyper-V, you can install a package or packages from the eLxr 12 package repository. For details, see Adding and Updating Packages.