retspen / webvirtcloud

WebVirtCloud is virtualization web interface for admins and users
1.63k stars 362 forks source link

libvirt Error - Hook script execution failed #536

Closed CanGoymen closed 1 year ago

CanGoymen commented 1 year ago

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
catborise commented 1 year ago

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.

CanGoymen commented 1 year ago

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.