It may be desired to connect to the android-x86 system in the container running in the virtual machine, via the browser, to the public localhost application over any network.
to based on Debian VM
- Preliminary requirements and kvm settings in this gist must be made for VM.
- In addition, in order for the virtual machine to perform virtualization, it is necessary to enable the nested virtualize feature. For this go to these links: to Vbox or to VMWare.
- Pull qemu-docker image
- Type the following line to download the Android-x86 iso and launch it in qemu.
docker run -it --rm --name qemu -e "BOOT=https://sourceforge.net/projects/android-x86/files/latest/download" -p 8006:8006 --device=/dev/kvm --cap-add NET_ADMIN qemux/qemu-docker
- To learn IP address:
ip a
- Enter your VM IP address and
8006
port into the browser to access the system
http://<vm_ip_address>:8006
- Use my ngrok gist to open it to the internet and set the port to 8006
ngrok http http://<ip_address>:8006
- For android installation, use this gist
That's all.