tenclass / mvisor-win-vgpu-driver

Implementation of OpenGL on windows guest virtual machine using Mesa/Virgl protocol.
GNU General Public License v3.0
114 stars 21 forks source link

Can't use vgpu in vm #1

Closed cdm1993dk closed 1 year ago

cdm1993dk commented 1 year ago

Hi, I have installed the driver in a win10 vm, but gputest showed nothing during the test: 1 3

From the mvisor's log, it seems that the commands sent from vgpu had reached virglrenderer, but virglrenderer failed to render it correctly: 2

There is a gtx1650 on the host which has the latest proprietary NVIDIA driver installed. Some env info :

vgpu config:

  - class: virtio-vgpu
    memory: 1G
    staging: Yes
    blob: Yes
    node: /dev/dri/renderD128

Any suggestions?

nooodles2023 commented 1 year ago

Oh, there are something wrong with virglrender, have you ever tried to build virglrender from source(master)? The blob feature need to patch virglrender(I showed the method on the README.md), or maybe you can just turn off the blob.

- class: virtio-vgpu
  memory: 1G
  staging: Yes
  blob: No
  node: /dev/dri/renderD128

Make sure that "/dev/dri/renderD128" properly worked, or you can remove the node config to let mvisor to find it automatically.

cdm1993dk commented 1 year ago

I use the virglrender built from source and now it's working, thx!