Android Enthusiasts
Q&A for enthusiasts and power users of the Android operating system
Latest Questions
2
votes
1
answers
543
views
Cannot get network/internet access within crosvm managed VM
I am trying to run a VM with internet access on my Pixel 6a and Android 14. I am using crosvm to successfully boot debian on the Pixel, but unfortunately I am not able to get internet access (or any communication to the host). ``` # https://crosvm.dev/book/devices/net.html ip tuntap add mode tap use...
I am trying to run a VM with internet access on my Pixel 6a and Android 14. I am using crosvm to successfully boot debian on the Pixel, but unfortunately I am not able to get internet access (or any communication to the host).
# https://crosvm.dev/book/devices/net.html
ip tuntap add mode tap user $USER vnet_hdr crosvm_tap
ip addr add 192.168.10.1/24 dev crosvm_tap
ip link set crosvm_tap up
#routing
sysctl net.ipv4.ip_forward=1
HOST_DEV=$(ip route get 8.8.8.8 | awk -- '{printf $5}')
iptables -t nat -A POSTROUTING -o "${HOST_DEV}" -j MASQUERADE
iptables -A FORWARD -i "${HOST_DEV}" -o crosvm_tap -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i crosvm_tap -o "${HOST_DEV}" -j ACCEPT
cd /apex/com.android.virt/bin/
./crosvm run \
-s /data/local/tmp/crosvm.sock \
--disable-sandbox \
--rwroot "/data/local/tmp/debian.ext4" \
--net tap-name=crosvm_tap \
--mem 2048 \
/data/local/tmp/kernel
So far, I followed the crosvm documentation and set up the TAP device and configure networking within the guest as described here: https://crosvm.dev/book/devices/net.html
I am using a kernel that supports virtio, but lspci still shows an unclassified ethernet controller and there is no /dev/virtio-ports device.
root@box:~# lspci -k
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma]
lspci: Unable to load libkmod resources: error -2
00:01.0 Mass storage controller: Red Hat, Inc. Virtio 1.0 block device (rev 01)
Subsystem: Red Hat, Inc. Virtio 1.0 block device
Kernel driver in use: virtio-pci
00:02.0 Unclassified device [00ff]: Red Hat, Inc. Virtio 1.0 RNG (rev 01)
Subsystem: Red Hat, Inc. Virtio 1.0 RNG
Kernel driver in use: virtio-pci
00:03.0 Unclassified device [00ff]: Red Hat, Inc. Virtio 1.0 memory balloon (rev 01)
Subsystem: Red Hat, Inc. Virtio 1.0 memory balloon
Kernel driver in use: virtio-pci
00:04.0 Unclassified device [00ff]: Red Hat, Inc. Virtio 1.0 network device (rev 01)
Subsystem: Red Hat, Inc. Virtio 1.0 network device
Kernel driver in use: virtio-pci
00:05.0 USB controller: Fresco Logic Device 1400
Kernel driver in use: xhci_hcd
00:06.0 Unassigned class [ffff]: Red Hat, Inc. Device 0011 (rev 01)
Subsystem: Device 00ff:00ff
Kernel driver in use: pvpanic-pci
How to setup a virtual network device on Android properly so that I can get internet/network access within my VM?
0bscur3
(21 rep)
Jan 16, 2024, 03:37 PM
• Last activity: Jun 22, 2025, 10:43 AM
1
votes
1
answers
91
views
Can I mount dead phone's partitions in VM?
Dead phone. Have all partitions saved/read off internal memory including data partitions, all not encrypted, phone was rooted. Android 11 custom ROM, crDroid. Need to mount data partition if possible, in Linux or Windows, doesn't matter. Is there a way to mount all partitions in some ARM Android VM...
Dead phone. Have all partitions saved/read off internal memory including data partitions, all not encrypted, phone was rooted. Android 11 custom ROM, crDroid.
Need to mount data partition if possible, in Linux or Windows, doesn't matter.
Is there a way to mount all partitions in some ARM Android VM to recreate the phone with data? Had trouble mounting data partition in Linux. Thanks.
Jeff7
(63 rep)
Mar 18, 2024, 07:30 AM
• Last activity: Mar 20, 2024, 07:51 PM
2
votes
1
answers
1001
views
Virtualize Android on an Android device and then share the VM image to another device?
I just installed [VMOS][1] on my Android phone. Now I have created a virtual machine that I want to run on a different device as well. Usually when you run VM-software you can more or less just copy an image between machines and then execute exactly the same VM on a second device by selecting this i...
I just installed VMOS on my Android phone. Now I have created a virtual machine that I want to run on a different device as well. Usually when you run VM-software you can more or less just copy an image between machines and then execute exactly the same VM on a second device by selecting this image when launching the VM-software.
However, in VMOS I can't find the image file nor find an option to select a specific image file to launch. Am I missing something or does VMOS not support this? Are there any other alternatives for Android that allows me to setup a VM on one device and then use it on other devices?
d-b
(275 rep)
Feb 19, 2022, 11:37 AM
• Last activity: Feb 19, 2022, 01:59 PM
1
votes
1
answers
467
views
Which Virtual machine is used in Android 11?
Every Android application runs in a virtual machine. We know that Dalvik virtual machine \was the one that is used by Android. Next, they changed to ART (Android Runtime machine). Just correct me if I am wrong. Android 11 uses which virtual machine, Dalvik or ART?
Every Android application runs in a virtual machine. We know that Dalvik virtual machine \was the one that is used by Android. Next, they changed to ART (Android Runtime machine). Just correct me if I am wrong. Android 11 uses which virtual machine, Dalvik or ART?
Mdshammi111
(11 rep)
Jan 21, 2021, 11:50 PM
• Last activity: Jan 22, 2021, 06:38 AM
11
votes
4
answers
88700
views
Run an android Virtual Machine on an android phone
I haven't been able to find an answer for this so I figured I would ask here. Is there an app or method I can use to create and run an Android Virtual Machine on my Android Phone? I have a personal phone I want to put my work email on; however, my work email requires Microsoft Intune which requires...
I haven't been able to find an answer for this so I figured I would ask here.
Is there an app or method I can use to create and run an Android Virtual Machine on my Android Phone?
I have a personal phone I want to put my work email on; however, my work email requires Microsoft Intune which requires that I give permission for my company to clear my phone at any time without warning. The reason they do this is in case I have company secrets on my phone and I if I become a risk they want to wipe my phone. I wanted to work around this by putting an android virtual machine on my phone. This way the company can clear my phone if they please but they will just wipe my VM not me actual personal phone.
I saw an article that VMWare was doing something like this but I couldn't find any documentation on it.
Does anyone know of a way to put a Android VM on an Android phone?
Error - Syntactical Remorse
(213 rep)
Jun 22, 2018, 04:56 PM
• Last activity: May 11, 2020, 04:59 AM
2
votes
0
answers
824
views
adb devices not working in Hyper-V
I connected Motorola android device on my host machine. I can not view the connected device from Hyper-V VM (Windows 10) I can not see connected android devices (adb) from VM, but i can very well see it on host. 1. Device on developer mode 2. SDK installed in both VM and Host [
SANTI SANTOSH MAHAPATRA
(21 rep)
Feb 5, 2020, 07:19 AM
0
votes
1
answers
274
views
Android Application fundamentals Process Virtual Machine
I just started on application development and wanted to learn properly everything about how Android works. I came across four bullet points (https://developer.android.com/guide/components/fundamentals) that explain that Android sets each app as a different Linux user and that each process has its ow...
I just started on application development and wanted to learn properly everything about how Android works.
I came across four bullet points (https://developer.android.com/guide/components/fundamentals) that explain that Android sets each app as a different Linux user and that each process has its own virtual machine (VM). Here's the part confusing me, one of the bullet points (third one) doesn’t specify which process are encompassed in a virtual machine.
> • Each process has its own virtual machine (VM), so an app's code runs in isolation from other apps.
This is the first time on the page it mentions a *process* which is why I am confused.
My question is which processes are running in a virtual machine?
- Is it the main Linux process only?
- is it ALL of the processes within the Linux process?
If so, how can processes communicate between each other if each one of them are running in isolation (in VM)?
Thank you for your time.
ToughSquirrel
(1 rep)
Jul 11, 2018, 12:31 PM
• Last activity: Jul 13, 2018, 06:15 PM
4
votes
2
answers
23571
views
Android 6.0 x86_64 bit boot stuck at root@x86_64:/ on Windows Hyper-V
I have been trying to start up and Android x86 (64-bit) on Hyper-V using the latest edition available from http://www.android-x86.org/releases/releasenote-6-0-r2http I have installed it with GRUB and created a bootable Partition during installation. Format drive to ext4. Every time I try to run the...
I have been trying to start up and Android x86 (64-bit) on Hyper-V using the latest edition available from http://www.android-x86.org/releases/releasenote-6-0-r2http
I have installed it with GRUB and created a bootable Partition during installation. Format drive to ext4.
Every time I try to run the VM I am presented with the following image
and it doesn't proceed to boot to the android screen. Anyone have an idea how to fix? I would greatly appreciate it.

Asmil
(43 rep)
Mar 21, 2017, 06:46 PM
• Last activity: Apr 9, 2018, 02:26 AM
1
votes
0
answers
118
views
Closed circuit app on Android
I'd like to know if there is a way to run an android app on a closed circuit minimalist type of android VM on an android device so that I can have a full control of what the app has access to and when it is allowed to run. I'm asking this because I have to use the facebook messenger app (the mobile...
I'd like to know if there is a way to run an android app on a closed circuit minimalist type of android VM on an android device so that I can have a full control of what the app has access to and when it is allowed to run.
I'm asking this because I have to use the facebook messenger app (the mobile browser version of facebook doesn't allow you to use instant messaging anymore) and this app causes a **HUGE power drain**, as well as a big **privacy issue** (that app has access to almost anything on the smartphone)
I know that it is still possible to use the desktop browser version on android but it takes more time to load than the adapted client.
Also if there is another client that I could use to replace messenger while still using their messaging system, that would answer the question.
Thank you in advance
R3D34THR4Y
(21 rep)
Jun 11, 2016, 01:33 PM
2
votes
1
answers
70
views
Searching for a VM?
I would like to know if there is a app/ etc. thats makes possible to use multiple smartphone operating systems on device. To be precise: Is how to get an VM. Are there any apps or other posiblilities. Or other stuff for andriod similar to "Bluestacks for Windows-Phone"
I would like to know if there is a app/ etc. thats makes possible to use multiple smartphone operating systems on device. To be precise: Is how to get an VM. Are there any apps or other posiblilities.
Or other stuff for andriod similar to "Bluestacks for Windows-Phone"
user281336
(298 rep)
Nov 9, 2014, 11:29 PM
• Last activity: May 14, 2015, 10:50 AM
Showing page 1 of 10 total questions