January 15, 20242 yr Hello, I had 2 VMs (Windows 10 and HomeAssistant) that were working great, located on my cache in /mnt/user/domains. While on Unraid 6.11.1, I downloaded a bunch of things to cache and it unfortunately became so full it crashed some dockers and my VMs. I utilized the mover to recover space, and most things were fine again, but I am running into this error when trying to start any VMs. I thought upgrading to 6.12.6 might help, but I'm still running into issues. Error message when trying to create or start a new VM: Hook script execution failed: internal error: Child process (LC_ALL=C PATH=/bin:/sbin:/usr/bin:/usr/sbin HOME=/ /etc/libvirt/hooks/qemu HomeAssistant prepare begin -) unexpected exit status 126: libvirt: error : cannot execute binary /etc/libvirt/hooks/qemu: Exec format error Any ideas on how to fix this? I'm attaching my logs. Thanks for the help! thewalrus-diagnostics-20240114-1913.zip
January 15, 20242 yr Author Or is there a way to wipe out/clear/reset all VM stuff while keeping all other configuration (dockers, plugins, scripts, etc)?
January 15, 20242 yr Jan 14 07:01:13 TheWalrus kernel: BTRFS info (device nvme0n1p1): bdev /dev/nvme0n1p1 errs: wr 103396204, rd 2162704, flush 295847, corrupt 204139, gen 1023 This shows that one of the pool devices dropped offline in the past, run a correcting scrub, also see here for better pool monitoring. 47 minutes ago, Awperator said: Or is there a way to wipe out/clear/reset all VM stuff You can create a new libvirt.img (Settings - VM Manager), it may be good to rename the old one instead of deleting, just in case.
January 15, 20242 yr Author 25 minutes ago, JorgeB said: Jan 14 07:01:13 TheWalrus kernel: BTRFS info (device nvme0n1p1): bdev /dev/nvme0n1p1 errs: wr 103396204, rd 2162704, flush 295847, corrupt 204139, gen 1023 This shows that one of the pool devices dropped offline in the past, run a correcting scrub, also see here for better pool monitoring. You can create a new libvirt.img (Settings - VM Manager), it may be good to rename the old one instead of deleting, just in case. Thanks for the suggestions. I ran a scrub and did not encounter any errors. Creating a new libvirt.img didnt work either, here is the error message in the libvirt logs: 15857: error : virRunScript:294 : Hook script execution failed: internal error: Child process (LC_ALL=C PATH=/bin:/sbin:/usr/bin:/usr/sbin HOME=/ /etc/libvirt/hooks/qemu HomeAssistant stopped end -) unexpected exit status 126: libvirt: error : cannot execute binary /etc/libvirt/hooks/qemu: Exec format error And now under VMs it says: Libvirt Service failed to start.
January 15, 20242 yr Author Oh interesting, there is nothing in my /etc/libvirt directory. I'm comparing against another unraid box I have. I have no idea how that entire directory got cleared. Will post new logs in a sec. Attached thewalrus-diagnostics-20240115-0934.zip Edited January 15, 20242 yr by Awperator
January 15, 20242 yr Jan 15 09:31:13 TheWalrus root: '/mnt/user/system/libvirt/libvirt.img' is in-use, cannot mount A reboot should fix the service not starting, but the other issue will probably still be there.
January 15, 20242 yr Author Solution Ok I got this solved. Thank you so much JorgeB. I did some searching for the missing libvirt folder and saw that others had the same issue. The libvirt folder somehow got moved to /etc/libvirt-. I deleted the libvirt folder, renamed the libvirt- folder to libvirt, then deleted the libvirt image, and rebooted. Once that was all done, the VM manager started and I'm recreating my VMs. Appreciate the help troubleshooting JorgeB!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.