Installing CM 13 Android-x86 on VirtualBox PC

[Guide] How to install CyanogenMod 13 on VirtualBox

Hello, yesterday I was trying to install android emulators on my PC. After trying a few popular emulators, I decided to try VirtualBox software. While trying installing to install a few different Android-x86 roms and I’ve actually faced with some problems and then solved them successfully. So in this article I would like to share my experience installing and creating virtual machine with CyanogenMod 13.0 Android-x86 6.0.1 on VirtualBox. Installing Android on VirtualBox is a great way to test and experiment with a fully working Android system. It gives you much more possibilities than just playing some simple android games on emulators.

In this detailed guide I’m going to show you how to install Android 6.0.1 CyanogenMod 13 on VirtualBox. You’ll need to download CM 13 Android-x86 image file and have VirtualBox installed. I was using latest version of VirtualBox 5.1.12 r112440 (Qt5.6.2).

Also I have to enable Virtualization Technology (VTx) and Virtualization Technology Directed I/O (VTd) to install and run CM13 Android on my PC. You can also find most common issues and fixes related to installing Android-x86 on VirtualBox in the bottom of this post.

Installing Android-x86 on VirtualBox Emulator

Creating Virtual Machine for Android-x86

  1. First you need to download CyanogenMod 13 Android x86 image.
  2. Run VirtualBox and start creating new virtual machine by pressing “New”.
  3. Now enter name for your virtual machine and select “Linux” and “Other Linux (64-bit)” and press “Next”.

    Creating Virtual Machine for Android-x86
    Create new virtual machine and select “Linux” and “Other Linux (64-bit)”
  4. Now select amount of RAM to be allocated to your Android x86 virtual machine. In my case of installing this exact CM 13 image I have to select 4096 MB of RAM. Update: It’s possible to select smaller amounts of RAM. It’s working good with 512 MB or 1024 MB memory size.

    RAM for Android x86 virtual machine
    Select 4096 MB of RAM for CM 13 Android x86 virtual machine
  5. Now create a new virtual hard disc. Select “Create a virtual disk now” and press “Create”.

    Create a new virtual hard disc for Android x86
    Create a new virtual hard disc by selecting “Create a virtual hard disk now”.
  6. Now we need to choose hard disk type. Select “VDI (VirtualBox Disk Image)” and press “Next”.

    Installing android-x86 on Virtual Box
    Select “VDI (VirtualBox Disk Image)” and press “Next”.
  7. Select storage on physical disk for our Android-x86 virtual machine. We’ll go with “Fixed size”. Select “Fixed size” and press “Next”.

    Physical disk for Android-x86 virtual machine
    Slect “Fixed size” and press “Next”.
  8. Create Virtual Hard Disk drive by selecting file location and size. Recommended size in 8.00 GB, you can make it bigger if you need to. Select location for your Virtual Hard Disk file and press “Create”.

    Create Virtual Hard Disk drive for Android-x86
    Select location and size for your Virtual Hard Disk file and press “Create”.
  9. The process should start. Wait for fixed storage to be created.

    Android-x86 on VirtualBox Virtual Machine
    Wait for fixed storage to be created.
  10. Congratulations! You’ve created a VirtualBox virtual machine to run Android x86 CyanogenMod 13 on your PC!

    Run Android x86 CM13 on your PC
    Congratulations! You’ve created a VirtualBox virtual machine to run
    Android x86 CM13 on your PC!

Now we will continue to the second part of this guide and before starting our virtual machine we will need to install CM 13 on VirtualBox.

