Video Stream Startup Environment Configuration (VM)
When deploying the cloud phone container environment and video stream container in the VM environment, you need to adjust the cfct_video and cfct_config files based on the number of CPU and GPU cores of the VM.
Deploy the cloud phone container environment on the VM and run video stream cloud phones. For details, see Software Deployment in the Kbox Cloud Phone Container Feature Guide and Software Deployment in the Video Stream Engine Feature Guide.
The following procedure introduces how to modify the cfct_video and cfct_config files.
- Extract the cfct_video and cfct_config files. For details, see the Video Stream Engine Feature Guide.
- Modify the cfct_config file to adapt to the VM that uses 80 CPU cores and 4 GPU nodes.
- Open the cfct_config file.
vim cfct_config
- Press i to enter the insert mode and add the following content:
VIDEO_CPU_MAP_80CORE_MODE0=( "${MODE0_CPUS0_320[0]}" "${MODE0_CPUS0_320[1]}" "${MODE0_CPUS0_320[2]}" "${MODE0_CPUS0_320[3]}" "${MODE0_CPUS0_320[4]}" "${MODE0_CPUS0_320[5]}" "${MODE0_CPUS0_320[6]}" "${MODE0_CPUS0_320[7]}" "${MODE0_CPUS0_320[8]}" "${MODE0_CPUS0_320[9]}" "${MODE0_CPUS0_320[10]}" "${MODE0_CPUS0_320[11]}" "${MODE0_CPUS0_320[12]}" "${MODE0_CPUS0_320[13]}" "${MODE0_CPUS0_320[14]}" "${MODE0_CPUS0_320[15]}" "${MODE0_CPUS0_320[16]}" "${MODE0_CPUS0_320[17]}" "${MODE0_CPUS0_320[18]}" "${MODE0_CPUS0_320[19]}" "${MODE0_CPUS0_320[20]}" "${MODE0_CPUS0_320[21]}" "${MODE0_CPUS0_320[22]}" "${MODE0_CPUS0_320[23]}" "${MODE0_CPUS0_320[24]}" "${MODE0_CPUS0_320[25]}" "${MODE0_CPUS0_320[26]}" "${MODE0_CPUS0_320[27]}" "${MODE0_CPUS0_320[28]}" "${MODE0_CPUS0_320[29]}" "${MODE0_CPUS0_320[30]}" "${MODE0_CPUS0_320[31]}" "${MODE0_CPUS0_320[32]}" "${MODE0_CPUS0_320[33]}" "${MODE0_CPUS0_320[34]}" "${MODE0_CPUS0_320[35]}" "${MODE0_CPUS0_320[36]}" "${MODE0_CPUS0_320[37]}" "${MODE0_CPUS0_320[38]}" ) VIDEO_CPU_MAP_80CORE_MODE1=( "${MODE1_CPUS0_320}" ) VIDEO_GPU_MAP_80CORE=( "${GPUS[0]}" "${GPUS[1]}" "${GPUS[2]}" "${GPUS[3]}" )
- Press Esc to exit the insert mode. Type :wq! and press Enter to save and exit the file.
The CPU cores and GPU nodes in the preceding configuration are for reference only. Adjust them based on allocated resources of the VM and service requirements.
- Open the cfct_config file.
- Modify the cfct_video file to adapt to the 80-core VM.
- Open the cfct_video file.
vim cfct_video
- Press i to enter the insert mode and add the following content above elif [ $num_of_cpus -eq 64 ]; then.
elif [ $num_of_cpus -eq 80 ]; then if [ ${CPU_BIND_MODE} -eq 0 ]; then VIDEO_CPU_MAP=(${VIDEO_CPU_MAP_80CORE_MODE0[*]}) elif [ ${CPU_BIND_MODE} -eq 1 ]; then VIDEO_CPU_MAP=(${VIDEO_CPU_MAP_80CORE_MODE1[*]}) else EXIT_ERROR "CPU_BIND_MODE error: ${CPU_BIND_MODE}" fi VIDEO_GPU_MAP=(${VIDEO_GPU_MAP_80CORE[*]})
- Press Esc to exit the insert mode. Type :wq! and press Enter to save and exit the file.
- Open the cfct_video file.
- Call the cfct_video script to start the video stream container on the VM. For details, see the Video Stream Engine Feature Guide.

Parent topic: Deployment Guide