Attaching a hostdev on startup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

I have written a script which attaches some USB tokens as hostdev devices to (qemu) VMs managed by libvirt. This works fine as long as I call the script manually.
But what I really want to do, is run this scrip from a startup hook, so that whenever a Vm is started, it looks if there are appopriate tokens available for attachment. But when the script is run from the hook, it (along with the whole libvirtd) freezes. That doesn't really come as a surprise, since http://libvirt.org/hooks.html explicitely states

A hook script must not call back into libvirt, as the libvirt daemon is already waiting for the script to exit.

A deadlock is likely to occur.


How can I get around this problem?


cheers

Mat

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux