Nooke Posted March 12, 2020 Share Posted March 12, 2020 hi there, is it possible to use libvirt hooks inside unRaid? What I want to do is run some specific bash scripts right before the start of a VM. And running another script as soon as the VM is stopped. on the libvirt documentation about hooks for my use case the "/etc/libvirt/hooks/qemu" would be the right one. but this is already a customized php script from unRaid and if I replace it with a bash script for my needs I would break the gui VM start/stop ability as it seems. VFIO-Tools on github has the specific qemu hook part to maintain hooks on a per vm basis. https://github.com/PassthroughPOST/VFIO-Tools would appreciate any support because I need that to allocate on the fly hugepages right before the VM is started. I could do that by starting my allocation bash script inside /boot/config/go but that would only do one part of the job (pre vm boot, not post shutdown) and I can't use any array specific parts for evaluating memory usage (eg /etc/libvirt is not accessable before array startup). cheers 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.