Mounting an Android Image
The official Kbox demo image provided by Huawei Mirrors repository does not contain the Android Kbox binary. Therefore, containers cannot be normally started using this image. If you use this demo image, download the Android Kbox binary to the local host and use the script to create an original Kbox image that can start containers properly.
Image Name + Tag |
How to Obtain |
Usage |
|---|---|---|
Compiled by the user |
Compiled by the user |
Compile the image based on Software Compilation. This image contains the Android Kbox binary, and containers can be started properly. |
kbox:demo |
Official Kbox demo image provided by Huawei Mirrors repository |
This image does not contain the Android Kbox binary, and containers cannot be started properly. The user needs to build this image using a script. |
kbox:origin |
Created using a script |
This image is created based on kbox:demo and the Android Kbox binary, and containers can be started properly. |
Mounting the Kbox Demo Image
Upload the Kbox demo image package to the ~/dependency directory (this directory is only an example and can be customized) and mount the image package.
The image name and tag can contain only digits and letters. The image name must start with a digit or lowercase letter.
1 2 | cd ~/dependency docker import android.tar kbox:demo |
Creating a Kbox Image and Applying Commercial Binaries
If you use the official Kbox demo image provided by Huawei Mirrors repository, perform the operations in this part to ensure that the image contains the Android Kbox binary. If you use a self-compiled image, skip this part.
- Decompress Kbox-AOSP11.zip and upload the deploy_scripts directory in the Kbox-AOSP11 folder to the ~/dependency directory on the server.
- Upload the Android Kbox binary file package BoostKit-kbox_*.zip to ~/dependency/deploy_scripts.
- Decompress the GPU driver package VAGPU-KP-24.01.02.09-DC.tgz to obtain va_driver.tgz and upload it to the ~/dependency/deploy_scripts directory on the server.
- Create a Kbox image that contains the Android Kbox binary. In the following commands, kbox:demo is the official Kbox demo image imported in the previous step, and kbox:origin is the new image that contains the Android Kbox binary.
1 2 3
cd ~/dependency/deploy_scripts chmod +x make_image.sh ./make_image.sh kbox:demo kbox:origin va_driver.tgz