Comments (8)
@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
- after that, we enabled the hardware virtualization support on the VM
- 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
from docker-android.
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:
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.
With stress (intense interaction with Google Maps):
from docker-android.
What about Vagrant? Then the setup could be automated as well (don't have experience with it though).
from docker-android.
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.
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.
@fernandoravagnani-luizalabs It would be great if you can put that information somehow in README.md and create PR.
from docker-android.
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.
- https://forums.virtualbox.org/viewtopic.php?f=6&t=82389
- https://gns3.com/discussions/gns3-vm-your-cpu-does-not-suppor
and the solution is by using VMWare.
from docker-android.
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)
- [๐ Feature Request ]: Support Java 17
- [๐ Bug ]: Emulator camera not working with webcam HOT 1
- [๐ Bug ]: Emulator is at Booting status forever HOT 4
- [๐ Bug ]: Emulator is not getting Booted HOT 1
- [๐ Bug ]: ้ป่ฎค้ ็ฝฎๆฏ2G่ฟ่กๅ ๅญ๏ผ8Gๅจๅญ๏ผ่ฟไธชๅฏไปฅๆนๅ๏ผ่ฟ่ก่ตทๆฅๅพๅก HOT 2
- I cant use adb shell because device is offline HOT 1
- [๐ Bug ]: Swap keeps increasing
- [๐ Bug ]: memory increase failed HOT 1
- unknown server OS HOT 7
- [๐ Bug ]: HOT 1
- [๐ Bug ]: Device data reset when docker restart HOT 11
- [๐ Feature Request ]: Emulator version 14.0 HOT 1
- [๐ Bug ]: FATAL state HOT 1
- [๐ Feature Request ]: Persist emulator state across docker restart HOT 1
- [๐ Bug ]: Windows 11 -> VMware -> Ubuntu 22 -> Docker -> BOOTING HOT 8
- [๐ Feature Request ]: Cannot install and use appium 2.0 plugins with using those images
- [๐ Feature Request ]: Document how to persist user data HOT 2
- [๐ Bug ]: "Segmentation fault (core dumped)" when run emulator -avd *** HOT 5
- [๐ Bug ]: Cannot access the Internet normally
- [๐ Bug ]: The emulator won't start when host machine is azure vm image: Ubuntu-latest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-android.