Docker Installation

The XCENA Docker image contains the SDK and Emulator. The compiler and runtime run inside the container. Host requirements and container options depend on whether you use physical hardware or the emulator.

Use the image to keep SDK tools in a container or to develop with the emulator when physical XCENA hardware is unavailable.

Prerequisites

  • Docker Engine installed on the host system
  • For hardware: XCENA driver must be installed on the host. In the default host-daemon mode, the pxl_resourced daemon must be running on the host (see Host Daemon Setup); independent SDK containers keep it disabled instead
  • For emulator: KVM support and container access to /dev/kvm are recommended. Without KVM, use software emulation with --no-kvm. Physical CXL hardware, host XCENA drivers, and a host pxl_resourced daemon are not required.

For emulator-only use, follow Emulator Installation for KVM checks and the container launch command. Skip the host driver and hardware container steps below.

1. Pull Image

Obtain the prebuilt image from XCENA SDK on Docker Hub. In the host terminal, enter the image tag from the release notes when prompted. Tags from v1.4.4 onward include the v prefix (for example, v1.4.11).

printf 'SDK image tag from the release notes: '
read -r SDK_TAG

Then pull the image. The variable check stops the command if no tag was entered. Later steps use the same SDK_TAG; set it again in a new terminal.

docker pull "xcenadev/sdk:${SDK_TAG:?Enter an SDK image tag}"

Alternatively, build the image using the instructions in dockerfiles/README.md in the SDK repository.

2. Install the Host Driver (Physical Hardware Only)

Skip this step if you’re planning to run only the emulator in Docker.

If you have the SDK package:

wget <URL_to_sdk_xxx.tar.xz>
tar -xvf sdk_xxx.tar.xz
cd sdk_xxx/driver/mxdriver
sudo ./install.sh
sudo reboot

Or extract the driver from the image pulled in step 1. This ensures compatibility between the driver and the SDK version in the container. The commands below create a temporary container, copy the driver, and remove only that temporary container:

docker create --name xcena_sdk_driver "xcenadev/sdk:${SDK_TAG:?Enter an SDK image tag}"
docker cp xcena_sdk_driver:/work/driver ./
docker rm xcena_sdk_driver
cd driver/mxdriver
sudo ./install.sh
sudo reboot

For hardware in the default host-daemon mode, also install and start the pxl_resourced daemon on the host before running containers - see Host Daemon Setup.

3. Run the Container for Physical Hardware

For hardware in the host-daemon mode, use the complete docker run command in Host Daemon Setup. That command exposes the device nodes and the host resource daemon’s socket to the container. The socket lets PXL coordinate device reservations with other processes. Independent SDK containers run unprivileged instead; follow that guide.

Navigate to the SDK directory (/work/) and check the installation contents, following the same procedure as described in Verify Installation.


Table of contents