Android Studio Virtual Device

Mar 18, 2025
5
0
1
I have a Dell Server with an E5-2697 v4 @ 2.30GHz running Proxmox 8.3.0. I have a Windows 11 VM where I installed Android Studio. When I try to start a virtual device, I get a message that says, "Your CPU does not support required features (VT-x or SVM)."

Is there a way to configure my server, Proxmox, VM, or Android Studio to be able to run a virtual device?
 
Hi @djurden1 ,

Please try to enable nested virtualization. This allows the VM to utilize hardware-assisted virtualization features like Intel VT-x. Here's how you can achieve this:

1. Enable Nested Virtualization on the Proxmox Host:
First, ensure that your Proxmox host is configured to support nested virtualization.
  • Check if Nested Virtualization is Enabled:
    Open a terminal on your Proxmox host and run:
cat /sys/module/kvm_intel/parameters/nested

If the output is N, nested virtualization is not enabled.
  • Enable Nested Virtualization:
    Create a configuration file to enable nested virtualization:
echo "options kvm-intel nested=Y" /etc/modprobe.d/kvm-intel.conf
Reload the kernel module to apply the changes:

modprobe -r kvm_intel modprobe kvm_intel

Verify that nested virtualization is enabled by running the check command again.

2. Configure the Windows 11 VM to Use Host CPU:
Next, configure your Windows 11 VM to utilize the host's CPU features.
  • Modify VM Configuration:
    Edit the VM's configuration file (usually located at /etc/pve/qemu-server/<VMID>.conf) and set the CPU type to host.
cpu: host
Replace <VMID> with your actual VM ID.
  • Alternatively, Use the Command Line:
    Run the following command on your Proxmox host:
qm set <VMID>; --cpu host
Replace <VMID> with your VM's ID.

3. Enable Virtualization Features in the Windows 11 VM:
Ensure that the necessary virtualization features are enabled within your Windows 11 VM.
  • Access Windows Features:
    In your Windows 11 VM, go to "Control Panel" > "Programs" > "Turn Windows features on or off".
  • Enable Hyper-V:
    Check the box for "Hyper-V" and click "OK".
  • Enable Virtual Machine Platform:
    Similarly, ensure that "Virtual Machine Platform" is enabled.
4. Verify Virtualization Support Inside the VM:
To confirm that virtualization is enabled within your Windows 11 VM:
  • Open Command Prompt:
    Press Win + R, type cmd, and press Enter.
  • Check Virtualization Status:
    Run the following command:
systeminfo.exe
Look for the "Hyper-V Requirements" section. If it states that a hypervisor has been detected, it means virtualization is enabled.

Additional Considerations:
  • BIOS Settings:
    Ensure that virtualization is enabled in your server's BIOS settings. Refer to Dell's guide on enabling hardware virtualization:
By following these steps, your Windows 11 VM should be able to utilize hardware-assisted virtualization, allowing you to run virtual devices in Android Studio without encountering the VT-x or SVM support error.
 
Nested virtualization is enabled on the host.
Changed the cpu on the VM to host.
Enabled Hyper-V and Virtual Machine Platform.
I have 1 socket-8 cores and 16GB memory allocated to the VM.

systeminfo.exe shows:
.
.
.
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 79 Stepping 1 GenuineIntel ~2300 Mhz
.
.
.
Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.


When I start a virtual device, it now says: "The emulator process for AVD Medium_Phone as terminated."
 
Last edited: