Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allocate GPUs to vm or pod in the same node? #52

Open
caohuilong opened this issue Jul 21, 2022 · 3 comments
Open

allocate GPUs to vm or pod in the same node? #52

caohuilong opened this issue Jul 21, 2022 · 3 comments

Comments

@caohuilong
Copy link

Can i use kubevirt-gpu-device-plugin to allocate GPUs to Kubevirt VMs and use k8s-device-plugin to allocate GPUs to my container workloads in the same node?

@rthallisey
Copy link
Collaborator

It's a good question. I haven't tried it, but my guess is that they will both fight for the resources and allocation will fail.

@caohuilong
Copy link
Author

It's a good question. I haven't tried it, but my guess is that they will both fight for the resources and allocation will fail.

I have tried it. It can work but needs lots of manual operations to change the GPU device driver from nvidia to vfio-pci or from vfio-pci to nvidia in the node.

@Vigilans
Copy link

Hi @caohuilong , I am also looking into this issue and is quite interested in allocating gpu to VM or pod in the same node. Could you share your setup about how to do the nvidia <-> vfio-pci driver switch? I wonder if a plugin in kubernetes could be made to make this process automatic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants