[problem help] KVM开启3D加速无法启动
Tofloor
poster avatar
zmqsybzc
deepin
2024-06-07 01:16
Author

系统:deepin 23 RC2

内核:6.6.25-amd64-desktop-hwe

CPU:i7-12700K

状态:QEMU/KVM打开3D加速后无法启动

截图_virt-manager_20240607011424.png

错误信息:

启动域时出错: 内部错误:QEMU unexpectedly closed the monitor (vm='win11'): 2024-06-06T17:11:53.961462Z qemu-system-x86_64: -device {"driver":"virtio-vga-gl","id":"video0","max_outputs":1,"bus":"pcie.0","addr":"0x1"}: opengl is not available

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
ret = fn(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/virt-manager/virtManager/object/domain.py", line 1402, in startup
self._backend.create()
File "/usr/lib/python3/dist-packages/libvirt.py", line 1373, in create
raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: 内部错误:QEMU unexpectedly closed the monitor (vm='win11'): 2024-06-06T17:11:53.961462Z qemu-system-x86_64: -device {"driver":"virtio-vga-gl","id":"video0","max_outputs":1,"bus":"pcie.0","addr":"0x1"}: opengl is not available

Reply Favorite View the author
All Replies
neko
deepin
Ecological co-builder
2024-06-07 02:38
#1

开启加速要把监听类型改成无
image.png

显卡类型改成virtio
image.png

Reply View the author
zmqsybzc
deepin
2024-06-07 18:50
#2
neko

开启加速要把监听类型改成无
image.png

显卡类型改成virtio
image.png

试了一下,设置之后虽然没有报错,但是虚拟机黑屏了,没有画面

Reply View the author
zmqsybzc
deepin
2024-06-07 19:13
#3
neko

开启加速要把监听类型改成无
image.png

显卡类型改成virtio
image.png

现在解决了,谢谢你

Reply View the author
…清
deepin
2024-06-22 16:43
#4

这个是什么虚拟机软件啊?

Reply View the author
zmqsybzc
deepin
2024-06-22 17:21
#5
…清

这个是什么虚拟机软件啊?

KVM,sudo apt install virt-manager

Reply View the author