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.

[6.10.3] Libvirt failed to start. /etc/libvirt renamed?

Featured Replies

Hello,

I had an unclean shutdown (power cut and powered back up itself) for some reason when passing a gpu to a vm. Since then, I have not been able to start libvirt. Diag attached. My /etc/libvirt/ dir seems to have been automatically renamed to /etc/libvirt-/. What does a dash at the end of a directory signify? Can I just do the following?

mv /etc/libvirt-/ /etc/libvirt/



Noteworthy errors:

syslog 

root: /usr/sbin/libvirtd: error: Unable to initialize network sockets. Check /var/log/messages or run without --daemon for more info.

 

libvirt

17277: error : virNetSocketNewListenUNIX:511 : Failed to bind socket to '/var/run/libvirt/libvirt-sock': Address already in use

 

BTW, deleting libvirt img did not fix the issue.

 

Thanks in advance,

Kevin

everest-diagnostics-20220926-1422.zip

Edited by Kevinb123213
included unraid version in title as required

Solved by Kevinb123213

  • Kevinb123213 changed the title to [6.10.3] Libvirt failed to start. /etc/libvirt renamed?
  • Author
  • Solution

TL;DR

Files ending in a dash seem to indicate some sort of corruption.

 

Long version:

Found the solution. I think I should share it as it may help others.

Apparently my setup cuts power and resets when I passthrough one of my GPUs - specifically the Nvidida Quadro K600. Knowing that I had an unclean shutdown, I went down the thought processes of data corruption. Which made me remember, a while back I noticed on a corrupted copy unraid usb, the dash ending files (syslinux-) appeared there too.

 

So, I ran the following and pressed option 2 to restore from backup.
 

fsck /boot

 

At this point I restarted and was able to start libvirt.

 

Now time to figure why my K600 is causing reset.

-Kevin

 

 

  • 2 weeks later...
On 9/26/2022 at 5:52 PM, Kevinb123213 said:

TL;DR

Files ending in a dash seem to indicate some sort of corruption.

 

Long version:

Found the solution. I think I should share it as it may help others.

Apparently my setup cuts power and resets when I passthrough one of my GPUs - specifically the Nvidida Quadro K600. Knowing that I had an unclean shutdown, I went down the thought processes of data corruption. Which made me remember, a while back I noticed on a corrupted copy unraid usb, the dash ending files (syslinux-) appeared there too.

 

So, I ran the following and pressed option 2 to restore from backup.
 

fsck /boot

 

At this point I restarted and was able to start libvirt.

 

Now time to figure why my K600 is causing reset.

-Kevin

 

 

 

I just had this happen but your solution didn't seem to work. 

 

My /etc/libvirt is empty but /etc/libvirt- has contents. 

 

Should I copy libvirt- over libvirt, run the fsck, and then reboot?

 

This is driving me insane as it’s my work VM 😞

Edited by jlficken

  • Author

If you have a backup of your USB. Try and restore from there. Looks like unclean shutdowns are the cause of corrupting files.

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.