mseclab / nathan

Android Emulator for mobile security testing
MIT License
222 stars 46 forks source link

GPU issues in Kali VM #5

Open 1ultimat3 opened 7 years ago

1ultimat3 commented 7 years ago

I am trying to run the emulator on Kali. After running python nathan.py init and then python nathan.py -v start I receive the following output:

...
emulator: android_hw_fingerprint_init: fingerprint qemud listen service initialized
emulator: Skipping metrics reporting: No user opt-in.
emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.
emulator: Done with QEMU main loop
emulator: User-config was not changed.
Nathan closed. Byebye
sfarletti commented 7 years ago

Hello @mateuszk87

Can you please provide more information about your configuration? Which version of Kali are you running? Is kali running in a virtual machine or not? Do you have a GPU from nvidia or ati? if yes, are you drivers up to date? Thanks

lexaz777 commented 7 years ago

Hi, I have the same problem, as mateuszk87 described. I try start emulator in Kali Linux 2016.2 , installed inside the VirtualBox 5.1.10. Host system has configuration: CPU - Intel Core i5 3.2 GHz RAM - 8Gb GPU - Intel HD Graphics 4600

lexaz777 commented 7 years ago

nathan_x86.txt

lexaz777 commented 7 years ago

Here is a log file

sfarletti commented 7 years ago

Hi @lexaz777

Unfortunately VirtualBox has several "nested virtualization" issues so far. You can read more about it from this ticket https://www.virtualbox.org/ticket/4032 Anyway , if you want to give it a try you have to:

  1. Uncheck "Enable 3D Acceleration" from Settings -> Display of your Kali Box
  2. Open the file start.py under nathan/commands folder
  3. Edit the line EMULATOR_OPT_START replacing the flag "-gpu on" in "-gpu off"
  4. Edit the file config.ini under nathan/nathan_x86 folder
  5. Replace

skin.name=1080x1920 skin.path =1080x1920

with

skin.name =768x1280
skin.path =768x1280

run nathan.

By the way we recommend to use VMWare for nested virtualization. In order to run nathan flawless under VMWare you just have to check the flag "Enable hypervisor applications for this virtual machine" under Processors -> Advanced Options

Cheers

lexaz777 commented 7 years ago

Thanks, emalator have started to work. But Nathan shows only it's own screen. There are no usual Android menu, icons (

sfarletti commented 7 years ago

If you look carefully you will noticed that it's loading insanely slow. Unfortunately we will be able to provide a good user experience in Virtualbox only when those nested virtualization issues will be fixed. You can still run Nathan in Kali using VMWare, or outside a virtual environment.

Cheers