SSH into Container - 2023.2 English

FPGA Operator

Release Date
2023-10-30
Version
2023.2 English

Once the pod is created and running, we can ssh into the container and check whether the FPGA device is mounted into the container properly.

# the pod is running up
$ kubectl get pod
NAME         READY   STATUS    RESTARTS   AGE
xrt-sample   1/1     Running   0          109s

# ssh into pod
$ kubectl exec -it xrt-sample -- /bin/bash

# running in pod
$ source /opt/xilinx/xrt/setup.sh
$ xbutil examine
WARNING: Unexpected xocl version (2.13.466) was found. Expected 2.14.354, to match XRT tools.
System Configuration
OS Name              : Linux
Release              : 4.15.0-23-generic
Version              : #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018
Machine              : x86_64
CPU Cores            : 12
Memory               : 96586 MB
Distribution         : Ubuntu 18.04.6 LTS
GLIBC                : 2.27
Model                : PowerEdge R730

XRT
Version              : 2.14.354
Branch               : 2022.2
Hash                 : 43926231f7183688add2dccfd391b36a1f000bea
Hash Date            : 2022-10-08 09:51:53
XOCL                 : 2.13.466, f5505e402c2ca1ffe45eb6d3a9399b23a0dc8776
XCLMGMT              : 2.13.466, f5505e402c2ca1ffe45eb6d3a9399b23a0dc8776

Devices present
BDF             :  Shell                            Platform UUID                         Device ID       Device Ready*
-------------------------------------------------------------------------------------------------------------------------
[0000:03:00.1]  :  xilinx_u200_gen3x16_xdma_base_2  0B095B81-FA2B-E6BD-4524-72B1C1474F18  user(inst=128)  Yes


* Devices that are not ready will have reduced functionality when using XRT tools

The above result shows that the device is ready to be used in the container, and we are able to run the application with this device.