Git Product home page Git Product logo

androidx86-installer-qemu-linux's Introduction

Quick setup Android-x86 QEMU guest.

This script automates the process of deploying android x86 guests for QEMU.
Bypassing GRUB2, Android x86 installation wizard.
Easily change resolution of guest by using video= in kernel command line (-append "cmdline")
Tested to work on Fedora / Arch Linux with QEMU 6.2 / 7.0-7.1

To install Android in specified directory with a disk image of 8GB, run
sudo bash install.sh -s 8 -i /path/to/android-x86.iso -d ~/Documents/android-x86

Command line options:

install.sh [-s X] -i android_iso_path -d android_install_dir

Options:
    -i, --isofile (iso)       Android-x86 ISO file
    -d, --destination (path)  Directory to install android files into
    -s, --size (size)         Size in GB (default=8)
        --rw-system           Extract system.img from system.sfs 
        --extract-system      Extract system.img and copy contents
    -h, --help                Display this message and exit

An alternate version of this documentation is available here: https://xtr126.github.io/XtMapper-docs/blissos/quick_vm/
Refer to QEMU advanced configuration section in BlissOS wiki and/or other resources for Audio support and other further optimizations/tweaks/settings applicable to Android running on QEMU, that are beyond the scope of this script.
https://docs.blissos.org/installation/install-in-a-virtual-machine/advanced-qemu-config

--extract-system might have problems with certain Android builds, do not use that option with

  • AOSP 12L build 2022-03-17 from blissos.org
    System will be stuck at Detecting Android x86...
    initrd.img will be looking for system.img or default.prop, but this build has no default.prop.
    Newer Bliss 14/15 builds should work fine.

  • Project Sakura x86 by HMTheBoy154
    Has initrd-magisk integrated to system, it doesnt like /system bind mounted from a directory rather than system.img. Will most likely result in a bootloop.

androidx86-installer-qemu-linux's People

Contributors

xtr126 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

androidx86-installer-qemu-linux's Issues

No sound (Solved)

the android has no sound
I solved this by adding

   -device ich9-intel-hda,id=sound0,bus=pcie.0,addr=0x1b -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 \
   -global ICH9-LPC.disable_s3=1 -global ICH9-LPC.disable_s4=1\

and in this link

Run magisk?

Any idea on how to run Magisk on this?

I tried to use HuskyDG/initrd-magisk

After running install.sh, I combined initrd-magisk.img and initrd.img file into a new file and used that as initrd for qemu command. But magsik manager doesn't see any magisk installed.

Kernel not found

Some android builds, delivering with multiple kernel. ( kernel-5.10 and kenel-5.15 etc.)
Launcher looking for "kernel" and cannot find the kernel, writing an error and exit.
Yo should check kernel file thats named other than "kernel"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.