test 15.1 is not ok #7

Open
opened 2023-12-28 03:52:47 +00:00 by m986883511 · 0 comments

I download tok in win10 LSTC use https://192.222.14.55:443/-/client-token and put it in ClientConfigToken florder, restart win10 vm, then nvidia-vgpu-mgr show can not registers. Something wrong?

My env is not pve, it is opesntack.

Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: notice: vmiop_log: ######## Guest NVIDIA Driver Information: ########
Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: notice: vmiop_log: Driver Version: 528.24
Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: notice: vmiop_log: vGPU version: 0x100001
Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: notice: vmiop_log: (0x0): vGPU license state: Unlicensed (Unrestricted)
Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: error: guest attempted access to priv registers
Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: error: guest attempted access to priv registers
Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: error: guest attempted access to priv registers
Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: error: guest attempted access to priv registers
Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: error: guest attempted access to priv registers
Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: error: guest attempted access to priv registers
Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: error: guest attempted access to priv registers
Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: error: guest attempted access to priv registers

run DLS docker

[root@localhost ~]# WORKING_DIR=/opt/docker/fastapi-dls/cert
mkdir -p $WORKING_DIR
cd $WORKING_DIR
# create instance private and public key for singing JWT's
openssl genrsa -out $WORKING_DIR/instance.private.pem 2048
openssl rsa -in $WORKING_DIR/instance.private.pem -outform PEM -pubout -out $WORKING_DIR/instance.public.pem
# create ssl certificate for integrated webserver (uvicorn) - because clients rely on ssl
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout  $WORKING_DIR/webserver.key -out $WORKING_DIR/webserver.crt
writing RSA key
.....+.+..+...+.+...+..+.........+.+.....+.+............+........+.........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+.+...........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+..........+...+...+.....+....+..............+..........+..+....+..............+....+...............+...+.........+.....+...............+......+....+...+...........+....+..+....+..+....+...+..+......+...+.......+..+.+.....+......+.........+.+.....+.+.........+...+.....+......+....+...+...+.....+.....................+....+..+............+...+....+.........+............+...+..+....+........+......+....+...........+....+..+.+..+..........+..+.........+....+...+..+.+....................+......+.+..+...+...................+.....+...................+......+...........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
...+...+..........+...+.................+.+.....+.........+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+.....+.......+.....+...+.........+......+....+........+......+................+........+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*......+......+.......+........+.+...+..+...............+....+.........+..+.+............+.....+.......+...+.....+......+.+...+............+......+...+..+....+......+..+...+....+.....+....+..+.........+...+.+...........+...............................+...+............+............+.....+...+....+.....+.+...+.........+...+..+...+.......+.....+...+..................+.+..............+......+.+...+.........+..+...+......+.+...+..+....+...............+..............+...+.......+......+......+..............+.......+..+...+...................+...+...+........+....+..+.............+.....+......+..........+.....+.+......+..............+.+..+.+...........+.+.....+.............+.........+..+......+....+..................+...+.....+..........+..+.+......+.....+....+.........+..+...+............+.+..................+..+.........+...+...+..........+............+..+...+.+.....+.+.....................+.........+.....................+.....+.........+......+.......+...+.....+.......+..+.+..+......+...............+.......+.....+....+..............+......+...+...+.......+..+...+.+..+....+...+...........+....+...+........+.+......+...+...........................+...+...........+...+..........+..+....+......+......+..+.............+..............+...+...+...+....+...+.....+..........+........+....+.....+.+.........+..+......+....+...+...+.....+...+.+......+........+......+...............+...+......+......+.+...+..............+.....................+.+...........+............+...............+.......+.....+.+.........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [XX]:
State or Province Name (full name) []:
Locality Name (eg, city) [Default City]:
Organization Name (eg, company) [Default Company Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:
Email Address []:
[root@localhost cert]#
[root@localhost cert]# ls /opt/docker/fastapi-dls/cert
instance.private.pem  instance.public.pem  webserver.crt  webserver.key
[root@localhost cert]# docker volume create dls-db
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
dls-db
[root@localhost cert]# docker run -e DLS_URL=192.222.14.55 -e DLS_PORT=443 -p 443:443 -v $WORKING_DIR:/app/cert -v dls-db:/app/database collinwebdesigns/fastapi-dls:latest
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
✔ docker.io/collinwebdesigns/fastapi-dls:latest
Trying to pull docker.io/collinwebdesigns/fastapi-dls:latest...
Getting image source signatures
Copying blob 269f4f35abb3 skipped: already exists
Copying blob 9875af95546d skipped: already exists
Copying blob 7890f6f8c0ee skipped: already exists
Copying blob 5be5eddf2046 skipped: already exists
Copying blob 178c73d982b6 skipped: already exists
Copying blob 96526aa774ef skipped: already exists
Copying blob ee3ef4dd4aa6 skipped: already exists
Copying blob 39ff4dad1f9f skipped: already exists
Copying blob 3ec0ed1f80bc skipped: already exists
Copying blob edac40ef7ac6 skipped: already exists
Copying config 2746df9987 done
Writing manifest to image destination
INFO:     Started server process [1]
INFO:     Waiting for application startup.
INFO:main:
    Using timezone: UTC. Make sure this is correct and match your clients!

    Your clients renew their license every 13 days, 12:00:00.
    If the renewal fails, the license is 90 days, 0:00:00 valid.

    Your client-token file (.tok) is valid for relativedelta(years=+12).

INFO:     Application startup complete.
INFO:     Uvicorn running on https://0.0.0.0:443 (Press CTRL+C to quit)
INFO:     192.222.6.195:49875 - "GET /-/readme HTTP/1.1" 200 OK
INFO:     192.222.6.195:49875 - "GET /favicon.ico HTTP/1.1" 404 Not Found
INFO:     192.222.6.195:49880 - "GET /-/client-token HTTP/1.1" 200 OK

nvidia version and gpu card

[root@host157 ~]# nvidia-smi
Thu Dec 28 11:49:34 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.85.07    Driver Version: 525.85.07    CUDA Version: N/A      |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Tesla T4            On   | 00000000:61:00.0 Off |                  Off |
| N/A   56C    P8    16W /  70W |   2103MiB / 16384MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A     20636    C+G   vgpu                             2091MiB |
+-----------------------------------------------------------------------------+
[root@host157 ~]# nvidia-smi vgpu
Thu Dec 28 11:49:38 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.85.07              Driver Version: 525.85.07                 |
|---------------------------------+------------------------------+------------+
| GPU  Name                       | Bus-Id                       | GPU-Util   |
|      vGPU ID     Name           | VM ID     VM Name            | vGPU-Util  |
|=================================+==============================+============|
|   0  Tesla T4                   | 00000000:61:00.0             |   0%       |
|      3251634187  GRID T4-2Q     | 8704...  instance-00000007   |      0%    |
+---------------------------------+------------------------------+------------+
I download tok in win10 LSTC use https://192.222.14.55:443/-/client-token and put it in ClientConfigToken florder, restart win10 vm, then nvidia-vgpu-mgr show can not registers. Something wrong? My env is not pve, it is opesntack. ```shell Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: notice: vmiop_log: ######## Guest NVIDIA Driver Information: ######## Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: notice: vmiop_log: Driver Version: 528.24 Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: notice: vmiop_log: vGPU version: 0x100001 Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: notice: vmiop_log: (0x0): vGPU license state: Unlicensed (Unrestricted) Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: error: guest attempted access to priv registers Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: error: guest attempted access to priv registers Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: error: guest attempted access to priv registers Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: error: guest attempted access to priv registers Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: error: guest attempted access to priv registers Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: error: guest attempted access to priv registers Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: error: guest attempted access to priv registers Dec 28 11:43:42 host157 nvidia-vgpu-mgr[20636]: error: guest attempted access to priv registers ``` run DLS docker ```shell [root@localhost ~]# WORKING_DIR=/opt/docker/fastapi-dls/cert mkdir -p $WORKING_DIR cd $WORKING_DIR # create instance private and public key for singing JWT's openssl genrsa -out $WORKING_DIR/instance.private.pem 2048 openssl rsa -in $WORKING_DIR/instance.private.pem -outform PEM -pubout -out $WORKING_DIR/instance.public.pem # create ssl certificate for integrated webserver (uvicorn) - because clients rely on ssl openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout $WORKING_DIR/webserver.key -out $WORKING_DIR/webserver.crt writing RSA key .....+.+..+...+.+...+..+.........+.+.....+.+............+........+.........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+.+...........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+..........+...+...+.....+....+..............+..........+..+....+..............+....+...............+...+.........+.....+...............+......+....+...+...........+....+..+....+..+....+...+..+......+...+.......+..+.+.....+......+.........+.+.....+.+.........+...+.....+......+....+...+...+.....+.....................+....+..+............+...+....+.........+............+...+..+....+........+......+....+...........+....+..+.+..+..........+..+.........+....+...+..+.+....................+......+.+..+...+...................+.....+...................+......+...........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ...+...+..........+...+.................+.+.....+.........+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+.....+.......+.....+...+.........+......+....+........+......+................+........+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*......+......+.......+........+.+...+..+...............+....+.........+..+.+............+.....+.......+...+.....+......+.+...+............+......+...+..+....+......+..+...+....+.....+....+..+.........+...+.+...........+...............................+...+............+............+.....+...+....+.....+.+...+.........+...+..+...+.......+.....+...+..................+.+..............+......+.+...+.........+..+...+......+.+...+..+....+...............+..............+...+.......+......+......+..............+.......+..+...+...................+...+...+........+....+..+.............+.....+......+..........+.....+.+......+..............+.+..+.+...........+.+.....+.............+.........+..+......+....+..................+...+.....+..........+..+.+......+.....+....+.........+..+...+............+.+..................+..+.........+...+...+..........+............+..+...+.+.....+.+.....................+.........+.....................+.....+.........+......+.......+...+.....+.......+..+.+..+......+...............+.......+.....+....+..............+......+...+...+.......+..+...+.+..+....+...+...........+....+...+........+.+......+...+...........................+...+...........+...+..........+..+....+......+......+..+.............+..............+...+...+...+....+...+.....+..........+........+....+.....+.+.........+..+......+....+...+...+.....+...+.+......+........+......+...............+...+......+......+.+...+..............+.....................+.+...........+............+...............+.......+.....+.+.........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [XX]: State or Province Name (full name) []: Locality Name (eg, city) [Default City]: Organization Name (eg, company) [Default Company Ltd]: Organizational Unit Name (eg, section) []: Common Name (eg, your name or your server's hostname) []: Email Address []: [root@localhost cert]# [root@localhost cert]# ls /opt/docker/fastapi-dls/cert instance.private.pem instance.public.pem webserver.crt webserver.key [root@localhost cert]# docker volume create dls-db Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. dls-db [root@localhost cert]# docker run -e DLS_URL=192.222.14.55 -e DLS_PORT=443 -p 443:443 -v $WORKING_DIR:/app/cert -v dls-db:/app/database collinwebdesigns/fastapi-dls:latest Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. ✔ docker.io/collinwebdesigns/fastapi-dls:latest Trying to pull docker.io/collinwebdesigns/fastapi-dls:latest... Getting image source signatures Copying blob 269f4f35abb3 skipped: already exists Copying blob 9875af95546d skipped: already exists Copying blob 7890f6f8c0ee skipped: already exists Copying blob 5be5eddf2046 skipped: already exists Copying blob 178c73d982b6 skipped: already exists Copying blob 96526aa774ef skipped: already exists Copying blob ee3ef4dd4aa6 skipped: already exists Copying blob 39ff4dad1f9f skipped: already exists Copying blob 3ec0ed1f80bc skipped: already exists Copying blob edac40ef7ac6 skipped: already exists Copying config 2746df9987 done Writing manifest to image destination INFO: Started server process [1] INFO: Waiting for application startup. INFO:main: Using timezone: UTC. Make sure this is correct and match your clients! Your clients renew their license every 13 days, 12:00:00. If the renewal fails, the license is 90 days, 0:00:00 valid. Your client-token file (.tok) is valid for relativedelta(years=+12). INFO: Application startup complete. INFO: Uvicorn running on https://0.0.0.0:443 (Press CTRL+C to quit) INFO: 192.222.6.195:49875 - "GET /-/readme HTTP/1.1" 200 OK INFO: 192.222.6.195:49875 - "GET /favicon.ico HTTP/1.1" 404 Not Found INFO: 192.222.6.195:49880 - "GET /-/client-token HTTP/1.1" 200 OK ``` nvidia version and gpu card ```shell [root@host157 ~]# nvidia-smi Thu Dec 28 11:49:34 2023 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 525.85.07 Driver Version: 525.85.07 CUDA Version: N/A | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 Tesla T4 On | 00000000:61:00.0 Off | Off | | N/A 56C P8 16W / 70W | 2103MiB / 16384MiB | 0% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 20636 C+G vgpu 2091MiB | +-----------------------------------------------------------------------------+ [root@host157 ~]# nvidia-smi vgpu Thu Dec 28 11:49:38 2023 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 525.85.07 Driver Version: 525.85.07 | |---------------------------------+------------------------------+------------+ | GPU Name | Bus-Id | GPU-Util | | vGPU ID Name | VM ID VM Name | vGPU-Util | |=================================+==============================+============| | 0 Tesla T4 | 00000000:61:00.0 | 0% | | 3251634187 GRID T4-2Q | 8704... instance-00000007 | 0% | +---------------------------------+------------------------------+------------+ ```
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: oscar.krause/fastapi-dls#7
No description provided.