Answer the question
In order to leave comments, you need to log in
How to run a script in libvirt when starting/stopping a virtual machine?
I created a Windows guest using the virt-manager GUI and pushed the GPU into it. Everything works, but there was a task before / after starting the guest to "reset" the physical device on the host. I can write a reset script (a couple of commands), but how can I run it at the time of VM startup? How to intercept libvirt/kvm events and run this script as root?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question