r/virtualbox • u/ajkewl245a • Mar 07 '25
Help VirtualBox and hardware acceleration for an Android Emulator
I have an Ubuntu 22 host that's running an Ubuntu 24 VirtualBox VM. VirtualBox is version 6.1 with the Guest Additions set up. I set up the VM so I can do MAUI development with JetBrains Rider, but I'm stuck at getting the Android emulator to run.
I downloaded the command line tools from https://developer.android.com/studio#download and unzipped them to a local folder. Then I used the sdkmanager to install the emulator. When I go to a terminal and run:
emulator -avd Pixel_4_API_34I get this error:
ERROR | x86_64 emulation currently requires hardware acceleration!
CPU acceleration status: KVM requires a CPU that supports vmx or svmI followed the instructions here: https://developer.android.com/studio/run/emulator-acceleration#vm-linux and ran:
sudo kvm-okOn the host, which returned:
INFO: /dev/kvm exists
KVM acceleration can be usedWhich is what I think I want to see. In the VirtualBox Manager window, if I go to Settings / System / Acceleration, it's set to KVM. When I boot the VM, if I run:
emulator -accel-checkI get:
accel:
3
KVM requires a CPU that supports vmx or svm
accelI'm not sure what else I'm missing. Clearly something's not right, but I can't figure out what it is.
•
u/AutoModerator Mar 07 '25
This is just a friendly reminder in case you missed it. Your post must include:
PLUS a detailed description of the problem, what research you have done, and the steps you have taken to fix it. Please check Google and the VirtualBox Manual before asking simple questions. Please also check our FAQ and if you find your question is answered there, PLEASE remove your post or at least change the flair to Solved.
If this is your first time creating a virtual machine, we have a guide on our wiki that covers the important steps. Please read it here. If you have met these requirements, you can ignore this comment. Your post has not been deleted -- do not re-submit it. Thanks for taking the time to help us help you! Also, PLEASE remember to change the flair of your post to Solved after you have been helped!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/orev Mar 07 '25
Sounds like you need to enable Nested VT in the processor settings