<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dr. Maximilian Hassani on Medium]]></title>
        <description><![CDATA[Stories by Dr. Maximilian Hassani on Medium]]></description>
        <link>https://medium.com/@muhammad.hassani.dring?source=rss-8ab1bf5fe45c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Glub64aK8dk0DZ3N</url>
            <title>Stories by Dr. Maximilian Hassani on Medium</title>
            <link>https://medium.com/@muhammad.hassani.dring?source=rss-8ab1bf5fe45c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 16:52:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@muhammad.hassani.dring/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Restarting WSL2; a challenge!]]></title>
            <link>https://medium.com/@muhammad.hassani.dring/restarting-wsl2-a-challenge-efbff0755af3?source=rss-8ab1bf5fe45c------2</link>
            <guid isPermaLink="false">https://medium.com/p/efbff0755af3</guid>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[wsl-2]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Dr. Maximilian Hassani]]></dc:creator>
            <pubDate>Fri, 28 Apr 2023 13:45:52 GMT</pubDate>
            <atom:updated>2023-04-28T13:45:52.742Z</atom:updated>
            <content:encoded><![CDATA[<p>I am not going to write a long article on WSL or how to use it. Of course, people who love Linux and still want to do their workflow under Linux on their business laptop, WSL is one of the best options. I personally use it to develop my codes and run my docker images. People might have all these under windows itself, but I personally open a VS Code and start writing my code, and I am loving it.</p><p>The challenge starts when the WSL becomes unusable and frozen. It is common with Windows application to hang, and you restart your laptop, while in Linux world you just find the process and kill it. I want to replicate this process under windows.</p><p>I read several places that you can simply run in PowerShell or windows cmd,</p><pre>wsl --shutdown</pre><p>However, when my WSL is frozen this command is also not responding on PowerShell which is spawned as an administrator. So the solution, which is so far useful for me, is the following:</p><ul><li>Run resource manager as administrator</li><li>in the resource manager, find all the processes related to WSL, e.g. wslhost.exe, etc. should be killed along with their tree process.</li><li>Go back to your PowerShell console</li></ul><pre>wsl --shutdown<br>restart-service &quot;Hyper-V Host Compute Service&quot;<br>wsl</pre><p>Of course, my solution is the result of my experiments. I read a couple of posts in stack overflow and GitHub, which were not totally match my use case.</p><p>Feel free to write in the comments about your experience, and how you handle similar cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efbff0755af3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>