Hooks for libvirt