Run Celadon as the User VM

Celadon is an open source Android software reference stack for Intel architecture. It builds upon a vanilla Android stack and incorporates open sourced components that are optimized for the hardware. This tutorial describes how to run Celadon as the User VM on the ACRN hypervisor. We are using the Kaby Lake-based NUC (model NUC7i7DNHE) in this tutorial.


  • Ubuntu 18.04 with at least 150G free disk space.
  • Intel Kaby Lake NUC7ixDNHE (Reference Platforms: ACRN supported platforms).
  • BIOS version 0059 or later firmware should be flashed on the NUC system, and the Device Mode option is selected on the USB category of the Devices tab in order to enable USB device function through the internal USB 3.0 port header.
  • Two HDMI monitors.
  • A USB dongle (e.g. Dawson Canyon USB 3.0 female to 10-pin header cable) is optional if you plan to use the adb and fastboot tools in the Celadon User OS for debugging. Refer to the Technical Product Specification to identify the USB 3.0 port header on the main board.


This document uses the (default) SDC scenario. If you use a different scenario, to see its console, you will need a serial port connection to your platform or change the configuration of the User VM that will run Celadon.

Build Celadon from source

  1. Follow the instructions in the Build Celadon from source guide to set up the Celadon project source code.


    The master branch is based on the Google Android 10 pre-Production Early Release. Use the following command to specify a stable Celadon branch based on the Google Android 9 source code in order to apply those patches in the ACRN patch list:

    $ repo init -u -b celadon/p/mr0/master -m stable-build/ww201925_H.xml
  2. Select Celadon build target:

    $ cd <Celadon project directory>
    $ source build/
    $ lunch cel_apl-userdebug


    You can run lunch with no arguments to manually choose your Celadon build variants.

  3. Download these additional patches and apply each one individually with the following command:

    $ git apply <patch-filename>
    Table 4 ACRN patch list
    Patch link Description kernel config: Add the support of ACRN graphic/mesa: Add the support of ACRN cel_apl: use ttyS0 instead of ttyUSB0 Disable trusty and pstore


    If the git apply command shows an error, you may need to modify the source code manually instead.

  4. Build Celadon image:

    $ device/intel/mixins/mixin-update
    $ make SPARSE_IMG=true gptimage -j $(nproc)


Replace the $(nproc) argument with the number of processor threads on your workstation in order to build the source code with parallel tasks. The Celadon gptimage will be generated to out/target/product/cel_apl/cel_apl_gptimage.img

Steps for Using Celadon as the User VM

  1. Follow Use SDC Mode on the NUC to boot the ACRN Service VM based on Clear Linux 29880.

  2. Prepare dependencies on your NUC:

    # mkdir ~/celadon && cd ~/celadon
    # cp /usr/share/acrn/samples/nuc/ ./
    # sed -i "s/win10-ltsc/android/"
    # scp <cel_apl_gptimage.img from your host> ./android.img
    # sh
  3. You will see the shell console from the terminal and the Celadon GUI on the secondary monitor after the system boots. You can check the build info using the getprop command in the shell console:

    console:/ $
    console:/ $ getprop | grep finger
    []: [cel_apl/cel_apl/cel_apl:9/PPR2.181005.003.A1/rui06241613:userdebug/test-keys]
    []: [cel_apl/cel_apl/cel_apl:9/PPR2.181005.003.A1/rui06241613:userdebug/test-keys]
    []: [cel_apl/cel_apl/cel_apl:9/PPR2.181005.003.A1/rui06241613:userdebug/test-keys]