[GH-ISSUE #536] libvirt Error - Hook script execution failed #316

Closed
opened 2026-02-27 15:58:14 +03:00 by kerem · 2 comments
Owner

Originally created by @CanGoymen on GitHub (Sep 6, 2022).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/536

When I try to activate second virtual machine than this error occurs:

libvirt Error - Hook script execution failed: internal error: Child process (LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin /etc/libvirt/hooks/qemu test prepare begin -) unexpected exit status 1

Screen Shot 2022-09-06 at 23 21 20

Screen Shot 2022-09-06 at 23 19 26

virt-host-validate result:
image

Originally created by @CanGoymen on GitHub (Sep 6, 2022). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/536 When I try to activate second virtual machine than this error occurs: libvirt Error - Hook script execution failed: internal error: Child process (LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin /etc/libvirt/hooks/qemu test prepare begin -) unexpected exit status 1 ![Screen Shot 2022-09-06 at 23 21 20](https://user-images.githubusercontent.com/49080219/188731078-1880c013-eba7-4837-8b9f-d14a961fa3ed.png) ![Screen Shot 2022-09-06 at 23 19 26](https://user-images.githubusercontent.com/49080219/188730618-3684aa42-f950-4458-8227-1aae7ad8df75.png) virt-host-validate result: <img width="989" alt="image" src="https://user-images.githubusercontent.com/49080219/188731236-dc840a78-ba54-4119-9072-4127824a4ad8.png">
kerem closed this issue 2026-02-27 15:58:14 +03:00
Author
Owner

@catborise commented on GitHub (Sep 7, 2022):

do you test it with virt-manager? i think it is related with libvirt bug, but you should test it with virt-manager to see if it is working or not.

<!-- gh-comment-id:1238976040 --> @catborise commented on GitHub (Sep 7, 2022): do you test it with virt-manager? i think it is related with libvirt bug, but you should test it with virt-manager to see if it is working or not.
Author
Owner

@CanGoymen commented on GitHub (Sep 7, 2022):

I have figured it out , the problem was caused by /etc/libvirt/qemu file. qemu looks /run/xtables.lock file, but file's permission was wrong. I gave 777 than resolved.

sudo chmod 777 xtables.lock

Thanks.

<!-- gh-comment-id:1239060122 --> @CanGoymen commented on GitHub (Sep 7, 2022): I have figured it out , the problem was caused by /etc/libvirt/qemu file. qemu looks /run/xtables.lock file, but file's permission was wrong. I gave 777 than resolved. sudo chmod 777 xtables.lock Thanks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#316
No description provided.