Containerized way to run Android apps on Tumbleweed?

Could you send me an updated Qemu config file that has the CPU cores set to 6 and the allotted HDD space set to 40GB?

What other config parameters do I need to set?

Also, how do I run the file? I’ve never done that before.

@invalid_user_name Hi, so the -smp is for cpu’s so change that to 4 to 6. Then for your image just create qemu-img create /your/android/image/android_x86_64-9.0.img 40G

For memory it’s the -m. So you just have to add the iso image to the install first time it’s not needed afterwards;

=hda  /your/android/image/android_x86_64-9.0.img \
-cdrom /your/android/iso/android-x86_64-9.0-r2-k49.iso
1 Like

So -m sets the RAM.

How do I set the hard drive space? I want to set it at 50GB.

To make sure I understand; I have to download from somewhere android_x86_64-9.0.img and android-x86_64-9.0-r2-k49.iso ? Do I just do a Google search for them?

@invalid_user_name The download for the iso image is here https://sourceforge.net/projects/android-x86/files/Release%209.0/

You create the image somewhere you have space for it, lets say your $HOME dir;

mkdir -p ~/android/image ~/android/iso
qemu-img create ~/android/image/android_x86_64-9.0.img 40G
mv ~/Downloads/android-x86_64-9.0-r2-k49.iso ~/android/iso/

Install script;

#!/usr/bin/bash

qemu-system-x86_64 \
-enable-kvm \
-m 4096 \
-smp 6 \
-cpu host \
-device virtio-tablet-pci -device virtio-keyboard-pci \
-boot menu=on \
-net nic \
-net user,hostfwd=tcp::5555-:22 \
-monitor stdio \
-vga qxl \
-hda ~/android/image/android_x86_64-9.0.img \
-cdrom ~/android/iso/android-x86_64-9.0-r2-k49.iso

Save the script as say android_qemu_run in ~/bin and chmod 0755 ~/bin/android_qemu_run

Then run for the install, then you can remove the \ at the end of -hda ~/android/image/android_x86_64-9.0.img and remove -cdrom ~/android/iso/android-x86_64-9.0-r2-k49.isoline.

1 Like

You can use waydroid with distrobox, one of the easiest solution.

1 Like

Yes, this is what I want to do but my virt-manager and VirtualBox are not working. I’ll try to get them fixed soon.

The Qemu solution looks rather complicated for a noob like me, but I may give it a try if I can figure out the instructions. Right now the instructions aren’t completely clear to me, but I’ll play around with it and see.

They’re not required for distrobox, it’s available in the official repos as a package of the same name.

1 Like

Maybe I’m being too cautious, but I’d much rather install and use a complicated, possibly buggy app like Distrobox in a VM rather than my primary system.

It’s a wrapper around podman and docker, written as a couple of bash scripts. Not complicated at all :wink:

1 Like

Sounds good. I’ll research and play around with it. Thanks!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.