virt-manager egl-headless显示异常
问题描述
虚拟机使用SPICE + EGL headless显示器,启动后virt-manager提示:
Cannot display graphical console type 'egl-headless'
解决办法
编辑虚拟机的XML描述文件,将SPICE显示器移到EGL headless显示器前面:
<graphics type="spice" autoport="yes">
<listen type="address"/>
</graphics>
<graphics type="egl-headless">
<gl rendernode="/dev/dri/renderD128"/>
</graphics>
原因分析
猜测virt-manager应该是将第一个graphics
参数作为默认显示器,然后导致了上述
错误。个人觉得virt-manager可以处理的稍微灵活一点,对显示器的类型进行一下判
断,然后再决定使用哪个显示器。
Last update:
2023-01-04