GitHub user li-liwen added a comment to the discussion: GPU passthrough support 
in KVM

@vishesh92 I'm using Libvirt hooks. Specifically, the groovy agent hooks 
introduced in #3839. I'm trying to write a script that can dynamically check 
available GPUs (by maintaining an extra json file containing all GPUs). I'm 
still working on this, but I think it should work. However, when there's no 
available GPU, the instance will either boot normally without GPU (throw an 
exception in the groovy script), or enter error state (use sys.exit(1) 
instead). Neither is ideal. But I cannot think of a better way to do that.

GitHub link: 
https://github.com/apache/cloudstack/discussions/10155#discussioncomment-11760036

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org

Reply via email to