WSL stops working in Azure Windows 10 VM

Satyam Chauhan 547 Reputation points
2023-09-06T05:35:52.3366667+00:00

Hi,

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.

Thanks.

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

1 answer

Sort by: Most helpful
  1. deherman-MSFT 36,831 Reputation points Microsoft Employee
    2023-09-12T20:09:02.91+00:00

    @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

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.