KVM 的 OpenGL - Linux

Table of Contents

目前使用 KVM 並且使用 virt-manager 當frontend來安裝 Windows 為 guest os
因為有 OpenGL 3以上版本的需求
所以想要使用虛擬顯示卡

將 Video 調成 Virtio 並將 3D acceleration 打勾
並且將 Display 的Spice server裡的 OpenGL 也打勾
也安裝了 spice-guest-tools-latest 與 virtio-win-0.1.189
OpenGL 的版本只有 1.1
然後參考 https://en.wikipedia.org/wiki/GPU_virtualization
裡面寫到使用 Virgil 3D可以使用到 4.3版
不知是有哪個細節漏掉了?


若是真的沒辦法
買張顯卡使用passthrough是不是直接將顯卡支援的 OpenGL 版直接打到guest OS上?

謝謝

--

All Comments

Oliver avatarOliver2020-11-23
顯卡passthrough的話host就完全不能用喔
Elizabeth avatarElizabeth2020-11-25
GPU虛擬化用VMWare比較有效能
Iris avatarIris2020-11-26
目前用vwware跑是沒問題,只是希望能在kvm或是xen跑跑看
,又看到維基寫virgil可以支援到opengl 3
Tristan Cohan avatarTristan Cohan2020-11-28
Windows guest 應該還沒有正式支援 virgl,只有前幾年
的PoC;https://virgil3d.github.io 可以看到還列在 fu
Kama avatarKama2020-11-30
ture scope 裡
Victoria avatarVictoria2020-12-01
https://devconfcz2020a.sched.com/event/YOsF
今年看起來有點進展,但可能還得等一陣子
Ida avatarIda2020-12-03
除了passthrough,如果有intel內顯、程式負擔不重也可
以試試看gvt-g,可以host和guest共用內顯
Annie avatarAnnie2020-12-05
無內顯cpu加上非pro級radeon,看來只能等待了