Installing Bliss OS 15 Android x86 Virtual Machine with virt-manager#
Due to the overheating issue while playing games on my phone, I decided to explore building an x86 virtual machine on Linux that can run games. After some research on Google, I found two options for the image: Prime OS and Bliss OS. However, I couldn't get Prime OS to work, but Bliss OS worked successfully. Although there were some rendering issues with the ba screen, I eventually switched to using Waydroid. Since many tutorials online didn't work for me, I decided to document the setup process.
Environment#
- Bliss OS iso image (I downloaded Bliss OS 15)
- Install qemu virt-manager. I use Arch, so I followed the installation instructions on ArchWiki. For other distributions, please search on Google.
- A graphics card that supports OpenGL 3D acceleration, including integrated graphics. According to this question, it requires a motherboard and graphics card that support IOMMU and have IOMMU enabled. Arch has IOMMU enabled by default. My 3060 is on the supported list, but it couldn't boot. AMD graphics cards are generally better and most of them are supported. I successfully booted using AMD integrated graphics.
1. Create a new virtual machine#
Follow the steps below to create a new virtual machine using virt-manager.
Step 1#
Select "Local install media" and click "Forward".
Step 2#
Select your ISO and choose "Android 9" as the operating system.
Step 3#
According to the official documentation, choose "4 cores" and "4 GB" RAM.
Step 4#
Allocate at least 10 GB of disk space. For demonstration purposes, I will use the default 20 GB.
Step 5 (Important!)#
You can change the name if you want. The default network settings should be sufficient, but you can make changes if needed. The key is to check the box for "Customize configuration before install".
2. Custom Configuration#
Overview Options#
Change the chipset to "Q35" (Q35 is recommended). Select "UEFI" for firmware (critical for system boot).
Display Protocol#
Choose "None" for the listen type. If you have multiple graphics cards and want to enable 3D acceleration, select "OpenGL" and make sure your graphics card supports it.
Graphics Card#
Select "Virtio" and check the box for "3D Acceleration".
IDE Disk and IDE CDROM#
Choose "VirtIO" for the IDE disk's bus for better performance. Choose "SATA" for the IDE CDROM.
Once the configuration is complete, click "Begin Installation" in the top left corner.
3. Install Bliss OS#
Partitioning#
Select "Installation".
Choose the first option "Create/Modify partitions".
When asked if you want to use GPT partition table, select "yes" and press Enter.
Press any key to continue and enter cgdisk.
Use the arrow keys to select "new", then press Enter for the first option (default), enter "+512M" for the second option, enter "ef00" for the third option (EFI system), press Enter for the fourth option, and give it a name "EFI" (naming is optional).
After completing these steps, it should look like this:
Use the arrow keys to select the third option for the remaining space, then press Enter to create a new partition. Press Enter again to use the default settings and name it "android".
Select "write" and press Enter to confirm with "yes". Finally, select "quit".
Install the System to the Hard Disk#
Select the second option after quitting.
Choose "ext4" as the format.
Confirm formatting vda2 by selecting "yes".
When asked if you want to install EFI GRUB2, select "yes".
Format vda1? Select "yes".
Wait for the installation to complete.
Finally, reboot.