Installing Android-X86 CyanogenMod 13 on VirtualBox Virtual Machine

  1. First we need to point VirtualBox virtual machine to downloaded Android-x86 CM 13 ISO file.
  2. Right click on your virtual machine and select “Settings”.

    Install Android-x86 CyanogenMod 13 on your VirtualBox
    Right click and press “Settings”.
  3. Now in the “Setting” select “Storage” in the left column. Click on the empty drive, then click on the disk icon in the right corner and click on “Choose Virtual Optical Disk File”.

    Installing CM 13 Android-x86 on VirtualBox PC
    1. Select “Storage”. 2. Select “Empty” drive. 3. Click on “Choose Virtual Optical Disk File”.
  4. Find and select CM 13 Android-x86 ISO file “cm-x86_64-13.0-rc1.iso”, that you’ve previously downloaded (you can find download link below). Select “cm-x86_64-13.0-rc1.iso” .iso file and click “Open”.

    Install cm-x86_64-13.0-rc1.iso on VirtualBox
    Select “cm-x86_64-13.0-rc1.iso” .iso file and click “Open”.
  5. Storage settings will now look like this. Press “Ok”.

    Installing android-x86 on PC VirtualBox
    After you’ve selected .iso image and press “Ok”.
  6. Now press “Start” to boot your virtual machine.

    Starting android-x86 on VirtualBox
    Now press “Start” to boot your virtual machine.
  7. The Android-x86 installer will boot up.
  8. Use keyboard arrow keys to navigate and select “Installation – Install Android-x86 to harddisk”.

    Android-x86 installer
    The Android-x86 installer will boot up. Select “Installation – Install Android-x86 to harddisk”.
  9. Now we need to select a partition to install Android-x86. Select “Create/Modify partitions” and press enter.

    select a partition to install Android-x86 on Virtual Machine
    Select “Create/Modify partitions” and press enter.
  10. On the next window “Do you want to use GPT?” – Select “No”.

    Do you want to use GPT - Installing Android-x86 on VMBox
    “Do you want to use GPT?” – Select “No”.
  11. Now using “left” & “right” arrow keys select “New” to create new partition from free space and press “Enter”.

    Installing android-x86 on VirtualBox
    Select “New” to create new partition from free space and press “Enter”.
  12. Select “Primary” and press “Enter” to create a new primary partition for Android-x86 installation.

    Primary partition for Android-x86 installation
    Select “Primary” and press “Enter” to create a new primary partition for Android-x86 installation.
  13. Press “Enter” again to select entire size of the virtual disk we’ve previously created.

    Virtual disk size for Android-x86 CM13
    Press “Enter” again to select entire size of the virtual disk.
  14. Select “Bootable” option and press “Enter” to toggle bootable flag make the selected partition bootable.

    Installing android-x86 on VirtualBox
    Highlight “Bootable” option and press “Enter”
  15. Highlight “Write” option and press “Enter” to write partition table to disk.

    Installing Android-x86 on VirtualBox Emulator
    Highlight “Write” option and press “Enter”.
  16. On the next screen type “yes” and press “Enter” to write the partition table to disk.

    Installing CM13 on VirtualBox
    Type “yes” and press “Enter”
  17. Wait a little bit while partition table is being created.
  18. Navigate to “Quit” and press “Enter”.
  19. Now we’re back to “Choose Partition” screen. You’ll see the partition you’ve just created. Select this partition to install Android-X86, then highlight “Ok” and press “Enter”.

    Select partition to install Android-X86 Virtual Box
    Select partition to install Android-X86, then highlight “Ok” and press “Enter”
  20. On the next screen select a file system to format Android-x86 partition. We will need to format partition to “ext4”.
  21. Select “ext4” filesystem.
  22. On the next screen Select “Ok” and press “Enter” to confirm format to “ext4”.

    Installing Android-x86 on VirtualBox Emulator
    Select “Yes” and press “Enter” to confirm format to “ext4”.
  23. After partition format, confirm with GRUB boot loader installation select “Yes” and press “Enter”.

    GRUB boot loader installation - Android-x86 VirtualBox
    Select “Yes” and press “Enter” to install boot loader GRUB.
  24. Another question will appear. Select “Yes” to install system directory as read-write.

    Install system directory as read-write - Android-x86
    Select “Yes” to install system directory as read-write.
  25. Android-x86 should be installed successfully. Select “Reboot” and press “Ok”.

    Android-x86 is now installed on your virtual machine
    Select “Reboot” and press “Ok”
  26. Now you need to remove Android-x86 disk image from virtual drive, so you can start CM13 and not be booted in live installation CD again. Press “Devices” > “Optical Drivers” > “Remove disk from virtual drive”.

    Installing Android-x86 CM13 on VirtualBox Emulator
    Press “Devices” > “Optical Drivers” > “Remove disk from virtual drive”.
  27. Now reboot your virtual machine again. Press “Host + R” or “Machine” > “Reset”.
  28. After rebooting you’ll see “Trusted GRUB 1.1.5” boot loader.
  29. Select “Android-x86 13.0-rc1” and press “Enter” to boot CM13 Android 6.0.1.
  30. You should see standard Android first startup setup screen. Change and select your language and time preferences.

    CyanogenMod 13 on VirtualBox PC
    Change and select your language and time preferences.
    Skip WiFi connection setup.
  31. Skip WiFi connection setup. You’ll be able to use network, browse website and download apps anyways, using your main network.
  32. That’s it! Congratulations! You’ve installed Android-x86 CyanogenMod 13 on your PC!

    Android-x86 CyanogenMod 13 on PC
    Congratulations! Android-x86 CyanogenMod 13 is now installed on your PC!

