Skip to content

Do not call virsh in libvirt hooks #44

Description

@zhiyuanzhai

According to the document of libvirt:

Calling libvirt functions from within a hook script
DO NOT DO THIS!
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.

Maybe we should use other CLI tools like sysfs instead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions