Skip to content

chen-mao/xdxct-vgpu-device-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xdxct-vgpu-device-manager

Description

The vGPU Device Manager is a tool designed for system administrators to make working with vGPU devices easier. It allows administrators to declaratively define a set of possible vGPU device configurations they would like applied to all GPUs on a node.

Build xgv-vgpu-dm

This will generate a binary called xgv-vgpu-dm.

make cmds-xgv-vgpu-dm

Usage

  1. Create a specific vGPU device from a configuration file.
sudo ./xgv-vgpu-dm apply -f examples/config-vgpu.yaml -c PANGU-A0-1G-1-CORE
  1. Create a specific vGPU device with debug out.
sudo ./xgv-vgpu-dm -v apply -f examples/config-vgpu.yaml -c PANGU-A0-128M-1-CORE

Kubernetes Deployment

  1. Build image
make -f deployments/operator/Makefile build-dev
  1. Create the configmap file of vgpu-config-file
kubectl apply -f deplyments/operator/configmap.yaml
  1. Deploy vgpu-device-manager
kubectl apply -f deplyments/operator/xdxct-vgpu-device-manager.yaml
  1. Check the vgpu-device-manager
kubectl label node <node-name> --overwrite xdxct.com/vgpu-config=PANGU-A0-1G-1-CORE

$ cat /sys/class/mdev_bus/<pci-id>/<vgpu-uuid>/mdev_type/name
Type ID: 8; Type Name: XGV_V0_128M_1_CORE

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published