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


Go to solution Solved by Kevinb123213,

Recommended Posts

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
Link to comment
  • Kevinb123213 changed the title to [6.10.3] Libvirt failed to start. /etc/libvirt renamed?
  • 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

 

 

Link to comment
  • 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
Link to comment

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.