Tutorial Best Android emulator for linux with virgl

NotSnail

Active member
If you are linux user or if you nvidia graphics card is better supported in linux but not in android x86 then this is for you .
You can use any debian based linux distro for this but i would recommend linux mint .

Now you just copy paste these commands in the terminal

sudo apt install qemu qemu-kvm
sudo adduser `id -un` kvm

After qemu is installed , we need to make a virtual hdd . For now i am giving it 10 gb. paste this commands in the terminal

qemu-img create -f qcow2 androidx86_hda.img 10G

The virtual hard disk will be of some kbs but its size will increase as you install android .
Now download an iso of android from android x86 website . Android 9.0 r2 with Kernel 4.9 has the best stability and compatibility . You can even use BlissOS but you need to have uefi bios(in the vm) and blissos version 11.14 as it has kvm support .Android 10 builds have mouse problem . Darkmatter has some weird problems . Pheonix OS works .

Pasting this in terminal starts the vm

qemu-system-x86_64 \
-enable-kvm \
-m 2048 \
-smp 2 \
-cpu host \
-soundhw es1370 \
-device virtio-mouse-pci -device virtio-keyboard-pci \
-serial mon:stdio \
-boot menu=on \
-net nic \
-net user,hostfwd=tcp::5555-:22 \
-device virtio-vga,virgl=on \
-display gtk,gl=on \
-hda androidx86_hda.img \
-cdrom android-x86_64-9.0-r2.iso

m is memory in mb .smp is for no of cpu cores assigned to the vm .Just change the value . Dont give values more than your computer has .The location of the iso file should be given after cdrom .

Miscellaneous tips .
I like to copy the command to launch to text file and save it as .sh file extension and change the permissions to run it as program . Then you can just double click the file and choose to run the vm .

This is if you are a linux user and don't want to restart to use android or if you hardware is better supported in linux as for nvidia cards or if wifi does not work . You may run into graphic glitches sometimes . Restarting the vm fixes those issues . Upgrading kernel through gearlock wont work because they dont have have kvm and virgl support .

To change vm resolution refer to this article
 

HMTheBoy154

Supreme
Moderator
Blog Author
What problem does Darkmatter have ? Also I asked Mauro Rossi for the virtio-gpu support and he said that it's fine on newer Android, so I'm guessing that using newer kernel than 4.9 is not a big deal
Also
blissos version 11.14 as it has kvm support
This doesn't mean that "BlissOS run good with KVM", it mean "the kernel inside BlissOS have KVM so you can install QEMU on it and run the VM with it", you saw that me and some people here tried to run other OS with KVM + Limbo
 

NotSnail

Active member
android-x86_64-9.0-

What problem does Darkmatter have ? Also I asked Mauro Rossi for the virtio-gpu support and he said that it's fine on newer Android, so I'm guessing that using newer kernel than 4.9 is not a big deal
Also

This doesn't mean that "BlissOS run good with KVM", it mean "the kernel inside BlissOS have KVM so you can install QEMU on it and run the VM with it", you saw that me and some people here tried to run other OS with KVM + Limbo
Sorry if I made any mistakes as i am a noob . I meant that whenever i ran any android x86 version with kernel 5.x and above and mesa 20.xx in qemu with virgl enabled the mouse was distorted and always became invisible . I installed latest bliss os 11.14 and that problem was fixed .SO when i checked the changelog it said that it had kvm support , so i thought that it was qemu on linux . This problem was even there whenever kernel and mesa was upgraded through gearlock . For Darkmatter it booted up fine after first boot but it bootlooped after that whenever i tried to open it.

My specs
10th gen intel icelake i3 1005g1 with virtualization enabled and linux mint
 

Xtr

Well-known member
If you are linux user or if you nvidia graphics card is better supported in linux but not in android x86 then this is for you .
You can use any debian based linux distro for this but i would recommend linux mint .

Now you just copy paste these commands in the terminal

sudo apt install qemu qemu-kvm
sudo adduser id -un kvm

After qemu is installed , we need to make a virtual hdd . For now i am giving it 10 gb. paste this commands in the terminal

qemu-img create -f qcow2 androidx86_hda.img 10G

The virtual hard disk will be of some kbs but its size will increase as you install android .
Now download an iso of android from android x86 website . Android 9.0 r2 with Kernel 4.9 has the best stability and compatibility . You can even use BlissOS but you need to have uefi bios(in the vm) and blissos version 11.14 as it has kvm support .Android 10 builds have mouse problem . Darkmatter has some weird problems . Pheonix OS works .

