hook script for changing disk definition before guest start

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


Hi all,
due to this [1] I am trying to change a guest's disk definition from "pool volume" to "file" via hook scripts.

This seems an easy task via virsh detach-disk and virsh attach-disk, but virsh can not be called inside libvirt hook scripts. The best approach would be to change the disk definition right when a disk is attached, but I can not find any event calling a hook script when a disk is attache/detached.

Do you have any suggestion short of monitoring the directory /etc/libvirt/qemu itself for changed files?

[1] https://github.com/cockpit-project/cockpit-machines/issues/815

Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: g.danti@xxxxxxxxxx - info@xxxxxxxxxx
GPG public key ID: FF5F32A8

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

  Powered by Linux