Using kvm with WSL (Trying to run Android emulator using WSL)
Asked Answered
E

1

6

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)?

Ermin answered 21/1, 2019 at 10:13 Comment(1)
boxofcables.dev/accelerated-kvm-guests-on-wsl-2Introrse
S
4

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).

Swaim answered 21/1, 2019 at 15:40 Comment(3)
what about WSL2 which runs on a real Linux kernel (latest LTS 4.19) in a light hyper-v vm?Badtempered
@Badtempered That's a whole other can of worms, but it won't work either for different reasons.Swaim
Maybe it's time to take a stab at it again boxofcables.dev/accelerated-kvm-guests-on-wsl-2Introrse

© 2022 - 2024 — McMap. All rights reserved.