Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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

like image 262
HPage Avatar asked Jan 21 '19 10:01

HPage


People also ask

Does WSL require Hyper V?

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.

Can WSL access Windows files?

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 .

Is WSL2 a VM?

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.

How do I access C drive WSL?

WSL will ordinarily mount your hard disks for you automatically in the /mnt directory. You can access the C: drive from under /mnt/c .


1 Answers

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

like image 66
Michael Hampton Avatar answered Nov 26 '22 19:11

Michael Hampton