Friday, June 3, 2011

Install Android-x86 2.2 in VirtualBox

Step 1: Get the Android-x86 ISO

First, you’ll need the Android-x86 ISO. You can directly download the latest iso from this link, android-x86-2.2-generic.iso

Since the project is active, by the time you read this, there may be a new ISO out. So also check the Downloads section on Google Code:

Step 2: Install Virtual Box.

You need to have a Virtual Machine Software, So I am using a software called "VirtualBox", You can downlaod it from the Web Site,

Link :

Step 3: Create a New VirtualBox Machine

Now it is time to create a virtual machine for Android-x86 to run it, First Click on the New Button on the Software,

In the First Screen it "Next", and from the next screen It asks VM Name and OS Name, Type "Android x86 2.2" as the VM Name, and from the OS Type section, select "Linux" as the Operating System, "Other Linux" as the Version.

Next up is specifying the amount of memory available to the new VM. The default is 256MB, Leave it as it is.

Next up you’ll need to choose whether or not you want to create a Virtual Hard Disk.  From this window you can select an existing VHD File, or create a new one,

You’ll be presented with the “Create New Virtual Disk”. hit “Next”. Now you’ll have to decide if you want a virtual disk which is dynamically sized or a fixed size. If you choose to make an 8GB fixed VHD, the file the wizard creates will take up a full 8GB. Whereas dynamic just resizes on the fly.

Next up, set how large you want your VHD to be. The default is 8GB which is sufficient.

The it displays a Summery,Now It's Done.

Step 4: Mount the ISO

Right click the VM ( Android-x86 ), from the shortcut menu select “Settings”, then go to the “Storage” section of it. Under “IDE Controller” you’ll see an entry for your VHD, if you created one, and a CD icon that says “Empty” next to it. Select the CD entry and you’ll see another CD icon on the right hand side. Click it and select “Choose a virtual CD/DVD disk file…”. This pops open a standard file dialog; browse to wherever you saved the ISO

Step 5: Boot it up

Double click on it and the VM will start running. If your goal is simply to boot the Live CD, select the “Live CD – VESA mode” option.

Step 6: Installing Android-x86

So everything is set up and ready to run, but there are a few steps left if you want to install Android-x86 to a virtual hard drive. From the boot menu select “Installation – Install Android-x86 to harddisk”.

elect the “Create/Modify partitions” option and you’ll then be presented with the cfdisk partition editor.

From here select “New”, then “Primary” and then it will ask you what size you want the partition to be. It defaults to the full size of the VHD, so you’ll probably just want to hit enter and go with it. Next select “Bootable” and then “Write”. It will ask you to type outthe word “yes”—do so. If you were installing this to a physical instead of virtual hard drive, this tool can do some serious damage to your file system, so that’s why it is picky enough to have you type it out. But since we’re in the land of the virtual, all is well! You’ll get a “Writing partition table to disk…” message and should now have an “sda1″ entry in the table, like so:

Now you’ll want to select the “Quit” option to jump back to the installation procedure. You should now have an entry there which says “sda1   Linux

Now you’ll need to format the newly created partition. Select ext3 from the list and continue. Another dialog asking you to confirm will pop up. Again, this is another thing that would completely screw up an existing hard drive, so it will warn about data loss. Select “Yes” and a progress bar will show up, formatting the drive.

Once it is done formatting, you’ll be asked to install the GRUB bootloader. This is important, so don’t skip it, otherwise your freshly installed VHD won’t boot!

Now you’ll be asked whether or not you want “/system” to be read-write. Unless you’re a developer, just select “No”. Another progress bar will show you the progress of the actual installation. Almost done!

Android-x86 is now installed on your VHD! You can now run the OS, reboot, or create a fake SD card to use within the VM.

No comments:

Post a Comment