Run Android 4 ICS (Ice Cream Sandwich) on a Mac or PC with VirtualBox

Feb 23, 2012 - 79 Comments

Android 4 ICS VirtualBox

If you want to play around with Android 4 Ice Cream Sandwich (ICS) but don’t have an Android phone or tablet, you can download the official Android SDK, or better yet, grab a preconfigured virtual machine that will run ICS in VirtualBox. Other than providing an interesting look at the primary competitor to iOS, virtual machines are useful for compatibility testing, and developers and designers should find some value in adding an Android VM alongside their Windows & Internet Explorer VM’s, giving this some practical use beyond the novelty factor.

Here’s how to run Android 4 ICS in VirtualBox:

  • Download VirtualBox and install it (free)
  • Grab a preconfigured ICS set up from VMLite (free)
  • Uncompress the Android-v4.7z file, look for “Android-v4.vbox” and double-click it to load and boot the configuration into VirtualBox
  • At the boot menu in VirtualBox, select the lower “Android Startup from /dev/sda” option
  • Let Android ICS boot

That’s really all there is to it. The VMLite configuration is complete with mouse support and you’ll find the blue cursor as a replacement for a touch screen. You can switch to full screen mode by pulling down “View” and selecting “Switch to Fullscreen”, just remember to hit Command+F is how to exit out of that. Hitting Command+C will run the VM in scale mode, which is what the screenshots are showing.

I ran this in Mac OS X 10.7, but VirtualBox is offered for Windows and Linux as well so it should work just about anywhere you try it. You can alternatively grab a variety of different versions from Android x86, I was able to use the android-x86-4.0-eeepc-20120101.iso successfully as well and it has the added benefit of some gesture support, although the boot iso’s require a bit more configuration within VirtualBox to get going. As mentioned before, the Android SDK is also free to download and includes an emulator, but the VM setups are much easier to get working quickly.

Android 4 ICS

You can drag widgets and app icons onto the home screen, some are interactive and overall the homescreen/desktop is very customizable as a result.

Android 4 ICS Virtual Machine

The Android web browser works fine too, this is potentially the most useful feature for web developers and designers since it allows to quickly check compatibility of sites and web apps.

If for some reason you want to run older versions of Android instead you can do that too, and don’t miss our other posts on virtual machines.

Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox! Enter your email address below:

Related articles:

Posted by: Paul Horowitz in Fun, Mac OS X, Tips & Tricks

79 Comments

