2008 r2 vm migrated to azure hangs on classpnp.sys

c2 go2 5 Reputation points
2023-07-08T14:23:14.7+00:00

I am attempting to migrate a Windows 2008 R2 64 bit on premises vCenter guest to Azure. The replication completes but the VM won't boot in azure. When using the serial console and booting into safe mode with command prompt, I can see that it hangs loading classpnp.sys. I understand that 2008 r2 on premises is out of support but I also know that MS supports their migration to Azure and also supports extended update services in Azure until end of 2023. I have successfully migrated other 2008 r2 vms to azure and successfully subscribed them to eus and applied security patches. The VM that won't boot is running the same windows version and has same version of classpnp.sys.

I've tried using repair but it didn't help. I tried runnning both chkdsk and sfc on the on premises machine but that didn't help. I tried booting without driver signature verification and also tried last known good.

Any ideas for how to troubleshoot \ resolve a boot issue on azure vm that was migrated from on prem vcenter 2008 r2 guest?

Azure Migrate
Azure Migrate
A central hub of Azure cloud migration services and tools to discover, assess, and migrate workloads to the cloud.
816 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,209 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Luke Murray 11,091 Reputation points MVP
    2023-07-08T23:06:28.4866667+00:00

    Hi, c2go - it could be Trusted Launch, try creating the VM as Standard security mode.

    Change the Security Type to: Standard.

    Screenshot showing the options for Trusted Launch.

    0 comments No comments

  2. Limitless Technology 44,376 Reputation points
    2023-07-10T14:26:58.0266667+00:00

    Hello there,

    If a Windows Server 2008 R2 virtual machine (VM) that has been migrated to Azure hangs on the "classpnp.sys" driver, you can try the following troubleshooting steps:

    Enable Boot Logging: Restart the VM and press F8 during boot to access the Advanced Boot Options menu. Select "Enable Boot Logging" to create a log file that records the drivers being loaded during startup. This log file can provide valuable information for troubleshooting.

    Safe Mode: Try booting the VM in Safe Mode. Restart the VM and press F8 during boot to access the Advanced Boot Options menu. Select "Safe Mode" to load Windows with minimal drivers and services. If the VM boots successfully in Safe Mode, it indicates that a third-party driver or service might be causing the issue.

    Analyze Boot Logging: After enabling boot logging (as mentioned in step 1), boot the VM normally and let it hang on the "classpnp.sys" driver. Restart the VM in Safe Mode and access the log file created during boot logging. Analyze the log file to identify any other drivers that are causing conflicts or errors. This analysis can help pinpoint the problematic driver.

    I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.

    Hope this resolves your Query !!

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

    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.