Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Unable to start existing VMs or create new VMs

Featured Replies

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

Solved by Awperator

  • Author

Or is there a way to wipe out/clear/reset all VM stuff while keeping all other configuration (dockers, plugins, scripts, etc)?

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.

 

  • 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.

  • 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 by Awperator

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.

  • 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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.