<p>I am getting the below error when installing the latest stable Rancher Desktop in my Virtual Machine.</p>
<p>Could someone please help?</p>
<p><strong>Error:</strong></p>
<blockquote>
<p>Error: wsl.exe exited with code 4294967295</p>
</blockquote>
<p><strong>Command:</strong></p>
<pre><code>wsl --distribution rancher-desktop --exec mkdir -p /mnt/wsl/rancher-desktop/run/data
</code></pre>
<p><strong>Logs:</strong></p>
<blockquote>
<p>2022-02-02T09:58:39.490Z: Running command wsl --distribution
rancher-desktop --exec wslpath -a -u
C:\Users\VIVEK~1.NUN\AppData\Local\Temp\rd-distro-gGd3SG\distro.tar...
2022-02-02T09:58:40.641Z: Running command wsl --distribution
rancher-desktop --exec tar -cf
/mnt/c/Users/VIVEK~1.NUN/AppData/Local/Temp/rd-distro-gGd3SG/distro.tar
-C / /bin/busybox /bin/mount /bin/sh /lib /etc/wsl.conf /etc/passwd /etc/rancher /var/lib... 2022-02-02T09:58:42.628Z: Running command wsl
--import rancher-desktop-data C:\Users\Vivek.Nuna\AppData\Local\rancher-desktop\distro-data
C:\Users\VIVEK~1.NUN\AppData\Local\Temp\rd-distro-gGd3SG\distro.tar
--version 2... 2022-02-02T09:58:44.025Z: Running command wsl --distribution rancher-desktop-data --exec /bin/busybox [ ! -d /etc/rancher ]... 2022-02-02T09:58:44.025Z: Running command wsl
--distribution rancher-desktop-data --exec /bin/busybox [ ! -d /var/lib ]... 2022-02-02T10:03:54.533Z: Running command wsl
--terminate rancher-desktop... 2022-02-02T10:03:54.534Z: Running command wsl --terminate rancher-desktop-data...
2022-02-02T10:03:54.971Z: Running command wsl --distribution
rancher-desktop --exec mkdir -p /mnt/wsl/rancher-desktop/run/data...
2022-02-02T10:04:03.418Z: WSL: executing: mkdir -p
/mnt/wsl/rancher-desktop/run/data: Error: wsl.exe exited with code
4294967295</p>
</blockquote>
<p><a href="https://i.stack.imgur.com/xdyQ6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xdyQ6.png" alt="enter image description here" /></a></p>

<p>I met the same issue in Windows 10.</p>
<p>Below solution helped me:</p>
<h2>1. Quit Rancher Desktop</h2>
<p><a href="https://i.stack.imgur.com/U8kpt.png" rel="noreferrer"><img src="https://i.stack.imgur.com/U8kpt.png" alt="Quit Rancher" /></a></p>
<h2>2. Run below command in Windows command line:</h2>
<pre class="lang-bash prettyprint-override"><code>wsl --update
</code></pre>
<h2>3. After update completed, open Rancher Desktop again.</h2>
<p>Rancher Desktop works well now.</p>
<p><a href="https://i.stack.imgur.com/t7bWi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/t7bWi.png" alt="Rancher Desktop works well now" /></a></p>
<p>After completed installing Rancher desktop, you can use the <code>docker</code> and <code>kubectl</code> commands in Windows command line successfully.</p>
<h2>References:</h2>
<p><a href="https://github.com/rancher-sandbox/rancher-desktop/issues/1328#issuecomment-1022190843" rel="noreferrer">Error: wsl.exe exited with code 4294967295 #1328 - github</a></p>