Solutions & Bug Fixes

“This kernel requires an x86-64 CPU” – Android-x86 on VirtualBox

Error: This kernel requires an x86-64 CPU, but only detected an i686 CPU. Unable to boot – please use a kernel appropriate for your CPU.

Solution: In case of this message, make sure you’ve selected Other Linux (64-bit) version and have dedicated enough RAM memory for virtual machine. You can also try different RAM settings and make dedicated RAM amount bigger or smaller. (Settings > System > Motherboard).

Enable VT-x / AMD-V hardware acceleration – Android-x86 on VirtualBox

Error: “VT-x/AMD-V hardware acceleration is not available on your system” or “Failed to open a session for the virtual machine”

Solution: You need to enable VT-d and VT-x technology in BIOS.

  1. Restart your PC and boot in BIOS. Depend on your system press “F2”, “DEL” or “F12” to enter BIOS menu.
  2. In “Security” or “Advanced” tab find and enable “VT-d technology” (location depends on PC).

In my case it was called “Intel Virtualization Technology” and it was located in “Advanced” tab in BIOS.

Mouse Integration – Android-x86 on VirtualBox

In case you’ve got some troubles or mouse issues on VirtualBox Android-x86 machine try resetting “Input” > “Mouse integration”. Try to enable/disable it. To switch over virtual machine mouse and windows mouse, just press right”CTRL”.

Landscape/Portrait issues – Android-x86

First solution is to disable screen rotation in Android settings. Here’s a simple steps:

  • “Settings” > “Display & lights” > Disable “Auto-rotate screen”.

You can also try these hot-keys in VirtualBox to rotate Android-x86 screen on virtual machine.

  • Double-tap “F9”
  • Double-tap “F10”
  • Double-tap “F11”
  • Double-tap “F12”

How to get root on Android-x86 CM 13 Emulator

To get root on Android-x86 CyanogenMod 13 first you need to enable “Developer options”.

  1. Start virtual machine, go to “Settings” > “About tablet”.
  2. Then click seven times on “Build number” to enable “Developer options”.

    How to enable "Developer options" on Android-x86 VirtualBox
    click seven times on “Build number” to enable “Developer options”.

Now, after you have enabled developer options, you can enable root on Android-x86 CM 13 virtual machine.

  • Get back into “Settings” and now select “Developer options”.
  • Click on “Root access” and select “Apps and ADB”. Allow root access by pressing “Ok”.

    root on Android-x86 CM 13 VirtualBox
    Enable root on Android-x86 CM 13 virtual machine.
  • Now you’ve got root on Android-x86 VirtualBox emulator.

Download links

Here you can download latest Android-x86 CM 13 release and the latest VirtualBox version.