I am running Android Studio from WSL. When I try to use the emulator I get "/dev/kvm" not found
. I have installed kvm and I have confirmed that vt-x emulation is enabled in my BIOS.
Is it possible to use kvm with WSL (Ubuntu)?
While WSL 2 uses Microsoft's Hyper-V as a hypervisor under the hood to run the utility VM, it does not require you to enable Windows' Hyper-V role or feature; WSL works perfectly fine without it.
One of the benefits of WSL is being able to access your files via both Windows and Linux apps or tools. Using your mounted drives, you can edit code in, for example, C:\dev\myproj\ using Visual Studio / or VS Code, and build/test that code in Linux by accessing the same files via /mnt/c/dev/myproj .
WSL 2 uses the latest and greatest in virtualization technology to run a Linux kernel inside of a lightweight utility virtual machine (VM). However, WSL 2 is not a traditional VM experience.
WSL will ordinarily mount your hard disks for you automatically in the /mnt directory. You can access the C: drive from under /mnt/c .
KVM only runs on an actual Linux kernel, not Windows Subsystem for Linux (which runs on a thin Linux emulation layer over the Windows kernel).
You can either run Android Studio on Linux natively, or use the Windows version of Android Studio (on Windows, only HAXM is supported).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With