Score:1

Is GPU-P (GPU-Paravirtualization) Safe?

pl flag

i'm working on building a virtualization server and i want to partition the GPU like the LTT team did in this video and how craft did in this video. i want to this in the production environment for a local business because of the obvious lower cost/station. my question is, is it secure? can an attacker run scripting on the host through the graphics driver which is linking the VM to the host. the reason i ask is because when you use GPU passthrough, microsoft recommends installing a "security mitigation driver" here. since GPU passthrough has an obviously narrower window to the hyper-v host (since the GPU is "offline" at the host level) i'm wondering how it comes into play here. any thoughts? would appreciate it.

Score:3
br flag

Firstly try really hard not to trust LTT when it comes to Production workloads - they routinely make work for themselves building unsupportable, unstable "serverlike" systems - because it gets views, as do the subsequent videos where they 'fix' the problems they cause. Truth is that professional system design, building and administration is kind of dull because all we care about is uptime and serving our customers - it's dull, doesn't get clicks but keeps hundreds of thousands of professionals in work - and the world turning.

Secondly it's perfectly possible to build GPU virtualisation that's reliable and secure - I do it myself - but I use VMware's ESXi as my hypervisor and NVidia's GRiD software and supported hardware to achieve this. None of this is free but it's been working well for half-a-decade or more for me.

Obviously you'll have your own budget in mind, which may preclude some or all of the tools I use to do this but to answer your question - yes it's very do'able - but your tool set will vary this. I'm sure there's someone else on here who's maybe tried to do this with Hyper-V.

Certainly full PCIe device passthrough works with most hypervisors given enough configuration, and should be as secure as any other virtualised resource within your VMs.

Anyway I hope you understand my answer, get even better help off others, but please - friends don't let friends trust LTT designs - not for Production anyway, seriously what they do with their disk arrays sends shudders down the spines of storage-pros :)

jwsl224 avatar
pl flag
i don't completely trust LTT; that's why i'm here :) i know about the ESXi grid solution. but my platform is microsoft, and they dropped their support for this (was called RemoteFX vGpu i believe) all they now support is Discrete Device Assignment, which is obviously not ideal. GPU-P is used by quite a wide audience, but i haven't heard much of it from the enterprise side, and microsoft is mum on when they'll get back to developing something similar to vGPU again.
Score:1
sz flag

I would strongly advice against using GPU paravirtualization in an productive environment. Here is why:

  1. Some things work others don't. Folks on reddit tested it for gaming and came up with a list you can see here. If the software you intend to use won't work you will probably get no support from Nvidia, AMD or Microsoft.
  2. The worst thing I experienced was using Nvidia driver R525 and Cyber Punk where both host and guest system crashed at the same time. However the same game worked with an older GPU driver version.
  3. The fact that the feature isn't even included into the Hyper-V-Manager is a strong indicator that it's really experimental.
  4. However if you're into testing new GPU virtualizing solutions, you don't mind searching for a working configuration on your own or with the help of the online community and stability isn't the highest priority then GPU paravirtualization is right for you.

Without the limitation of using Hyper-V I'd suggest using GPU passthrough or vGPUs with a hypervisor like VMware ESXi or KVM. KVM and GPU passthrough would even be available for free and even for consumer GPUs as you can see here.

jwsl224 avatar
pl flag
i have blasted a week into GPU passthrough on ESXi and just canNOT past the PCoIP black screen issue. it's insane. it should not be this hard from a company that does this for a living. i stumbled though the horizon setup with no help and got everything working. i can connect to the VM with VMware Blast and RDP, so i know the horizon setup is fine. just can't PCoIP to work. but yeah. i'm with ya. i abandoned the GPU-P situation because nobody seems to be able to vouch for the security of it. not even the people who wrote the script.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.