How to install ZIP-based OS in VirtualBox?

8,071

In your comment, you say

I know that LineageOS is not build for the PC but I want to try it out without the need of flashing it to my phone. It is possible to run the original Android image in VirtualBox although it is not build for this purpose.

As you point out, LineageOS is not built for the Intel x86 architecture used in PC processors, but for the ARM architecture used in most mobile devices.

When you say the "original Android image" can be run in VirtualBox, perhaps you're thinking of the Android x86 project? This is a version of Android that has been modified to run on x86 processors. Similarly, in order to run on x86 processors (and in VirtualBox) someone would need to port the LineageOS code itself and create a compatible build. You won't be able to run the OnePlus 3 version in VirtualBox as it is built for ARM processors.

If you want to try it out without flashing it to your phone, perhaps you could use some sort of Android Device Emulator for the PC?

Share:
8,071

Related videos on Youtube

questionanswer
Author by

questionanswer

Updated on September 18, 2022

Comments

  • questionanswer
    questionanswer over 1 year

    I'm trying to run LineageOS in VirtualBox. I have already downloaded the ZIP-file and tried to create a bootable ISO-file of the content with mkisofs. This was not successful because VirtualBox could not find a bootable medium (before booting I added the ISO to the optical drive).

    • Admin
      Admin over 7 years
      Did you try to follow the instruction for Android?
    • Admin
      Admin over 7 years
      I couldn't find a instruction where the OS was shipped as a ZIP. They always used ISO.
    • Admin
      Admin over 7 years
      What file have you downloaded exactly?
    • Admin
      Admin over 7 years
      LineageOS is a continuation of the CyanogenMod project. To this date there was no version of CM for PC (i.e. no VM version as well). There are a few Android x86 clones for desktop computers, though.
    • Admin
      Admin over 7 years
      I downloaded this file: lineage-14.1-20170125-nightly-oneplus3-signed.zip. When I unzip it I see these files and directories: boot.img, file_context.bin, firmware-update, install, META-INF, META-INF, recovery, system. I know that LineageOS is not build for the PC but I want to try it out without the need of flashing it to my phone. It is possible to run the original Android image in VirtualBox although it is not build for this purpose. That is the reason why I thought this would work the same way with LineageOS. But I don't know what to do with the ZIP-file in VirtualBox.
  • Guillaume Boudreau
    Guillaume Boudreau over 7 years
    Quick note: you can't run a custom ROM in an emulator (AVD or any other emulator available for PC). ROMs are devices-specific, and nobody publishes ROMs versions for emulators.
  • fixer1234
    fixer1234 over 6 years
    Welcome to Super User. This post is more of a commentary than an actionable solution to the question. Can you make the "how" more explicit?