Pasting this in terminal starts the vm

qemu-system-x86_64 \
-enable-kvm \
-m 2048 \
-smp 2 \
-cpu host \
-soundhw es1370 \
-device virtio-mouse-pci -device virtio-keyboard-pci \
-serial mon:stdio \
-boot menu=on \
-net nic \
-net user,hostfwd=tcp::5555-:22 \
-device virtio-vga,virgl=on \
-display gtk,gl=on \
-hda androidx86_hda.img \
-cdrom android-x86_64-9.0-r2.iso

m is memory in mb .smp is for no of cpu cores assigned to the vm .Just change the value . Dont give values more than your computer has .The location of the iso file should be given after cdrom .

Miscellaneous tips .
I like to copy the command to launch to text file and save it as .sh file extension and change the permissions to run it as program . Then you can just double click the file and choose to run the vm .

This is if you are a linux user and don't want to restart to use android or if you hardware is better supported in linux as for nvidia cards or if wifi does not work . You may run into graphic glitches sometimes . Restarting the vm fixes those issues . Upgrading kernel through gearlock wont work because they dont have have kvm and virgl support .

To change vm resolution refer to this article
Check out these new docker images
 

AXON

Supreme
Moderator
Blog Author
Check out these new docker images
@AXON well I think you should finish betterinitrd lol
Hmm I will, recently I'm just sick of the fact that people will crash on us with their huge list of issues... so I also decided to crash on them with my huge list of wiki pages K_K

Btw, see https://wiki.supreme-gamers.com/guides/run-android-x86-on-linux-distro/
 

Xtr

Well-known member
If you are linux user or if you nvidia graphics card is better supported in linux but not in android x86 then this is for you .
You can use any debian based linux distro for this but i would recommend linux mint .

Now you just copy paste these commands in the terminal

sudo apt install qemu qemu-kvm
sudo adduser id -un kvm

After qemu is installed , we need to make a virtual hdd . For now i am giving it 10 gb. paste this commands in the terminal

qemu-img create -f qcow2 androidx86_hda.img 10G

The virtual hard disk will be of some kbs but its size will increase as you install android .
Now download an iso of android from android x86 website . Android 9.0 r2 with Kernel 4.9 has the best stability and compatibility . You can even use BlissOS but you need to have uefi bios(in the vm) and blissos version 11.14 as it has kvm support .Android 10 builds have mouse problem . Darkmatter has some weird problems . Pheonix OS works .

Pasting this in terminal starts the vm

qemu-system-x86_64 \
-enable-kvm \
-m 2048 \
-smp 2 \
-cpu host \
-soundhw es1370 \
-device virtio-mouse-pci -device virtio-keyboard-pci \
-serial mon:stdio \
-boot menu=on \
-net nic \
-net user,hostfwd=tcp::5555-:22 \
-device virtio-vga,virgl=on \
-display gtk,gl=on \
-hda androidx86_hda.img \
-cdrom android-x86_64-9.0-r2.iso

m is memory in mb .smp is for no of cpu cores assigned to the vm .Just change the value . Dont give values more than your computer has .The location of the iso file should be given after cdrom .

Miscellaneous tips .
I like to copy the command to launch to text file and save it as .sh file extension and change the permissions to run it as program . Then you can just double click the file and choose to run the vm .

This is if you are a linux user and don't want to restart to use android or if you hardware is better supported in linux as for nvidia cards or if wifi does not work . You may run into graphic glitches sometimes . Restarting the vm fixes those issues . Upgrading kernel through gearlock wont work because they dont have have kvm and virgl support .

To change vm resolution refer to this article
Mention instructions for arch linux users like me also, easily install android from AUR https://aur.archlinux.org/packages/qemu-android-x86/
 

NotSnail

Active member
DM 4.7 beta 2 using iso

Hmm I will, recently I'm just sick of the fact that people will crash on us with their huge list of issues... so I also decided to crash on them with my huge list of wiki pages K_K

Btw, see https://wiki.supreme-gamers.com/guides/run-android-x86-on-linux-distro/

Mention instructions for arch linux users like me also, easily install android from AUR https://aur.archlinux.org/packages/qemu-android-x86/
Since i dont have much experience of arch , i cannot say much. I read some where it is difficult for virgl to work in arch .
 
  • Like
Reactions: Xtr

Similar threads

Similar threads

Get Connected

Discord Server

New Threads

Top