Share via

Installing Ubuntu 24.04 on a Hyper-V virtual machine hosted on Windows Server 2019.

TNT TNT 0 Reputation points
2026-06-11T10:30:38.4366667+00:00

Dear Microsoft Support Team,

We are experiencing an issue while installing Ubuntu 24.04 on a Hyper-V virtual machine hosted on Windows Server 2019. Environment Details: Host OS: Windows Server 2019 Hyper-V Version: Hyper-V Manager Guest OS: Ubuntu Server/Desktop 24.04 LTS VM Generation: Generation 2 Issue Description: The Ubuntu 24.04 installation is failing during the boot/installation process. We have verified the ISO image, VM configuration, and resource allocation; however, the issue persists. Could you please assist us in identifying the root cause and provide the recommended resolution? Thank you for your support. We look forward to your guidance. Please call me on this number -removed for privacy- I have tried so many times to raise a ticket for this issue. Please kindly raise a ticket for this issue for checking.

Windows for business | Windows Server | Storage high availability | Virtualization and Hyper-V
0 comments No comments

2 answers

Sort by: Most helpful
  1. Nam Bui (WICLOUD CORPORATION) 1,195 Reputation points Microsoft External Staff Moderator
    2026-06-12T05:07:29.7666667+00:00

    Hi TNT ,  

    My name is Titus, and I will be assisting you with this issue.

    Thank you for your patience and for providing the detailed information.

    Since the ISO image, VM configuration, and resource allocation were already validated, Secure Boot compatibility is now considered the primary suspected cause.

    Please kindly test the following workaround:

    Step 1 — Disable Secure Boot temporarily

    Run the following PowerShell command on the Hyper‑V host:

    Set-VMFirmware -VMName "VMname" -EnableSecureBoot Off

    Or manually:

    • Open Hyper‑V Manager
    • VM Settings
    • Security
    • Uncheck:
      • “Enable Secure Boot”

    Step 2 — Retry Ubuntu 24.04 installation

    After Secure Boot is disabled:

    • Restart the VM
    • Retry the Ubuntu 24.04 installation process

    Additionally, although Ubuntu 24.04 is officially supported on Hyper‑V according to Microsoft documentation, the same article acknowledges that some Linux Generation 2 virtual machines may still fail to boot when Secure Boot is enabled. [Supported...soft Learn | Learn.Microsoft.com]

     

    If the issue still persists after disabling Secure Boot, please provide:

    • screenshot of the exact boot error,
    • Hyper‑V VM firmware settings,
    • and any related Hyper‑V event logs,

    Looking forward to hearing from you.

    Best regards,

    Titus Bui

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-06-11T10:30:51.67+00:00

    The described behavior matches common installation and boot issues for Linux Generation 2 VMs on Hyper-V.

    Root cause: For some Linux distributions on Generation 2 VMs, specific Hyper-V firmware and Secure Boot settings are required. If Secure Boot is misconfigured (for example, using the default Windows template) or the VM firmware/boot order is not aligned with the distribution’s requirements, the installation can stall or fail during boot.

    Recommended resolution steps:

    1. Review and adjust Generation 2 VM configuration:
      1. In Hyper-V Manager, open the VM’s Settings → Security:
        • Temporarily disable Secure Boot and retry installation.
        • If Secure Boot is required, set it to use the Linux-appropriate template (for example, MicrosoftUEFICertificateAuthority) if available for the distribution.
      2. Confirm the VM is indeed Generation 2 and that Ubuntu 24.04 is supported on Generation 2 in this configuration. If problems persist, plan a test installation on a Generation 1 VM to validate that the issue is specific to Gen 2.
    2. Verify firmware boot order:
      1. In the VM’s Settings → Firmware:
        • Ensure the DVD drive (or ISO) is at the top of the boot order.
        • Remove or move down any unnecessary boot entries that might interfere.
    3. Simplify VM hardware configuration:
      1. Remove any legacy or unnecessary devices (for example, legacy network adapters) from the VM configuration.
      2. Keep only the standard network adapter, system disk, and ISO/DVD drive attached during installation.
    4. Retry the OS installation:
      1. After applying the above changes, start the VM and run the Ubuntu 24.04 installer again.
      2. If the installation still fails on Generation 2 after Secure Boot and firmware adjustments, perform the installation on a Generation 1 VM as a workaround.
    5. If issues persist after these steps:
      • Collect detailed information (screenshots of the failure point, exact error messages, and VM configuration details) and use standard Microsoft support channels for Windows Server/Hyper-V to open a support case. Ticket creation cannot be performed on behalf of the environment from here.

    These steps address the documented root causes for Linux installation failures on Generation 2 Hyper-V VMs: Secure Boot/template mismatch, firmware/boot device configuration, and unsupported or misconfigured Linux versions.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.