Skip to content

Preparing a Virtual Machine for Bliss OS

Android in a VM is fine for smoke tests. It is slower and more fragile than bare metal. Prefer real hardware when you care about graphics or media performance.

Material below is adapted from older docs.blissos.org VirtualBox notes and updated for the Aaropa ISO flow.

Introduction

You will:

  1. Create a VM with enough CPU/RAM/disk.
  2. Attach the Bliss OS ISO.
  3. Boot the live environment and run the installer (same idea as Bootable installer).
  4. Reboot the VM from the virtual disk.

Supported hypervisors

Hypervisor Notes
QEMU/KVM Best choice for virtio-gpu bring-up. See VirGL / virtio.
VirtualBox Works for many people; display adapter settings matter.
VMware Usable; see VMware SVGA.

Setting up a Virtual Machine

Minimum comfort settings:

  • CPU: 2+ vCPUs
  • RAM: 4 GB+ (2 GB is painful)
  • Disk: 20 GB+ dynamically allocated
  • Firmware: EFI if you want to mirror typical PC installs
  • Network: NAT is enough for updates and downloads

VirtualBox-specific

Older Bliss docs required switching the display away from defaults that do not work without guest additions (historically VBoxVGA vs VMSVGA debates). If the guest never shows the installer UI, change the graphics controller and try again. Enable 3D only if your VirtualBox build actually accelerates Android guests.

Attach the Bliss OS ISO as an optical drive.

QEMU/KVM-specific

Use virtio disk and virtio-gpu when possible. Example ideas (adjust paths):

qemu-system-x86_64 -enable-kvm -m 4096 -smp 4 \
  -cdrom BlissOS.iso \
  -drive file=bliss.img,format=qcow2,if=virtio \
  -device virtio-vga-gl \
  -display gtk,gl=on

Exact flags depend on your QEMU version.

Install Bliss OS

  1. Start the VM and boot the ISO.
  2. Choose Install BlissOS like on bare metal.
  3. Use a virtual disk partition (ext4). Do not overcomplicate dual-boot inside the VM.
  4. Install GRUB to the virtual disk.
  5. Remove the ISO from the boot order, reboot, and select Bliss OS.

If graphics fail after install, try the GRALLOC/HWC experiments in Display and graphics.