title: Install v4l2loopback in WSL2
body: <p>I am currently struggling with <code>v4l2loopback</code> installation on WSL2.</p>
  <p><em>Some context:</em></p>
  <p>Recently, I have read about <a href="https://www.linux.com/news/linux-kernel-47-offers-new-support-virtual-devices-drivers-and-more/" rel="nofollow noreferrer">create a virtual video device in Linux</a> and then mock its output from an image or video file.</p>
  <p>This is quite important for testing or developing purposes, for example in order to attach a virtual webcam that reproduces a video file as a loop to the android emulator.</p>
  <p>After some research I got to the conclusion I don't want to use desktop applications and it might be easy to run even in a CI or similar, therefore <a href="https://github.com/umlaeute/v4l2loopback" rel="nofollow noreferrer">v4l2loopback</a> looks nice, but I am currently a Windows user.</p>
  <p>I enabled WSL2 on my machine, downloaded the repo, and tried to execute <code>make</code> command like in the repo description.</p>
  <pre><code>Building v4l2-loopback driver...
  make -C /lib/modules/`uname -r`/build M=/home/angel/v4l2loopback modules
  make[1]: *** /lib/modules/4.19.84-microsoft-standard/build: No such file or directory.  Stop.
  make: *** [Makefile:43: v4l2loopback.ko] Error 2
  </code></pre>
  <p>I googled a little bit and i found that <a href="https://github.com/microsoft/WSL2-Linux-Kernel/issues/80" rel="nofollow noreferrer">issue</a> on GitHub where a similar output (for another tool) is mentioned.
  There, someone mentioned that <a href="https://github.com/microsoft/WSL2-Linux-Kernel/blob/master/Microsoft/config-wsl" rel="nofollow noreferrer">WSL2 Kernel Config</a> can be adjusted in order to add more modules ( maybe and hopefully one of them could make work v4l2-loopback  or at least that I think).</p>
  <p>I also googled in order to check out <a href="https://docs.microsoft.com/en-us/windows/wsl/build-custom-distro" rel="nofollow noreferrer">custom WSL builds</a> but I am not really sure what I need to make it work or even if I am going in the right direction.</p>
  <p>Is there something I 've missed in order to make <code>v4l2loopback</code> work?</p>
  <p>In the case only a custom WSL2 build would work, how should I proceed?</p>
  <p>Thanks in advance </p>