nathan icon indicating copy to clipboard operation
nathan copied to clipboard

GPU issues in Kali VM

Open 1ultimat3 opened this issue 8 years ago • 7 comments

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

1ultimat3 avatar Dec 05 '16 16:12 1ultimat3

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

sfarletti avatar Dec 06 '16 10:12 sfarletti

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 avatar Dec 15 '16 06:12 lexaz777

nathan_x86.txt

lexaz777 avatar Dec 15 '16 06:12 lexaz777

Here is a log file

lexaz777 avatar Dec 15 '16 06:12 lexaz777

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

sfarletti avatar Dec 15 '16 16:12 sfarletti

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

lexaz777 avatar Dec 16 '16 07:12 lexaz777

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

sfarletti avatar Dec 16 '16 07:12 sfarletti