Rate This Document
Findability
Accuracy
Completeness
Readability

Creating a Kbox Image

Before creating a video stream cloud phone image, create a Kbox image first.

  1. Obtain the Kbox container startup dependency components android.tar and Kbox-AOSP11.zip based on Deploying the Basic Environment for the Kbox Container, and upload them to the /home/kbox_video directory on the server. (This directory is used as an example. You can customize a directory as required.)
  2. Decompress the Kbox-AOSP11.zip package, extract the android_kbox.sh and base_box.sh files in the deploy_scripts directory to the /home/kbox_video directory, and grant permissions on the files. Ensure that the file owner has the read, write, and execute permissions while users in the owner group and other users have only the read and execute permissions.
    1
    2
    3
    4
    5
    unzip Kbox-AOSP11.zip
    cp Kbox-AOSP11/deploy_scripts/base_box.sh /home/kbox_video/
    cp Kbox-AOSP11/deploy_scripts/android_kbox.sh /home/kbox_video/
    chmod 755 /home/kbox_video/base_box.sh
    chmod 755 /home/kbox_video/android_kbox.sh
    
  3. Create a Kbox image and apply commercial binaries by referring to "Mounting an Android Image" > "Creating a Kbox Image and Applying Commercial Binaries" in the Kbox Cloud Phone Container Feature Guide. Generally, the image name is kbox:origin.
  4. Check whether the Kbox image (kbox:origin) is successfully created.
    1
    docker images
    

    If the following information is displayed, the image is successfully created:

    1
    2
    REPOSITORY    TAG       IMAGE ID        CREATED          SIZE
    kbox          origin    d1f5cfd2e722    6 seconds ago    2.09GB