Tuesday, 1 April 2014

Enabling Virtio drivers in kernel for running androidx86 on Openstack

Guest operating systems running on virtualised systems needs to cooperate with the underlying hypervisors when using virtualised resources. Virtio is a set of standard for disk and network virtualisation that is required to be installed on instances that runs on Openstack. The default Androidx86 kernel does not come with these modules installed. Also, you have to edit the source code of Androidx86 OS to detect the virtualised block devices. Otherwise you will see a screen with "Detecting Android-x86... (continuous dots :s)".

This is what you will see in androidx86 debug mode:

If you do not want to compile the source and set it up yourself. I have already created the image for you. Download it from here.

1. First, to compile the OS you have to initialise the build environment. Follow instructions here.

This solution is a little bit outdated since all the source code has been modified like this:for device in ${ROOT:-/dev/[hmsv][dmr][0-9a-z]*}; do

I am confused with your last sentence of this post: "To get get GUI, add "nomodeset" to grub." So basically we can install android on Openstack with GUI right?Could you please take a look at the newest versions of android x86 and OpenStack, I could not make it run properly, even though the source code has been fixed by the developer.The kernel cannot recognize the Virtual hard disk of the instance but can recognize the volume (i added) - this is the workaround and i can install the OS to the volume. After that, I tried to detach the volume, but it could not boot into the installed OS on that volume anymore.. weird