GithubHelp home page GithubHelp logo

Comments (8)

fernandoravagnani-luizalabs avatar fernandoravagnani-luizalabs commented on May 11, 2024 2

@butomo1989 here was the steps to enable the virtualization in the VM:

  • first we upgraded the VM's virtual machine hardware, from version 8 to version 10

screenshot from 2017-06-28 14-48-39

  • after that, we enabled the hardware virtualization support on the VM

screenshot from 2017-06-28 14-47-19

  • finaly we checked the Expose hardware assisted virtualization to the guest OS. After this checked option, we were able to use the kvm feature on the OS

ps: using hardware or software CPU and MMU was praticaly the same performance

screenshot from 2017-06-28 15-14-06

from docker-android.

alanbuenoerlabs avatar alanbuenoerlabs commented on May 11, 2024 1

Hi @butomo1989,

I realized that it was not so clear in the issue, but it's a VM running on a physical machine with VMWare ESXI 5.5, Hardware acceleration enabled on bios and Nested Virtualization provided.
It can be easily verified with a ubuntu packet called cpu-checker that u can install with:

apt-get install cpu-checker

Once it's installed, we can check the Kvm status with the command:

kvm-ok

It would tell us if this environment is ready to virtualization with hardware acceleration, like shown below:
kvmok

There's no any parallel process running, this ubuntu is exclusively for this device virtualization and the numbers with two devices with and without stress.

Without stress:
memory2devices

With stress (intense interaction with Google Maps):
deviceusagemapsinteraction

Usage:
devicesmaps

from docker-android.

andrcuns avatar andrcuns commented on May 11, 2024 1

What about Vagrant? Then the setup could be automated as well (don't have experience with it though).

from docker-android.

budtmo avatar budtmo commented on May 11, 2024

Hi @alanbueno ,

Thank you for reporting this issue. as I understand that you are using VMWare to simulate linux OS, could you provide me guideline or step how you enable hardware virtualisation in that VM to be able to use x86 image (of course you can create PR for it)? because as far as I remember VM do not support hardware virtualisation (see #11 ).

In my linux computer 1 docker-container of docker-android consume 1 GB RAM, but the usage of RAM will get bigger when you start play with it and also depends on your application. e.g. hello world android application in emulator should consume less memory than any other bigger application like google map. Could you run top in your command line in your linux machine and see how many memory do you need for docker-android and how many free memory do you have? and is there any other parallel process running in that VMWare?

from docker-android.

budtmo avatar budtmo commented on May 11, 2024

Hi,

@alanbueno Honestly I never try to run x86 docker-android image under VM. I just created gitter and could you join there: https://gitter.im/butomo1989/docker-android ? I might need additional informations so I can help you.

@fernandoravagnani-luizalabs Cool! Last time I tried with VM from virtualbox that was created by docker-machine and it didn't work. I will try again to create VM by myself. but I am really glad that it works with other VM like ESXi although there is performance issue. Thank you for the guideline!

from docker-android.

budtmo avatar budtmo commented on May 11, 2024

@fernandoravagnani-luizalabs It would be great if you can put that information somehow in README.md and create PR.

from docker-android.

budtmo avatar budtmo commented on May 11, 2024

I tried following cases:
Host OS: OSX; Virtualbox: Ubuntu 16.04; Status: failed (x86 cannot be run under that VM)
Host OS: Ubuntu 16:04; Virtualbox: Ubuntu 16.04; Status: failed (x86 cannot be run under that VM)

It seems Virtualbox has issue with nested virtualisation.

and the solution is by using VMWare.

from docker-android.

budtmo avatar budtmo commented on May 11, 2024

I will try to run under VMWare player and will provide the docs in the end. Regarding vagrant I might just create ticket and mark as "help wanted". Maybe someone who has experience with vagrant can investigate it. @andrcuns

from docker-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.