WSL stops working in Azure Windows 10 VM

Satyam Chauhan 422 Reputation points


I have an azure VM- OS - Windows 10, Size - Standard D4s v3,

It has auto shutdown enabled.

I am using Podman software on this VM, which requires Hyper-V, Windows Subsystem for Linux and Windows Hypervisor platform to be enabled. After that Podman installs Fedora Linux into the WSL which works fine.

Since I don't use this VM daily, when I start the VM again after few days all the windows feature Hyper-V, Windows Subsystem for Linux and Windows Hypervisor platform gets disabled, and the WSL doesn't show any linux distribution installed.

Is there any configuration which is causing this issue? As I have to the the setup again and again.


Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
8,914 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,973 questions
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,277 questions
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 29,906 Reputation points Microsoft Employee

    @Satyam Chauhan

    I tested by first installing WSL "wsl --install" then I followed the instructions to install Podman on Windows. I was able to start the Podman machine. I then had my VM auto-shutdown, waited 30 minutes. After starting my VM I can still run the Podman commands.
    Maybe there is some policy or something on the OS that is resetting this configuration for you? Can you try to reinstall using the method I followed?

    User's image

    enter image description here

    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A! User's image

    0 comments No comments