Jump to content
toby9999

VM no longer auto-starting (manual start works fine)

7 posts in this topic Last Reply

Recommended Posts

Really strange ... I can't pinpoint exactly when this problem started happening, but I have a Win10 VM set to autostart, but it won't auto start (ie after a reboot of unraid).  It manually starts with no problems at all.

 

I've tried disabling autostart, then re-enabling it. I've also tried upgrading from 6.1.3 to 6.1.6, but both OS versions have the same issue.

 

Is there a config file I can check to see if the autostart setting is in fact set?

 

The VM's xml file doesn't have an autostart option in there that I can see, so I'm guessing it's in a different config file.

 

Anyway, any help is greatly appreciated, thanks!

Share this post


Link to post

Really strange ... I can't pinpoint exactly when this problem started happening, but I have a Win10 VM set to autostart, but it won't auto start (ie after a reboot of unraid).  It manually starts with no problems at all.

 

I've tried disabling autostart, then re-enabling it. I've also tried upgrading from 6.1.3 to 6.1.6, but both OS versions have the same issue.

 

Is there a config file I can check to see if the autostart setting is in fact set?

 

The VM's xml file doesn't have an autostart option in there that I can see, so I'm guessing it's in a different config file.

 

Anyway, any help is greatly appreciated, thanks!

 

It's probably windows.  Look at the windows reliability history to see if it is crashing the first time it is started.

Share this post


Link to post

Ok, I checked the reliability history in Windows, but everything looks ok.

 

Any other ideas? What's the config file/setting that controls the autostart?

Share this post


Link to post

When a VM is set to autostart, a symlink to its original XML is created in a subfolder called "autostart".  /etc/libvirt/qemu is where the XML files are stored and /etc/libvirt/qemu/autostart is where the symlinks go.

Share this post


Link to post

I would check the libvirt log (a link to it can be found under Settings -> VM Manager and turning on help)

Share this post


Link to post

I would check the libvirt log (a link to it can be found under Settings -> VM Manager and turning on help)

 

Ahh that did the trick (I didn't know about the Help button ... pretty cool feature!) ... anyway, here's the log...

 

2015-12-07 10:51:13.075+0000: 8142: info : libvirt version: 1.2.18

2015-12-07 10:51:13.075+0000: 8142: error : virUSBDeviceFindByVendor:242 : internal error: Did not find USB device 45e:cb

2015-12-07 10:51:13.098+0000: 8142: warning : virHostdevReAttachUSBDevices:1455 : Unable to find device 001.008 in list of active USB devices

2015-12-07 10:51:13.098+0000: 8142: warning : virHostdevReAttachUSBDevices:1455 : Unable to find device 000.000 in list of active USB devices

2015-12-07 10:51:13.098+0000: 8142: warning : virHostdevReAttachUSBDevices:1455 : Unable to find device 000.000 in list of active USB devices

2015-12-07 10:51:13.098+0000: 8142: warning : virHostdevReAttachUSBDevices:1455 : Unable to find device 000.000 in list of active USB devices

2015-12-07 10:51:13.098+0000: 8142: warning : virHostdevReAttachUSBDevices:1455 : Unable to find device 000.000 in list of active USB devices

2015-12-07 10:51:13.108+0000: 8142: error : qemuAutostartDomain:302 : Failed to autostart VM 'Win10VM': internal error: Did not find USB device 45e:cb

2015-12-07 10:52:06.469+0000: 8125: warning : qemuDomainObjTaint:2065 : Domain id=2 name='Win10VM' uuid=0ea65933-a1b4-fb12-0206-1e29ea25f5cf is tainted: high-privileges

2015-12-07 10:52:06.469+0000: 8125: warning : qemuDomainObjTaint:2065 : Domain id=2 name='Win10VM' uuid=0ea65933-a1b4-fb12-0206-1e29ea25f5cf is tainted: host-cpu

 

Sure enough, looks like a USB issue ... it's just a bit surprising that when I do a manual start of the VM, it starts ok (and all the USB devices work fine).

 

I'm not too concerned, I have my mouse/kbd/phone charger all passing through the usb hub that's built in to my monitor, and it's often a bit flaky. I'll eventually get around to bypassing the monitor's usb hub and going direct to the server's motherboard (or using an external USB hub).

 

Thanks!

Share this post


Link to post

I seem to have the same problem, My Pfsense VM dosent auto start?

 

Looking at the log I can see this:

2020-04-07 16:49:48.026+0000: 31248: warning : qemuDomainObjTaint:9301 : Domain id=1 name='pfSense 2' uuid=009d5016-771a-4082-09e4-25423bed1eb9 is tainted: high-privileges
2020-04-07 16:49:48.026+0000: 31248: warning : qemuDomainObjTaint:9301 : Domain id=1 name='pfSense 2' uuid=009d5016-771a-4082-09e4-25423bed1eb9 is tainted: host-cpu

 

But I haven't set any High privileges on the VM settings?

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.