I downloaded Android x86_64 5.1-rc1 as bootable img installation image.

I want to install it to a virtual machine running on Ubuntu 16.04 64 bit with UEFI using QEMU/KVM and virt-manager as graphical front end.

OVMF is installed and the hypervisor should be correctly configured, as a test VM of Ubuntu with UEFI which had its virtual disk files and installer image in the same place works fine.

However, when I boot a freshly created VM with the settings dumped below and the downloaded Android-x86 image mounted into the virtual CD drive, it does not boot but shows an EFI Shell:

Screenshot UEFI Interactive Shell v2.1

What am I doing wrong here? How can I install Android-x86 in a QEMU/KVM?

$ virsh dumpxml android-x86_64-5.1rc1
<domain type='kvm' id='2'>
  <memory unit='KiB'>1048576</memory>
  <currentMemory unit='KiB'>1048576</currentMemory>
  <vcpu placement='static'>1</vcpu>
    <type arch='x86_64' machine='pc-i440fx-wily'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader>
  <cpu mode='custom' match='exact'>
    <model fallback='allow'>Broadwell-noTSX</model>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
    <suspend-to-mem enabled='no'/>
    <suspend-to-disk enabled='no'/>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/vms/Android-x86_64-5_1rc1.qcow2'/>
      <target dev='hda' bus='ide'/>
      <boot order='1'/>
      <alias name='ide0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/storage/ImageFiles/android-x86_64-5.1-rc1.img'/>
      <target dev='hdb' bus='ide'/>
      <boot order='2'/>
      <alias name='ide0-0-1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x7'/>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <alias name='usb'/>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0' multifunction='on'/>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <alias name='usb'/>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x1'/>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <alias name='usb'/>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x2'/>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    <controller type='ide' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    <interface type='network'>
      <mac address='52:54:00:9b:51:f7'/>
      <source network='default' bridge='virbr0'/>
      <target dev='vnet0'/>
      <model type='rtl8139'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    <serial type='pty'>
      <source path='/dev/pts/5'/>
      <target port='0'/>
      <alias name='serial0'/>
    <console type='pty' tty='/dev/pts/5'>
      <source path='/dev/pts/5'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    <channel type='spicevmc'>
      <target type='virtio' name='com.redhat.spice.0' state='disconnected'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='spice' port='5900' autoport='yes' listen=''>
      <listen type='address' address=''/>
      <image compression='off'/>
    <sound model='ich6'>
      <alias name='sound0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    <redirdev bus='usb' type='spicevmc'>
      <alias name='redir0'/>
    <redirdev bus='usb' type='spicevmc'>
      <alias name='redir1'/>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
  <seclabel type='dynamic' model='apparmor' relabel='yes'>
  • Did you find a solution for QEMU/KVM? I can only boot Android x86 with VirtualBox which does not have an open source camera support.
    – baptx
    Jun 14, 2022 at 11:21

2 Answers 2


The "android-x86_64-5.1-rc1.img" file that is visible in your domain XML is not a CD-ROM image with an El Torito / EFI boot image on it. Instead, it seems to be a preinstalled hard disk image. It should be used in place of "Android-x86_64-5_1rc1.qcow2".

The download page doesn't seem to offer an ISO image suitable for your purpose.

  • Thanks, you are right. Mounting the IMG as IDE hard disk instead of IDE CD-ROM makes it able to boot the installer. However, after the install, I get to GRUB which shows the installed Android in normal and debug mode. But when I boot the normal one, I get to a black screen with blinking underscore, and if I boot debug mode, I get several prompts asking me to type "exit" to continue the boot process - which I do - and then keeps printing messages about some killed PIDs... Do you have any idea about that? May 26, 2016 at 22:48

There is a QEMU HowTo for Android-x86 but it did not work for me: https://www.android-x86.org/documentation/qemu.html

If someone else has an issue, you can give a try with virt-manager, it uses QEMU/KVM with a GUI and worked.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .