Jump to content
isaacery

Libvirt Service failed to start

54 posts in this topic Last Reply

Recommended Posts

43 minutes ago, itimpi said:

The file is created when you enable VMs under Settings->VM Manager and the path to that file is also set there.

OK I changed the disk size from 1GB to 20 and now it created the file.

 

thanks

Share this post


Link to post
7 minutes ago, lovingHDTV said:

OK I changed the disk size from 1GB to 20 and now it created the file.

 

thanks

There is no need to have a file anywhere near that big.    The default size of 1GB is probably far more than is needed as all that is stored inside it is configuration information about the VM service and any VMs you create.

Share this post


Link to post
3 hours ago, itimpi said:

There is no need to have a file anywhere near that big.    The default size of 1GB is probably far more than is needed as all that is stored inside it is configuration information about the VM service and any VMs you create.

Ok how do I change that?  I don't see that option in the VM settings any longer. I do see the btrfs as 20GB.

 

NM figured it out

Edited by lovingHDTV

Share this post


Link to post

Hi Guys,

I've been using Unraid for years now, but only as a file server.  Today I've started looking at Dockers and VM's and since I'm still a noob at those, of course I've run into my first snag.  I also get the "Libvirt Service failed to start" message after enabling VM's in the VM manager.  When I look (with midnight commander) at the /mnt/user/system/libvirt directory, there is no such file as "libvirt.img".  They way I understand it, Unraid should create this file automatically when the VM's are enabled, no? 

What am I doing wrong?  (Unraid version is 6.8.0 rc6)

Thanks!

Share this post


Link to post

IMAGE_FILE="/mnt/user/system/libvirt/"

Common mistake.  The libvirt storage location points to a file, not to a folder.  Add libvirt.img to the end of it in the settings

Share this post


Link to post

Ok.  I've now added the libvirt.img to the storage location, so it now reads "/mnt/user/system/libvirt/libvirt.img".  Still, no file is created and the error remains.  (when I ssh into the server, I still see no file). 

I've added another diagnostics file.

tower-diagnostics-20191117-2039.zip

Share this post


Link to post
13 hours ago, BartDG said:

Ok.  I've now added the libvirt.img to the storage location, so it now reads "/mnt/user/system/libvirt/libvirt.img".  Still, no file is created and the error remains.  (when I ssh into the server, I still see no file). 

I've added another diagnostics file.

tower-diagnostics-20191117-2039.zip 70.42 kB · 2 downloads

Go to Settings -> VM Manager and set a valid path to "Default ISO storage path:"

Share this post


Link to post

Thanks Johnnie!  I'm not home at the moment, but I'll make sure to try this tonight when I get back.

Cheers!

 

Edit.  That worked!  Thanks a lot!

Edited by BartDG

Share this post


Link to post

I'm facing a similar issue too. I've tried all the steps detailed above and unable to find a resolution. I also copied over my libvirt.img file from a backup, but still no luck.

 

Here's what I see in my libvirt logs under Settings > VM Manager

2020-02-15 23:46:48.072+0000: 22980: info : libvirt version: 5.10.0
2020-02-15 23:46:48.072+0000: 22980: info : hostname: vvolfbox
2020-02-15 23:46:48.072+0000: 22980: warning : qemuDomainObjTaint:9301 : Domain id=1 name='Gaming' uuid=05a5b827-d0e0-6148-6908-a6cf7506671d is tainted: high-privileges
2020-02-15 23:46:48.072+0000: 22980: warning : qemuDomainObjTaint:9301 : Domain id=1 name='Gaming' uuid=05a5b827-d0e0-6148-6908-a6cf7506671d is tainted: host-cpu
2020-02-16 18:55:24.227+0000: 22981: warning : qemuDomainObjTaint:9301 : Domain id=2 name='Gaming' uuid=05a5b827-d0e0-6148-6908-a6cf7506671d is tainted: high-privileges
2020-02-16 18:55:24.227+0000: 22981: warning : qemuDomainObjTaint:9301 : Domain id=2 name='Gaming' uuid=05a5b827-d0e0-6148-6908-a6cf7506671d is tainted: host-cpu
2020-02-16 18:56:51.838+0000: 22977: error : qemuMonitorIO:619 : internal error: End of file from qemu monitor
2020-02-16 18:57:00.541+0000: 22982: warning : qemuDomainObjTaint:9301 : Domain id=3 name='Gaming' uuid=05a5b827-d0e0-6148-6908-a6cf7506671d is tainted: high-privileges
2020-02-16 18:57:00.541+0000: 22982: warning : qemuDomainObjTaint:9301 : Domain id=3 name='Gaming' uuid=05a5b827-d0e0-6148-6908-a6cf7506671d is tainted: host-cpu
2020-02-16 19:00:44.554+0000: 22977: error : qemuMonitorIO:619 : internal error: End of file from qemu monitor

Also attaching my diagnostics. Any help would be much appreciated! I've made a lot of tweaks a lot on my VM and would hate to lose all of it :(

 

vvolfbox-diagnostics-20200216-2020.zip

Share this post


Link to post
3 hours ago, vvolfpack said:

I'm facing a similar issue too.

Libvirt.img started correctly after boot, then it stopped working because of a duplicate UUID, reboot and post new diags if you still have issues. 

Share this post


Link to post

Thanks for the tip! I'll reboot the server once I'm back home in 2 days, since I'm worried I won't be able to log back into it via OpenVPN upon reboot. (Array has a password, so does my root account)

Share this post


Link to post
22 minutes ago, vvolfpack said:

I'm worried I won't be able to log back into it via OpenVPN upon reboot.

Wireguard would work better in this instance, however, I'd always recommend a backup method to get in to your home network. Router based VPN can be one way, a different way would be a pc with teamviewer or some other remote access package that runs all the time.

Share this post


Link to post
On 2/17/2020 at 12:17 AM, johnnie.black said:

reboot and post new diags if you still have issues

Reboot did the trick for me! Thanks so much!

Share this post


Link to post

Hello, I didn't want to create a new topic as I'm experiencing this same issue with "Libvert Service failed to start" appearing. I've rebooted, I've tried to restore the previous Libvert.img. I've made sure that it's pointing to an img file as shown here2481038_Annotation2020-03-24231308.thumb.jpg.909690bc70faab146885754339a0efce.jpg

 

I've included the diagnostics. What's strange is this happened after I downloaded the newest VirtIO Driver ISO after building a second VM.

 

 

diagnostics-20200324-2258.zip

Share this post


Link to post
6 hours ago, severanced said:

as I'm experiencing this same issue with "Libvert Service failed to start" appearing.

It appears to be starting correctly at array start, it then failed to restart, rebooting should fix that.

Share this post


Link to post
2 hours ago, johnnie.black said:

It appears to be starting correctly at array start, it then failed to restart, rebooting should fix that.

Just tried rebooting again, same issue, still says "Libvirt Service failed to start"

Share this post


Link to post
28 minutes ago, severanced said:

Just tried rebooting again, same issue, still says "Libvirt Service failed to start"

Do you have something restarting the service? Like mentioned it starts correctly at first array start, try booting in safe mode.

Share this post


Link to post
1 minute ago, johnnie.black said:

Do you have something restarting the service? Like mentioned it starts correctly at first array start, try booting in safe mode.

Nothing that I know of, would I just boot it without plugins? I see there's a no plugin and a no plugin, no gui option.

Share this post


Link to post
1 hour ago, johnnie.black said:

Yes, safe mode

Just tried starting it in safe mode, started up the array manually and got the same error. Should I upload the diagnostics?

Share this post


Link to post

Now it's a different issue than before, the image is corrupt:

Mar 25 11:14:57 CrusherJoe kernel: BTRFS error (device loop3): bad tree block start, want 30408704 have 0

 

Restore from backup then boot again is safe mode.

Share this post


Link to post

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.