How to install Android Nougat(7.1.2) on PC, MBR/BIOS Dual Boot on Ubuntu 17.04+
This works on VirtualBox and Real Hardware(tested on an HP 2000-299WM and Acer AOD250).
Download the ISO of Android x86 you want, 32-bit or 64-bit: https://osdn.net/projects/android-x86/releases/67834
Burn the image to a blank CD/DVD(easiest)
-or-
(use an unused flash drive, or backup your data prior to writing the image)
Write the image to a flash drive with Disks [ sudo apt install gnome-disk-utility ]
Run Disks and locate your USB flash drive on the list of Drives(usually /dev/sdb )
Click the 3 lines and click Format Disk, set Erase to Quick, and Partitioning to MBR/DOS
After this Wipe is performed, go back and click Restore Disk Image then locate your Android x86 ISO(it will have you confirm with Root if you wish to write the image)
Reboot, and Boot from the CD/DVD/USB
Install Android x86 to the same partition as your Ubuntu install(WITHOUT FORMATTING), should be /dev/sda1
It will install the entirety of Android in its own folder within your Ubuntu install
SKIP installing grub, we have that from Ubuntu and we don't want to break anything
Skip enabling system read/write, a general user won't really need this
Reboot back to Ubuntu
Press Control Alt T to open a terminal
Type [ sudo nano /etc/grub.d/40_custom ]
Below the default text add
menuentry "Android-x86 7.1-rc2" {
search --set=root --file /android-7.1-rc2/kernel
linux /android-7.1-rc2/kernel quiet root=/dev/ram0 androidboot.selinux=permissive
initrd /android-7.1-rc2/initrd.img
}
And press Control+X to save and exit, and Y and Enter to confirm
In the terminal type [ sudo update-grub2 ]
Now Ubuntu's GRUB2 can boot your Android x86 install, just hold Shift when booting up to access the grub boot menu.
Please Like, Share, Comment!