Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vgpu: object not found virtio-vgpu #13

Open
bondlei opened this issue Sep 6, 2024 · 17 comments
Open

vgpu: object not found virtio-vgpu #13

bondlei opened this issue Sep 6, 2024 · 17 comments

Comments

@bondlei
Copy link

bondlei commented Sep 6, 2024

I had installed guest os success,but not show “Mvisor VGPU” device in win11 device manager.

host: deepin23
vm: windows 11

it's report an "object not found virtio-vgpu virtio-vgpu" error when start vm use mvisor command.
istone@istone-PC:~/Documents/WorkSpace/mvisor$ ./build/mvisor -c config/sample.yaml -vnc 5900 [0.000] core/configuration.cc:275 LoadObjects() warn: object not found virtio-vgpu virtio-vgpu [45.593] gui/vnc/server.cc:37 VncServer() debug: VNC server started port=5900
yaml config :

name: Default configuration
base: q35.yaml

machine:
memory: 4G
vcpu: 4

priority: 1
debug: No
hypervisor: Yes

objects:

  • name: cmos
    rtc: localtime

  • class: qxl

  • class: spice-agent

  • class: usb-tablet

  • class: virtio-network
    mac: 00:50:00:11:22:33
    map: tcp:0.0.0.0:8022-:22

  • class: ata-cdrom
    image: /home/istone/Downloads/iso/26100.1.240331-1435.ge_release_CLIENT_IOT_LTSC_EVAL_x64FRE_en-us.iso

  • class: ata-cdrom
    image: /home/istone/Downloads/iso/virtio-win-0.1.229.iso

  • class: virtio-block
    image: /home/istone/Documents/KVMachine/Mvisor-Win11LTSC.qcow2
    snapshot: No

  • class: virtio-vgpu
    memory: 1G
    staging: Yes
    blob: No

@nooodles2023
Copy link
Collaborator

@bondlei
Copy link
Author

bondlei commented Sep 18, 2024

在host上编译https://gitlab.freedesktop.org/virgl/virglrenderer,然后打开vgpu开关重新编译mvisor

在主机上编译安装了virglrenderer,并且重新打开mvisor的vgpu开关并重新编译安装,现在用install.bat安装驱动时直接蓝屏了,也换了最新版的MvisorVGPUx64.dll。
截图_选择区域_20240918130815
截图_mvisor_20240918130751
截图_microsoft-edge_20240918131409

@nooodles2023
Copy link
Collaborator

nooodles2023 commented Sep 18, 2024

What size of guest vm ram have you set?
It's recommended be 12G at least

@bondlei
Copy link
Author

bondlei commented Sep 18, 2024

What size of guest vm ram have you set? It's recommended be 12G at least

增加客户机内存后可以正常启动了,但是gputest运行失败,以管理员权限启动后白屏,大概5秒后闪退。
截图_mvisor_20240918151203

@nooodles2023
Copy link
Collaborator

What size of guest vm ram have you set? It's recommended be 12G at least

增加客户机内存后可以正常启动了,但是gputest运行失败,以管理员权限启动后白屏,大概5秒后闪退。 截图_mvisor_20240918151203

Did mvisor give some info when you run gputest in vm?
You can use dbgview to get some debug info in guest.

@bondlei
Copy link
Author

bondlei commented Sep 18, 2024

What size of guest vm ram have you set? It's recommended be 12G at least

增加客户机内存后可以正常启动了,但是gputest运行失败,以管理员权限启动后白屏,大概5秒后闪退。 截图_mvisor_20240918151203

Did mvisor give some info when you run gputest in vm? You can use dbgview to get some debug info in guest.
如图:

截图_选择区域_20240918153121

@nooodles2023
Copy link
Collaborator

Oh, I got the same error in my new env just now.
I'm debuging it.

@bondlei
Copy link
Author

bondlei commented Sep 18, 2024

Oh, I got the same error in my new env just now. I'm debuging it.

Come on,Baby!!
顺便问下,客户机安装guest-tools后会多一个qxl的显卡驱动,和你的mvisor-vgpu是什么关系?会冲突么?会优先使用谁来渲染?

@nooodles2023
Copy link
Collaborator

nooodles2023 commented Sep 18, 2024

Oh, I got the same error in my new env just now. I'm debuging it.

Come on,Baby!! 顺便问下,客户机安装guest-tools后会多一个qxl的显卡驱动,和你的mvisor-vgpu是什么关系?会冲突么?会优先使用谁来渲染?

