I’m running Fedora 42 (Workstation) on a Ryzen 7 5800H laptop and I’m facing a virtualization conflict between VirtualBox and the Android Emulator.
System info
-
OS: Fedora Linux 42
-
Kernel: 6.17.8-200.fc42.x86_64
-
CPU: AMD Ryzen 7 5800H
-
VirtualBox Version: 7.1.12
-
Android Studio Emulator: Narwhal 3 Feature Drop | 2025.1.3
Build #AI-251.26094.121.2513.14007798 (Aug 28, 2025)
Runtime: OpenJDK 21 (JetBrains -
GPU: NVIDIA RTX 3050 Mobile + AMD Vega iGPU
Issue
VirtualBox throws the following error when I try to start a Kali VM:
VirtualBox can't enable the AMD-V extension. Please disable the KVM kernel extension,
recompile your kernel and reboot (VERR_SVM_IN_USE).
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: ConsoleWrap
Interface: IConsole
I can make VirtualBox work only by unloading KVM:
sudo rmmod kvm_amd // what I usually do before starting VMs
…but then the Android Emulator fails with:
/dev/kvm is empty – AMD-V is required
What I tried
-
Switched Android emulator acceleration from automatic to software – no effect
-
Set kali vm acceleration none to KVM manually – still fails
…Same issue persists
Goal
I want VirtualBox VMs and the Android Studio emulator to coexist on Fedora 42 without breaking AMD-V for one of them. ( I used to genymotion but failing to get root access make me migrate to android studio).
Question
Is there a known workaround or correct configuration for Fedora 42 that allows VirtualBox and KVM to run together on AMD CPUs?
Or should I migrate to another hypervisor setup?
(gpt generated and I checked it.)