KVM not found error in Android Studio

amd
android-studio

#1

Hi all, I’m running an AMD CPU, here’s the output of LC_ALL=C lscpu:

Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 43 bits physical, 48 bits virtual
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: AuthenticAMD
CPU family: 23
Model: 1
Model name: AMD Ryzen 5 1400 Quad-Core Processor
Stepping: 1
CPU MHz: 3059.758
BogoMIPS: 7602.81
Virtualization: AMD-V
L1d cache: 32K
L1i cache: 64K
L2 cache: 512K
L3 cache: 4096K
NUMA node0 CPU(s): 0-7
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb hw_pstate sme ssbd sev ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov succor smca

When I try to make an virtual device in the latest version of Android Studio, it complains saying /dev/kvm is not found. KVM is supposed to ship with the kernel these days, so I’m not really sure what I need to do to fix this. AMD-V is clearly working as indicated by the lscpu output.


#2

Is the kvm module in the list of loaded modules?

lsmod | grep kvm

If not, can you load it?

sudo modprobe kvm 

#3

It turns out I am an utter moron and SVM was not turned on in the BIOS. Turning it on fixed the problem.


closed #4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.