不会冲突,mvisor-vgpu只负责opengl指令转发到host,不负责显示,屏幕显示还是由qxl执行的
guest程序会使用opengl32.dll来确定是否具有3d加速的功能

@bondlei
Copy link
Author

bondlei commented Sep 18, 2024

Oh, I got the same error in my new env just now. I'm debuging it.

Come on,Baby!! 顺便问下,客户机安装guest-tools后会多一个qxl的显卡驱动,和你的mvisor-vgpu是什么关系?会冲突么?会优先使用谁来渲染?

不会冲突,mvisor-vgpu只负责opengl指令转发到host,不负责显示,屏幕显示还是由qxl执行的 guest程序会使用opengl32.dll来确定是否具有3d加速的功能

好的,我之前在qemu平台下创建的qcow2文件可以直接在mvisor下使用么?或者需要如何迁移?客户机系统是win10ltsc,我是想等vgpu测试成功后就迁移到mvisor下使用,因为虚拟机里装了很多工作环境,不想重装系统。

@nooodles2023
Copy link
Collaborator

Oh, I got the same error in my new env just now. I'm debuging it.

Come on,Baby!! 顺便问下,客户机安装guest-tools后会多一个qxl的显卡驱动,和你的mvisor-vgpu是什么关系?会冲突么?会优先使用谁来渲染?

不会冲突,mvisor-vgpu只负责opengl指令转发到host,不负责显示,屏幕显示还是由qxl执行的 guest程序会使用opengl32.dll来确定是否具有3d加速的功能

好的,我之前在qemu平台下创建的qcow2文件可以直接在mvisor下使用么?或者需要如何迁移?客户机系统是win10ltsc,我是想等vgpu测试成功后就迁移到mvisor下使用,因为虚拟机里装了很多工作环境,不想重装系统。

可以直接使用

@nooodles2023
Copy link
Collaborator

I have fixed, use release v1.0.1 and rebuild virglrenderer in host with old version(8df4cba170940dad9350a99900293adbcef39b6c)

@bondlei
Copy link
Author

bondlei commented Sep 19, 2024

I have fixed, use release v1.0.1 and rebuild virglrenderer in host with old version(8df4cba170940dad9350a99900293adbcef39b6c)

使用最新的1.0.1驱动并且编译安装8df4cba170940dad9350a99900293adbcef39b6c版的virglrenderer驱动后成功了,在win11ltsc上也测试可以。但是virglrenderer后续只能使用这个版本么?
截图_mvisor_20240919091301
截图_mvisor_20240919091551

@bondlei
Copy link
Author

bondlei commented Sep 19, 2024

另外发现一个问题,网页上播放4k的时候好像也没有利用上gpu,鲁大师、安兔兔等测试工具也提示gpu不满足条件?那这个vgpu驱动适用于哪些场景?

截图_mvisor_20240919105130

@nooodles2023
Copy link
Collaborator

I have fixed, use release v1.0.1 and rebuild virglrenderer in host with old version(8df4cba170940dad9350a99900293adbcef39b6c)

使用最新的1.0.1驱动并且编译安装8df4cba170940dad9350a99900293adbcef39b6c版的virglrenderer驱动后成功了,在win11ltsc上也测试可以。但是virglrenderer后续只能使用这个版本么? 截图_mvisor_20240919091301 截图_mvisor_20240919091551

后续会更新guest mesa,与host的virglrenderer对应即可

@nooodles2023
Copy link
Collaborator

另外发现一个问题,网页上播放4k的时候好像也没有利用上gpu,鲁大师、安兔兔等测试工具也提示gpu不满足条件?那这个vgpu驱动适用于哪些场景?

截图_mvisor_20240919105130

mvisor-vgpu目前只提供了opengl的接口,chrome用的是webgl他在windows上可能需要其他的dll来提供接口不仅仅是opengl32.dll,鲁大师等一些评测工具是需要完整的显卡驱动的,比如directx就是必须实现的,他们的测评只有opengl是不行的;一些专门使用opengl的3d软件,比如cinema4d这种,他们只需要opengl接口即可,不需要directx以及显卡的注册信息

@nooodles2023
Copy link
Collaborator

想要完整的显卡驱动,目前在虚拟化的平台还是只有透传比较合适,或者使用显卡厂商提供的虚拟化方案比如nvidia的vgpu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants