VM windows打機 (GPU Passthrough)

行GPU Passthrough,你就可以assign一張顯示卡落vm度,效能同bare windows相差唔多(100fps少3fps左右)。

有好多vm軟件都support GPU Passthrough,例如esxi、unraid同qemu (kvm)。esxi唔洗講(我都唔識講),而unraid係成個vm host os黎,面向一般user同gamer而設既。qemu (kvm)就係linux系統特有既高性能vm,係xen同openvz既後繼者。

要係linux機做到GPU Passthrough係有要求,首先cpu要support vt-d (大部份intel k cpu都冇),板要有iommu (大部份都有),顯示卡既bios要support uefi (gpu-z入面uefi係有tick,大部份新d既顯示卡都有,我要660ti要flash bios)。缺一不可。

當然,cpu core多同ram大係更加著數。

方便起見,最好用兩張顯示卡(onboard都得)同兩個mon。冇兩個mon冇問題,但個mon最好有多個input。

教學片
https://www.youtube.com/watch?v=dsDUtzMkxFk

教學文
https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF

我就是成功例子
https://www.youtube.com/watch?v=0jdxf82miOA

個人經驗:
- 搞左好耐
- 兩張卡,好唔環保,部機好熱...:-(
- 冇兩個mon: 每次都要禁mon掣去轉input,有d煩
- Audio out: 好靚,latency幾低下,唔洗passthrough埋張聲卡
- Audio in (mic): 成20秒delay,我都唔知點搞。聽人講可以轉個soundhw做ac97,但出聲會拆。另外可以買usb audio controller甚至買usb mic (哪有錢)。pcie sound card唔知要點搞。 已用qemu patch solve,請見 https://blog.wtako.net/view/35/my-custom-qemu-pkgbuild
- Mouse: 如果click入去qemu個window做mouse grabbing,得30fps。裝synergy就好好多,完全feel唔到delay。
- Keyboard: 完全冇問題
- Synergy: 其實唔洗比錢買,有d難set,但set好左好好用。
- GPU超頻、刷rom: 完全冇問題,唔洗刷rom可以直接用果個rom開機。
- 打機: 連返host拎file就samba好多game都有問題,用nfs可能好d。sshfs好很慢。條件許可就pass個ntfs partition比windows專裝game

點解唔直頭,起個大啲嘅 vm raw win partition?
direct R/W 應該快好多
reboot win vm 會 hang 機嗎?

TOP

點解唔直頭,起個大啲嘅 vm raw win partition?
direct R/W 應該快好多
reboot win vm 會 hang 機嗎? ...
cal22cal 發表於 2017-1-8 07:58

我依家係成隻60gb ssd (/dev/sdX) pass入qemu,速度都好會

reboot win vm依家唔會hang機,我搵到個patch
https://blog.wtako.net/view/29/% ... 2%E5%95%8F%E9%A1%8C

TOP

cool

TOP

Average frame rate is almost the same, but latency is killing the experience.
I have been playing GTA Online with it for almost a year, ending out simply dual booting a Windows and it was then much faster with the same computer.

TOP

Average frame rate is almost the same, but latency is killing the experience.
I have been playing GT ...
NexusN 發表於 2017-1-9 04:30


Frametime唔覺有分別,你用緊邊粒u?

TOP

vga pass thro' 唔係咁容易搞,
linux 亦都有好多嘢 fine tune,
唔同 distro 表現,亦都可能好唔同。

TOP

有時間試下玩先

TOP

回覆 5# NexusN


你意思指DUAL BOOT,唔用VM, 另外裝一個WINDOW?
(如果系, 諗諗下, 又好似系, 如果要效能/速度, 唔用VM, 直接RUN WINDOW,好似系最好)

TOP

using unRAID with Win10 VM for a long time.
Game Latency no problem at all.
With GPU and NVMe passthrough :)

TOP