FreeBSD Gen2 VM in Azure Kernel Boot Stuck

Pavlo Vyliehzhanin 11 Reputation points
2022-08-08T09:16:32.477+00:00

Hi,
I'm trying to deploy pfSense/OPNsense appliance (FreeBSD based) by creating gen2 VM on Hyper-V and then uploading vhd into Azure.
Created gen2 Azure VM uses custom storage account for boot diagnostics and serial console.

There is a problem with boot, it freezes after bootloader. (works fine with gen1 VM)
Sometimes it can boot after series of Reset-VM/NMI from serial console, works in 5-10% of cases.
229047-image.png
There is something related to serial console output in FreeBSD and Azure COM emulator at the early boot time.
The issue is discussed in detail in the thread below.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264267

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,762 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,680 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,586 Reputation points
    2022-08-09T07:26:59.027+00:00

    Hi there,

    After you apply certain kernel changes (such as a kernel upgrade) to a Linux virtual machine (VM) on Azure, the VM can't restart. This article provides solutions to an issue in which a Linux virtual machine (VM) can't restart after applying kernel changes.

    How to recover an Azure Linux virtual machine from kernel-related boot issues https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/kernel-related-boot-issues

    ------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer–

    1 person found this answer helpful.
    0 comments No comments

Your answer

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