» Comments RSS Feed

  1. Daniel says:

    Can you install and try out apps?

    • Paul says:

      Yes with a Google account you can, although I would recommend setting up an independent ID for use in the preconfigured VM.

      • Bram says:

        It appears that an SD card is required to install the GoogleServicesFramework etc. which are required to install apps.

        How can you add a virtual SD card to the VM?

        Simply adding a new disk does not work.

        Regards

  2. Dr_HIcks says:

    Yeah cool, but no thank you; I have boycotted google after they started playing dirty pool and bypassing security settings on my browsers to make add money off me.

  3. Kris says:

    I gave up on Google after they released their flagship device outside the US first before controlling the launch and release of the same in their own home country. Somehow that didn’t sit well with my Americanism. I switched to the iphone 4s after that.

  4. Tom says:

    My instance came up locked. I don’t own an android so I don’t know the motions to emulate either. Can you help?Tom

    • de3 says:

      Just use the cursor to drag the lock around, the swipe to unlock feature in ICS is kind of anywhere in the circle rather than a straight line

  5. Dave says:

    Just a point to people using OS X Mountain Lion as your main operating system, do not try this with virtual box as it will simply freeze your Mac and bring up the grey screen of death, only repercussions could be HD failure but just in case.

  6. Gagan says:

    I am running ics on my mac but how can i install other android apps like angry birds etc..

  7. Gary Combs says:

    I installed using your steps and the first screen has a big lock on it. Is there a password?

  8. ficohertz says:

    i downloaded an app with my google account but it says my id is not associate with any device, so it could not install

  9. ficohertz says:

    sorry for many post :
    is it possible to install apps not from android market ?

    • Neoluis10 says:

      I also want to install apps that I’m developing and testing because I hate the Android emulator, it is very slow. Is that possible to do this without going through the android market?

  10. Banzai says:

    Hi… I logged in using gmail account to the market, then tried to install something and failed. Message: there is no android phone associated with this account.

    Can you help me with this?

  11. [...] Run Android 4 ICS (Ice Cream Sandwich) on a Mac or PC with VirtualBox [...]

  12. Pippox0 says:

    Hi,
    I have some troubles to use Android Market
    Error: there is no android phone associated with this account.

    i’m using Virtualbox on PC and VMlite VDI.

    How i can resolve it??

  13. PippoX0 says:

    I found out a solution for android market on virtualbox.
    I have installed …
    GoogleServicesFramework.apk. Ver.2.3.5
    and
    Android Market.apk ver. 3.1.5

    Then i was able to sign in Android Market by launching it and typing my google account!

  14. Martijn says:

    How to press the power button?

  15. Ricky says:

    How did you make the WiFi working using Virtualbox (in Mac Mini) and ISO image from Android-x86.org (e.g. android-x86-4.0-RC1-asus_laptop.iso or android-x86-4.0-RC1-eeepc.iso)

    I tried but it cannot get the data connection (keep staying at turning on wifi…)

    Thanks.

  16. AhrimanSefid says:

    Hi All.
    Me Need Help For Active Or Enable Lan Network Or Need Install App & Game In Local.

  17. Paul says:

    I’m slightly confused by the step saying..

    - At the boot menu in VirtualBox, select the lower “Android Startup from /dev/sda” option

    In virtual box I see the Android config on the left & settings like “general, system, display, storage” on the right – I cant find anything about boot or ‘start up from’.

    If I try to start the VM it fails with
    ———–
    Failed to open a session for the virtual machine Android-v4.
    Failed to load VMMR0.r0 (VERR_SUPLIB_WORLD_WRITABLE).
    Result Code: NS_ERROR_FAILURE (0×80004005)
    Component: Console
    Interface: IConsole {1968b7d3-e3bf-4ceb-99e0-cb7c913317bb}
    ———-

    • Paul says:

      I solved the issue by simply repairing permissions in OS X using Disc Utility. Then Android boots & I see the option you mentioned.

  18. azl says:

    how do i connect to the net on vmware?

  19. Brad says:

    So how to you get the market on this? I would like to play pocket empire on this to gain more troops. I tried installing the GoogleServicesFramework.apk and Android Market.apk from my gmail but it said installation failed.
    Any help?

    Thanks

  20. JZ says:

    I tried running this but it stops booting at:

    [6.011899] init: Timed out waiting for /dev/.coldboot_done
    [6.020402] Kernel panic – not syncing: Attempted to kill init!
    [6.307993] atkbd.c: Spurious ACK on isa0060/serio0. Some program might be trying access hardware directly.

    Any ideas why this is happening?

    Thanks

  21. Brad says:

    Work around was to install the amazon market APK.

  22. niya says:

    its not getting connected to d internet…could u help plzzz….

  23. [...] screen of the Android tablet is kind of nice with the weather widgets and other customizations, test Android 4 yourself within the constraints of a virtual machine and you’ll see some of the obvious pros and cons to a widgetized home screen. Maybe widgets [...]

  24. jb36th says:

    I have tried and it work perfectly except it’s little bit slow

  25. Aman says:

    can i get an iso file off android 4.0

  26. Saad says:

    not able to run whatsapp.. it says Mobile Network required, although internet is working

    • Bharat Bajaj says:

      Mobile Network means… Whatsapp is associated with a mobile number… It becomes ur id.. So mobile network is required too! But how can it be possible as ur on pc

  27. N73A says:

    Hey, pls help me out guys……… Why I am getting this message ” unfortunately market/youtube/settings stopped working”? What is the reason…. That really spoiled my day!

  28. Tommy says:

    This might be a dumb question, but how do I extract the Android-v4.7z file? There is no file extension, so my Mac doesn’t automatically detect how to extract it.

  29. Tommy says:

    Thanks Paul!

  30. ryan says:

    i keep getting a error

    init; timed out for /dev/.coldboot_done

    kernal panic – not syncing ; attempted to kill init

    how do i solve it

  31. easy10 says:

    Plz anyone tell me how can make my wifi woks….

    when enable wifi , its says wifi turning on… and get stack on that page forever…

    I also dont know bwt which 1 to choose [ nat] or [bridge] networking………….

  32. TimS says:

    Silly question maybe but I can’t seem to navigate back out of a screen to the home screen are there mapped keys for button functions?

  33. [...] solution includes 17 popular Android apps that can be run independently and without the need for running Android ICS in a virtual machine, removing the often clunky virtualized Android OS experience and instead launching directly into [...]

  34. SM says:

    I tried it in my windows vista system using virtual machine.
    But getting error while loading.

    init cannot find: system/bin/servicemanager
    init cannot find: system/bin/vold
    init cannot find: system/bin/netd
    init cannot find: system/bin/debuggerd

    etc continues.
    and the virtual machine stuck.
    Have to power off the vm.

    May I know whats the issue and how it can be solved.
    I followed the process you mentioned and until this all vent well.

    Thanks

  35. Game says:

    Can anyone explain how to run the apps??

    How to install the framework & apps store??

    I also have downloaded some .apk files.. hw can i run them>>
    Can i run whatsapp??

    pls help

  36. Abee says:

    Hi, My Fone running Android 2.2 Froyo just lost it’s display. DIY screen replacements are expensive, so I’ll rather buy a new phone.

    Can I use this(Older Versions of-course) to actually access everything on my fone and pull out the data, Using USB connection?

    Pardon the Naive question, I guess it would be just a matter of getting everything from the SD card, however many files just wont open.

    P.S. The phone seems to be running fine. Just the display thats the problem.

  37. huisinro says:

    Hi,

    I am the author of this very popular android virtual machine. Just a quick update, the Jelly Beans vm is about ready.

    In addition, we just released an Android app, VMLite VNC Server, that allows any android devices to be remotely accessed.

    https://play.google.com/store/apps/details?id=com.vmlite.vncserver

  38. Leo Smulders says:

    Hello mr. author of the android virtualmachine. Would you please address some of the issues people having. It would be nice to answer now and then some questions.
    Here’s mine: downloaded / installed the android vm in virtualbox. It startup. No internet. No clue to what’s wrong. I noticed that the vm in virtualbox has NAT as virt. machine, and a wired connection. however, inside the vm there’s only wireless and it does nothing.
    I have loads of virtual machines, none of them have internet accessiblity problems. One thing i tried (and actually this is beginning to becom a big wast of time, esp. compared to ) is to replace nat by bridged. no effect.

    I would recommend BlueStacks to anyone not interested in android as a developer, but just to run apps.

    • Charles says:

      +1
      If I open the browser, it seems to work fine, as the networking is forwarded outside of the VM through my desktop wired connection.

      However, apps that look for a wifi connection (Amazon, for example) don’t work, period.

      Any solutions would be great.

  39. Mayur says:

    How to enalble Internet connection for this android virtual machine. I want to install applications too.
    Please guide me for same.

    Regards,
    Mayur

  40. Balaji Birajdar says:

    I have a solution for all your problems. Install the Android 4.0.1 .ova image from builddroid.org into your VirtualBox. It has built in Google Apps ( including market)

    http://www.buildroid.org/Download/buildroid_vbox86t_4.0.4_r1.1-20120530_gapps.ova

    Use the ‘Import Appliance’ option in the menu to import the .ova file

    Hit me a thanks if it helps you

  41. serge says:

    perfect!! everything works, good for testing

  42. npsingh says:

    hi please help me everything ok but when instalation is completead a lock icon appear but i faild to open it i drag mouse in every diraction but be fail every time what be do please help me

  43. Aaman says:

    THanks for this – it works mostly fine – how do I copy apks from within this virtual machine to my host Windows machine. I created a shared folder but I get an error message about Guest Additions and also, no way to see the shared folder in my ES File Explorer within Android

  44. zs247 says:

    it wont work in downloaded googleservcesframework.apk
    but it wont install

  45. Wim says:

    Reply for npsingh:

    hi please help me everything ok but when instalation is completead a lock icon appear but i faild to open it i drag mouse in every diraction but be fail every time what be do please help me

    I had the same and had to pusk escape button before the lock released

  46. Most of the games are indie titles but there are a few notable ‘normal’ games including the previously mentioned
    Final Fantasy III and Sonic 4 Episodes 1 and 2. While these
    have only just been announced and their basic feature set we have at the bottom of this
    page the Wasabi ps1 emulator looks like it will be a decent product for
    the ps1 emulator Slim owners out there. It almost felt like playing a Nintendo console (the fact an NES
    emulator can be found in the marketplace made it feel even more
    so).

Leave a Reply

 

Shop for Apple & Mac Deals on Amazon.com

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates