Boot Diagnostic Black Screen Issue

Eda GOKBORA 0 Reputation points
2024-10-31T09:06:21.05+00:00

Hello all,

I have a virtual machine (Windows 2019 gen1) on Azure, i can connect RDP and this vm is running prod env. This vm have a problem about boot diagnostic. When I checked I see only black screen.

Can you help me?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,035 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 28,281 Reputation points Moderator
    2024-11-01T06:31:07.0066667+00:00

    Hello @Eda GOKBORA

    If you are experiencing a black screen issue with Azure VM Boot Diagnostics, you can try these steps:

    • Disable virtual display timeout In the guest operating system, make sure the virtual display timeout is disabled.
    • For Windows, run the following command from elevated CMD powercfg /setacvalueindex SCHEME_CURRENT SUB_VIDEO VIDEOIDLE 0

    For Windows VMs, the Azure provisioning agent is different than the VM agent. It runs the above command during provisioning for VMs created from a generalized image. You can see this event if you search for powercfg in C:\Windows\Panther\WaSetup.xml, which is the provisioning agent log. But since the provisioning agent does not need to run for VMs created from a specialized VHD, that is a scenario where you would need to run the powercfg command manually to disable the virtual display timeout. Also, it is possible to have a particularly old Azure VM created from generalized image that may not have it set because it was created before the provisioning agent was updated to disable the virtual display timeout.

    If I have answered your question, please accept this as answer as a token of appreciation.

    1 person found this answer helpful.

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.