<p>I'm trying to run Ceph on (micro)K8s which running on my Ubuntu WSL distory.</p>
<p>OSD pods are not being created because there is no supported device is available (see logs below).</p>
<p>Ceph is configured to <a href="https://rook.io/docs/rook/v1.5/ceph-common-issues.html#osd-pods-are-not-created-on-my-devices" rel="nofollow noreferrer">UseAllDevices</a> which you can see it searching for one in the log above.</p>
<p>Ceph ideally wants an unformatted partition which I created on my windows host but I'm unsure how I mount that to <code>/dev/sd{c}</code> or do try to create a new partition within WSL itself?</p>
<p>I don't know how to do either or if that is even the right approach.</p>
<p>Thanks in advance.</p>
<pre><code>2021-03-01 17:09:17.090302 W | inventory: skipping device &quot;loop0&quot;. unsupported diskType loop
2021-03-01 17:09:17.112037 W | inventory: skipping device &quot;loop1&quot;. unsupported diskType loop
2021-03-01 17:09:17.150605 W | inventory: skipping device &quot;loop2&quot;. unsupported diskType loop
2021-03-01 17:09:17.173562 W | inventory: skipping device &quot;loop3&quot;. unsupported diskType loop
2021-03-01 17:09:17.185464 W | inventory: skipping device &quot;loop4&quot;. unsupported diskType loop
2021-03-01 17:09:17.209067 W | inventory: skipping device &quot;loop5&quot;. unsupported diskType loop
2021-03-01 17:09:17.224485 W | inventory: skipping device &quot;loop6&quot;. unsupported diskType loop
2021-03-01 17:09:17.246726 W | inventory: skipping device &quot;loop7&quot;. unsupported diskType loop
2021-03-01 17:09:17.257490 W | inventory: skipping device &quot;loop8&quot;. unsupported diskType loop
2021-03-01 17:09:17.272513 W | inventory: skipping device &quot;loop9&quot;. unsupported diskType loop
2021-03-01 17:09:17.292126 W | inventory: skipping device &quot;loop10&quot;. unsupported diskType loop
2021-03-01 17:09:17.301785 W | inventory: skipping device &quot;loop11&quot;. unsupported diskType loop
2021-03-01 17:09:17.323591 W | inventory: skipping device &quot;loop12&quot;. unsupported diskType loop
2021-03-01 17:09:17.327819 W | inventory: skipping device &quot;loop13&quot;. diskType is empty
2021-03-01 17:09:20.140453 I | cephosd: skipping device &quot;ram0&quot;: [&quot;Insufficient space (&lt;5GB)&quot;].
2021-03-01 17:09:21.762693 I | cephosd: skipping device &quot;ram1&quot;: [&quot;Insufficient space (&lt;5GB)&quot;].
2021-03-01 17:09:23.759026 I | cephosd: skipping device &quot;ram2&quot;: [&quot;Insufficient space (&lt;5GB)&quot;].
2021-03-01 17:09:25.396302 I | cephosd: skipping device &quot;ram3&quot;: [&quot;Insufficient space (&lt;5GB)&quot;].
2021-03-01 17:09:26.512274 I | cephosd: skipping device &quot;ram4&quot;: [&quot;Insufficient space (&lt;5GB)&quot;].
2021-03-01 17:09:27.664515 I | cephosd: skipping device &quot;ram5&quot;: [&quot;Insufficient space (&lt;5GB)&quot;].
2021-03-01 17:09:28.854953 I | cephosd: skipping device &quot;ram6&quot;: [&quot;Insufficient space (&lt;5GB)&quot;].
2021-03-01 17:09:30.080786 I | cephosd: skipping device &quot;ram7&quot;: [&quot;Insufficient space (&lt;5GB)&quot;].
2021-03-01 17:09:31.407741 I | cephosd: skipping device &quot;ram8&quot;: [&quot;Insufficient space (&lt;5GB)&quot;].
2021-03-01 17:09:32.646524 I | cephosd: skipping device &quot;ram9&quot;: [&quot;Insufficient space (&lt;5GB)&quot;].
2021-03-01 17:09:33.856632 I | cephosd: skipping device &quot;ram10&quot;: [&quot;Insufficient space (&lt;5GB)&quot;].
2021-03-01 17:09:35.568848 I | cephosd: skipping device &quot;ram11&quot;: [&quot;Insufficient space (&lt;5GB)&quot;].
2021-03-01 17:09:36.766882 I | cephosd: skipping device &quot;ram12&quot;: [&quot;Insufficient space (&lt;5GB)&quot;].
2021-03-01 17:09:37.800115 I | cephosd: skipping device &quot;ram13&quot;: [&quot;Insufficient space (&lt;5GB)&quot;].
2021-03-01 17:09:38.895007 I | cephosd: skipping device &quot;ram14&quot;: [&quot;Insufficient space (&lt;5GB)&quot;].
2021-03-01 17:09:40.013397 I | cephosd: skipping device &quot;ram15&quot;: [&quot;Insufficient space (&lt;5GB)&quot;].
2021-03-01 17:09:40.013498 I | cephosd: skipping device &quot;sda&quot; because it contains a filesystem &quot;ext4&quot;
2021-03-01 17:09:40.013513 I | cephosd: skipping device &quot;sdb&quot; because it contains a filesystem &quot;ext4&quot;
2021-03-01 17:09:41.237145 W | cephosd: skipping OSD configuration as no devices matched the storage settings for this node
</code></pre>
<p>Original: <a href="https://superuser.com/questions/1630022/create-a-new-dev-sdb-c-d-on-wsl-for-ceph">https://superuser.com/questions/1630022/create-a-new-dev-sdb-c-d-on-wsl-for-ceph</a></p>

<p>Took me a couple days to sort out but, to get this working you need to:</p>
<ul>
<li>Get the developer preview of Windows 10 so you have the --mount option for WSL</li>
<li>Create a VHDX on your Windows Host. You can do this through your Disk Manager and creating a dynamic VHDX under the actions menu.</li>
<li>Mount that VHDX and, voila the 1/dev/sd{x}1 will be created. In my use-case this allowed Ceph to create the OSDs using that disk.</li>
</ul>
