enter image description hereI have upgraded from Ubuntu 15.04 Vivid to 16.04.02 LTS Xenial and everytime I shutdown the system, the system hangs at the screen saying: "libvirt-guests.sh [6917] - running guests under URI address default: no running guests" and never shuts down. I have to manually shut it down everytime, which obviously is a pain. How can I fix this?

UPDATE: I have done some investigation and here's what I've found.

I have uninstalled libvirt, kvm and qemu:

sudo apt-get purge libvirt* kvm qemu*

Reboot the computer and the error message is no longer there, however I noticed some error messages at boot saying something that "FAILED Qemu .... It flashes so quickly and I am not able to read what exactly it says. I installed libvirt again to get rid of the errors at boot:

sudo apt install qemu-kvm libvirt-bin

and the problem is back!

So is this script trying to shutdown my virtual machines? It looks like it does but since it does not find any it hangs? I don't have any virtual machines, though. I used to have one, but I removed it. What is interesting, my PC hangs at shutdown randomly, that is sometimes it hangs for like 15 seconds and it shuts down but in most cases it hangs forever. So this happens randomly.

  • Does anyone have any idea what issue may be causing this?
    – jedi
    Jun 30, 2017 at 18:40
  • I contacted virsh support and one supported told me he's got virsh installed on his laptop and he runs exactly the same Ubuntu as I do and he does not have this problem. So there must be something else then, perhaps with the OS...
    – jedi
    Jul 7, 2017 at 9:48

1 Answer 1


I unexpectedly received a reply from virsh support saying that I could actually disable libvirt-guests, which I didn't realize was possible.

systemctl disable libvirt-guests

​Works like a charm!!!

I still however do not know the root cause but at least I can now reboot/shutdown without any issues.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .