Both Virtualbox and Android Studio's Android Virtual Device Manager (AVD) needs to be able to run on my Ubuntu 20.04 machine containing AMD Ryzen 3950X.
If KVM is disabled (such as by adding kvm_amd
to /etc/modprobe.d/blacklist.conf
, Virtualbox is able to run but not Android Studio AVD. Starting an AVD Virtual Device will give the error
Could not start AVD
However, if KVM is enabled, then Virtualbox is not able to run, but Android Studio AVD runs now.
VirtualBox can't enable the AMD-V extension. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_SVM_IN_USE).
Is there a way to allow both AVD virtual devices and Virtualbox VM to run at the same time? Or at least run one at a time, but able to stop the first and run the second one without restarting the machine?
Thanks!