Just realized while reading the article again: it was A or B, not A and B. Seems like if I pass the device ID I don't (necessarily) need to blacklist the driver.
TL;DR I have two GPUs. One for VM, one for LXC. Is it possible?
So basically, I've been using GPU1 on a Windows VM for a while. Recently I've acquired a second GPU (GPU2), and I want to use it on a LXC.
The problem is, as my I've followed this wiki article, I've already blacklisted Nvidia gpu drivers (both GPUs are Nvidia). Afaik to passthrough a GPU to an LXC, the host should install & configure the drivers. Hence, I need a way so that the host has the Nvidia drivers, yet catches only GPU2 and leaves GPU1 alone so that my Windows VM can use it. One hard requirement here is, the Windows VM should be able to turn on & off multiple times without a host reboot.
I did some search but failed to find info on my situation. Some articles suggest sharing is not possible but it was about sharing a same GPU on both VMs & LXCs, which is not my case.
Anyways, thanks in advance!
TL;DR I have two GPUs. One for VM, one for LXC. Is it possible?
So basically, I've been using GPU1 on a Windows VM for a while. Recently I've acquired a second GPU (GPU2), and I want to use it on a LXC.
The problem is, as my I've followed this wiki article, I've already blacklisted Nvidia gpu drivers (both GPUs are Nvidia). Afaik to passthrough a GPU to an LXC, the host should install & configure the drivers. Hence, I need a way so that the host has the Nvidia drivers, yet catches only GPU2 and leaves GPU1 alone so that my Windows VM can use it. One hard requirement here is, the Windows VM should be able to turn on & off multiple times without a host reboot.
I did some search but failed to find info on my situation. Some articles suggest sharing is not possible but it was about sharing a same GPU on both VMs & LXCs, which is not my case.
Anyways, thanks in advance!
Last edited: