March 12, 20206 yr 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
Archived
This topic is now archived and is closed to further replies.