Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Libvirt Hooks Support

Featured Replies

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.