[libvirt-users] Ubuntu 16.04 libvirt-guests.sh [6917] - running guests under URI address default: no running guests

Hi I have recently upgraded from Ubuntu 15.04 to 16.04 and now everytime I shutdown my PC I get a black screen where it says "libvirt-guests.sh [6917] - running guests under URI address default: no running guests" and the PC just hangs forever and will not shutdown. I need to manually kill it in order to shut it down which is a pain in the ass. I have done some investigation and here is what I've found out so far. I have uninstalled libvirt, kvm and qemu: sudo apt-get purge libvirt* kvm qemu* The problem has gone, 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: 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 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 shutsdown but in most cases it hangs forever. So this happens randomly. So, this investigation has brought me to you guys so please help me. I have attached a screen (sorry for polish error message but the translation is in the email title). I have also posted a thread on AskUbuntu on this: https://askubuntu.com/questions/925696/ubuntu-16-04- libvirt-guests-sh-6917-running-guests-under-uri-address-default Thank you, Jędrzej

Hello? What is the status of this issue? 2017-06-30 22:24 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Hi
I have recently upgraded from Ubuntu 15.04 to 16.04 and now everytime I shutdown my PC I get a black screen where it says "libvirt-guests.sh [6917] - running guests under URI address default: no running guests" and the PC just hangs forever and will not shutdown. I need to manually kill it in order to shut it down which is a pain in the ass. I have done some investigation and here is what I've found out so far.
I have uninstalled libvirt, kvm and qemu:
sudo apt-get purge libvirt* kvm qemu*
The problem has gone, 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:
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 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 shutsdown but in most cases it hangs forever. So this happens randomly.
So, this investigation has brought me to you guys so please help me. I have attached a screen (sorry for polish error message but the translation is in the email title).
I have also posted a thread on AskUbuntu on this:
https://askubuntu.com/questions/925696/ubuntu-16-04-libvirt- guests-sh-6917-running-guests-under-uri-address-default
Thank you, Jędrzej

Hello, Am I addressing this issue to the right address? Please respond. 2017-07-04 9:31 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Hello? What is the status of this issue?
2017-06-30 22:24 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Hi
I have recently upgraded from Ubuntu 15.04 to 16.04 and now everytime I shutdown my PC I get a black screen where it says "libvirt-guests.sh [6917] - running guests under URI address default: no running guests" and the PC just hangs forever and will not shutdown. I need to manually kill it in order to shut it down which is a pain in the ass. I have done some investigation and here is what I've found out so far.
I have uninstalled libvirt, kvm and qemu:
sudo apt-get purge libvirt* kvm qemu*
The problem has gone, 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:
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 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 shutsdown but in most cases it hangs forever. So this happens randomly.
So, this investigation has brought me to you guys so please help me. I have attached a screen (sorry for polish error message but the translation is in the email title).
I have also posted a thread on AskUbuntu on this:
https://askubuntu.com/questions/925696/ubuntu-16-04-libvirt- guests-sh-6917-running-guests-under-uri-address-default
Thank you, Jędrzej

Hey FWIW, I have virsh running on my laptop too and no virtual machines registered to autostart but my laptop reboots just fine and shows no traces of any warnings. Cheers, Dominik 2017-07-06 22:53 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Hello,
Am I addressing this issue to the right address? Please respond.
2017-07-04 9:31 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Hello? What is the status of this issue?
2017-06-30 22:24 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Hi
I have recently upgraded from Ubuntu 15.04 to 16.04 and now everytime I shutdown my PC I get a black screen where it says "libvirt-guests.sh [6917] - running guests under URI address default: no running guests" and the PC just hangs forever and will not shutdown. I need to manually kill it in order to shut it down which is a pain in the ass. I have done some investigation and here is what I've found out so far.
I have uninstalled libvirt, kvm and qemu:
sudo apt-get purge libvirt* kvm qemu*
The problem has gone, 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:
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 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 shutsdown but in most cases it hangs forever. So this happens randomly.
So, this investigation has brought me to you guys so please help me. I have attached a screen (sorry for polish error message but the translation is in the email title).
I have also posted a thread on AskUbuntu on this:
https://askubuntu.com/questions/925696/ubuntu-16-04-libvirt- guests-sh-6917-running-guests-under-uri-address-default
Thank you, Jędrzej
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
-- Dominik Psenner

$ uname -a Linux mugen 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial 2017-07-07 9:18 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
Hey
FWIW, I have virsh running on my laptop too and no virtual machines registered to autostart but my laptop reboots just fine and shows no traces of any warnings.
Cheers, Dominik
2017-07-06 22:53 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Hello,
Am I addressing this issue to the right address? Please respond.
2017-07-04 9:31 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Hello? What is the status of this issue?
2017-06-30 22:24 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Hi
I have recently upgraded from Ubuntu 15.04 to 16.04 and now everytime I shutdown my PC I get a black screen where it says "libvirt-guests.sh [6917] - running guests under URI address default: no running guests" and the PC just hangs forever and will not shutdown. I need to manually kill it in order to shut it down which is a pain in the ass. I have done some investigation and here is what I've found out so far.
I have uninstalled libvirt, kvm and qemu:
sudo apt-get purge libvirt* kvm qemu*
The problem has gone, 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:
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 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 shutsdown but in most cases it hangs forever. So this happens randomly.
So, this investigation has brought me to you guys so please help me. I have attached a screen (sorry for polish error message but the translation is in the email title).
I have also posted a thread on AskUbuntu on this:
https://askubuntu.com/questions/925696/ubuntu-16-04-libvirt- guests-sh-6917-running-guests-under-uri-address-default
Thank you, Jędrzej
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
-- Dominik Psenner
-- Dominik Psenner

And software is up to date to latest version in LTS: $ virsh --version 1.3.1 2017-07-07 9:20 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
$ uname -a Linux mugen 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial
2017-07-07 9:18 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
Hey
FWIW, I have virsh running on my laptop too and no virtual machines registered to autostart but my laptop reboots just fine and shows no traces of any warnings.
Cheers, Dominik
2017-07-06 22:53 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Hello,
Am I addressing this issue to the right address? Please respond.
2017-07-04 9:31 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Hello? What is the status of this issue?
2017-06-30 22:24 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Hi
I have recently upgraded from Ubuntu 15.04 to 16.04 and now everytime I shutdown my PC I get a black screen where it says "libvirt-guests.sh [6917] - running guests under URI address default: no running guests" and the PC just hangs forever and will not shutdown. I need to manually kill it in order to shut it down which is a pain in the ass. I have done some investigation and here is what I've found out so far.
I have uninstalled libvirt, kvm and qemu:
sudo apt-get purge libvirt* kvm qemu*
The problem has gone, 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:
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 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 shutsdown but in most cases it hangs forever. So this happens randomly.
So, this investigation has brought me to you guys so please help me. I have attached a screen (sorry for polish error message but the translation is in the email title).
I have also posted a thread on AskUbuntu on this:
https://askubuntu.com/questions/925696/ubuntu-16-04-libvirt- guests-sh-6917-running-guests-under-uri-address-default
Thank you, Jędrzej
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
-- Dominik Psenner
-- Dominik Psenner
-- Dominik Psenner

Hi Dominik, So what is going on on my computer with the script *libvirt-guests.sh*? Why is it hanging on it? How should I address this problem? I really appreciate your help! Thank you! 2017-07-07 9:20 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
And software is up to date to latest version in LTS:
$ virsh --version 1.3.1
2017-07-07 9:20 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
$ uname -a Linux mugen 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial
2017-07-07 9:18 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
Hey
FWIW, I have virsh running on my laptop too and no virtual machines registered to autostart but my laptop reboots just fine and shows no traces of any warnings.
Cheers, Dominik
2017-07-06 22:53 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Hello,
Am I addressing this issue to the right address? Please respond.
2017-07-04 9:31 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Hello? What is the status of this issue?
2017-06-30 22:24 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com> :
Hi
I have recently upgraded from Ubuntu 15.04 to 16.04 and now everytime I shutdown my PC I get a black screen where it says "libvirt-guests.sh [6917] - running guests under URI address default: no running guests" and the PC just hangs forever and will not shutdown. I need to manually kill it in order to shut it down which is a pain in the ass. I have done some investigation and here is what I've found out so far.
I have uninstalled libvirt, kvm and qemu:
sudo apt-get purge libvirt* kvm qemu*
The problem has gone, 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:
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 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 shutsdown but in most cases it hangs forever. So this happens randomly.
So, this investigation has brought me to you guys so please help me. I have attached a screen (sorry for polish error message but the translation is in the email title).
I have also posted a thread on AskUbuntu on this:
https://askubuntu.com/questions/925696/ubuntu-16-04-libvirt- guests-sh-6917-running-guests-under-uri-address-default
Thank you, Jędrzej
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
-- Dominik Psenner
-- Dominik Psenner
-- Dominik Psenner

I truly have no idea. You could try to reinstall virsh and all its components (qemu, kvm, ..) with: $ apt purge [...] and then reinstall virsh and see if the issue persists. Or, a more drastic step would be to start with a fresh new ubuntu installation on your computer and see if the issue just goes away? Of course this will require you to backup your data and restore it later.. not a nice task to do but sometimes it is necessary. Just yesterday I discovered that an application installed mongodb as a dependency but when I removed the application it decided to keep back gigabytes of database files.. I managed to remove those files but I don't trust the installation anymore and am going to do a clean reinstallation of the entire operating system. Who knows what's being left behind while trying out different things. Always setting up virtual machines when trying something out is a lot of work, but advisable good practice because it allows one to throw away all modifications made. I'm afraid that's all I can come with. Good luck! 2017-07-07 9:46 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Hi Dominik,
So what is going on on my computer with the script *libvirt-guests.sh*? Why is it hanging on it? How should I address this problem?
I really appreciate your help!
Thank you!
2017-07-07 9:20 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
And software is up to date to latest version in LTS:
$ virsh --version 1.3.1
2017-07-07 9:20 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
$ uname -a Linux mugen 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial
2017-07-07 9:18 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
Hey
FWIW, I have virsh running on my laptop too and no virtual machines registered to autostart but my laptop reboots just fine and shows no traces of any warnings.
Cheers, Dominik
2017-07-06 22:53 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Hello,
Am I addressing this issue to the right address? Please respond.
2017-07-04 9:31 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Hello? What is the status of this issue?
2017-06-30 22:24 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com >:
> Hi > > I have recently upgraded from Ubuntu 15.04 to 16.04 and now > everytime I shutdown my PC I get a black screen where it says > "libvirt-guests.sh [6917] - running guests under URI address default: no > running guests" and the PC just hangs forever and will not shutdown. I need > to manually kill it in order to shut it down which is a pain in the ass. I > have done some investigation and here is what I've found out so far. > > I have uninstalled libvirt, kvm and qemu: > > sudo apt-get purge libvirt* kvm qemu* > > The problem has gone, 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: > > 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 > 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 shutsdown but in most cases it hangs forever. So > this happens randomly. > > So, this investigation has brought me to you guys so please help me. > I have attached a screen (sorry for polish error message but the > translation is in the email title). > > I have also posted a thread on AskUbuntu on this: > > https://askubuntu.com/questions/925696/ubuntu-16-04-libvirt- > guests-sh-6917-running-guests-under-uri-address-default > > Thank you, > Jędrzej >
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
-- Dominik Psenner
-- Dominik Psenner
-- Dominik Psenner
-- Dominik Psenner

On Fri, 2017-07-07 at 09:46 +0200, Jędrek Domański wrote:
Hi Dominik, So what is going on on my computer with the script libvirt-guests.sh? Why is it hanging on it? How should I address this problem?
Not sure what the root cause of your problem is, but you can use # systemctl disable libvirt-guests to verify if the script is really what causes shutdown to hang. It might very well be that it's merely the last thing producing output before the actual issue occurs. -- Andrea Bolognani / Red Hat / Virtualization

Andrea, You are a genius!!! :D It's worked :)) Thank yo so much!!! XD 2017-07-07 12:14 GMT+02:00 Andrea Bolognani <abologna@redhat.com>:
On Fri, 2017-07-07 at 09:46 +0200, Jędrek Domański wrote:
Hi Dominik,
So what is going on on my computer with the script libvirt-guests.sh? Why is it hanging on it? How should I address this problem?
Not sure what the root cause of your problem is, but you can use
# systemctl disable libvirt-guests
to verify if the script is really what causes shutdown to hang. It might very well be that it's merely the last thing producing output before the actual issue occurs.
-- Andrea Bolognani / Red Hat / Virtualization

Note that this disables the shutdown of libvirt guests when the host shuts down. 2017-07-07 16:20 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Andrea,
You are a genius!!! :D It's worked :)) Thank yo so much!!! XD
2017-07-07 12:14 GMT+02:00 Andrea Bolognani <abologna@redhat.com>:
On Fri, 2017-07-07 at 09:46 +0200, Jędrek Domański wrote:
Hi Dominik,
So what is going on on my computer with the script libvirt-guests.sh? Why is it hanging on it? How should I address this problem?
Not sure what the root cause of your problem is, but you can use
# systemctl disable libvirt-guests
to verify if the script is really what causes shutdown to hang. It might very well be that it's merely the last thing producing output before the actual issue occurs.
-- Andrea Bolognani / Red Hat / Virtualization
-- Dominik Psenner

Dominik, As far as I am concerned the command provided by Andrea disables libvirt-guests service at boot. jedrek@Home:~$ service libvirt-guests status ● libvirt-guests.service - Suspend Active Libvirt Guests Loaded: loaded (/lib/systemd/system/libvirt-guests.service; *disabled*; vendor preset: enabled) Active: inactive (dead) Docs: man:libvirtd(8) http://libvirt.org When you enable/disable a service *sysctemctl *creates a symlink of a service into the location on disk where systemd looks for autostart files (usually /etc/systemd/system/some_target.target.wants jedrek@Home:~$ ls /etc/systemd/system/ | grep libvirt* libvirtd.service No libvirt-guests.service I know this is just a workaround but what's wrong with this? 2017-07-07 19:13 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
Note that this disables the shutdown of libvirt guests when the host shuts down.
2017-07-07 16:20 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Andrea,
You are a genius!!! :D It's worked :)) Thank yo so much!!! XD
2017-07-07 12:14 GMT+02:00 Andrea Bolognani <abologna@redhat.com>:
On Fri, 2017-07-07 at 09:46 +0200, Jędrek Domański wrote:
Hi Dominik,
So what is going on on my computer with the script libvirt-guests.sh? Why is it hanging on it? How should I address this problem?
Not sure what the root cause of your problem is, but you can use
# systemctl disable libvirt-guests
to verify if the script is really what causes shutdown to hang. It might very well be that it's merely the last thing producing output before the actual issue occurs.
-- Andrea Bolognani / Red Hat / Virtualization
-- Dominik Psenner

I just wanted to point out that you're only resolving the symptom, not the actual cause. At the same time I'm afraid that I don't know what the cause of your problems is. If you don't want to run virsh guests you probably won't need the service, but then what's the point of having libvirt-bin installed in the first place? :-) Cheers 2017-07-07 23:23 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Dominik,
As far as I am concerned the command provided by Andrea disables libvirt-guests service at boot.
jedrek@Home:~$ service libvirt-guests status ● libvirt-guests.service - Suspend Active Libvirt Guests Loaded: loaded (/lib/systemd/system/libvirt-guests.service; *disabled*; vendor preset: enabled) Active: inactive (dead) Docs: man:libvirtd(8) http://libvirt.org
When you enable/disable a service *sysctemctl *creates a symlink of a service into the location on disk where systemd looks for autostart files (usually /etc/systemd/system/some_target.target.wants
jedrek@Home:~$ ls /etc/systemd/system/ | grep libvirt* libvirtd.service
No libvirt-guests.service
I know this is just a workaround but what's wrong with this?
2017-07-07 19:13 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
Note that this disables the shutdown of libvirt guests when the host shuts down.
2017-07-07 16:20 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Andrea,
You are a genius!!! :D It's worked :)) Thank yo so much!!! XD
2017-07-07 12:14 GMT+02:00 Andrea Bolognani <abologna@redhat.com>:
On Fri, 2017-07-07 at 09:46 +0200, Jędrek Domański wrote:
Hi Dominik,
So what is going on on my computer with the script libvirt-guests.sh? Why is it hanging on it? How should I address this problem?
Not sure what the root cause of your problem is, but you can use
# systemctl disable libvirt-guests
to verify if the script is really what causes shutdown to hang. It might very well be that it's merely the last thing producing output before the actual issue occurs.
-- Andrea Bolognani / Red Hat / Virtualization
-- Dominik Psenner
-- Dominik Psenner

Dominik, What's the point of including a software to an OS that does not work? 2017-07-08 18:34 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
I just wanted to point out that you're only resolving the symptom, not the actual cause. At the same time I'm afraid that I don't know what the cause of your problems is. If you don't want to run virsh guests you probably won't need the service, but then what's the point of having libvirt-bin installed in the first place? :-)
Cheers
2017-07-07 23:23 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Dominik,
As far as I am concerned the command provided by Andrea disables libvirt-guests service at boot.
jedrek@Home:~$ service libvirt-guests status ● libvirt-guests.service - Suspend Active Libvirt Guests Loaded: loaded (/lib/systemd/system/libvirt-guests.service; *disabled*; vendor preset: enabled) Active: inactive (dead) Docs: man:libvirtd(8) http://libvirt.org
When you enable/disable a service *sysctemctl *creates a symlink of a service into the location on disk where systemd looks for autostart files (usually /etc/systemd/system/some_target.target.wants
jedrek@Home:~$ ls /etc/systemd/system/ | grep libvirt* libvirtd.service
No libvirt-guests.service
I know this is just a workaround but what's wrong with this?
2017-07-07 19:13 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
Note that this disables the shutdown of libvirt guests when the host shuts down.
2017-07-07 16:20 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Andrea,
You are a genius!!! :D It's worked :)) Thank yo so much!!! XD
2017-07-07 12:14 GMT+02:00 Andrea Bolognani <abologna@redhat.com>:
On Fri, 2017-07-07 at 09:46 +0200, Jędrek Domański wrote:
Hi Dominik,
So what is going on on my computer with the script libvirt-guests.sh? Why is it hanging on it? How should I address this problem?
Not sure what the root cause of your problem is, but you can use
# systemctl disable libvirt-guests
to verify if the script is really what causes shutdown to hang. It might very well be that it's merely the last thing producing output before the actual issue occurs.
-- Andrea Bolognani / Red Hat / Virtualization
-- Dominik Psenner
-- Dominik Psenner

You can't expect anyone to step up happily to fix a problem you experience. If you're unhappy with the open source solution you have at least 4 options: 1. buy a license for red hat 2. get customer support from red hat 3. buy a license for vmware 4. work out why it doesn't work, give feedback to the community and may even work out a fix that you can give back to the community. with a bit of luck the overall open source product could evolve into something better. I feel sorry that I couldn't you help any further. Good luck! Cheers, Dominik 2017-07-09 0:38 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Dominik,
What's the point of including a software to an OS that does not work?
2017-07-08 18:34 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
I just wanted to point out that you're only resolving the symptom, not the actual cause. At the same time I'm afraid that I don't know what the cause of your problems is. If you don't want to run virsh guests you probably won't need the service, but then what's the point of having libvirt-bin installed in the first place? :-)
Cheers
2017-07-07 23:23 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Dominik,
As far as I am concerned the command provided by Andrea disables libvirt-guests service at boot.
jedrek@Home:~$ service libvirt-guests status ● libvirt-guests.service - Suspend Active Libvirt Guests Loaded: loaded (/lib/systemd/system/libvirt-guests.service; *disabled*; vendor preset: enabled) Active: inactive (dead) Docs: man:libvirtd(8) http://libvirt.org
When you enable/disable a service *sysctemctl *creates a symlink of a service into the location on disk where systemd looks for autostart files (usually /etc/systemd/system/some_target.target.wants
jedrek@Home:~$ ls /etc/systemd/system/ | grep libvirt* libvirtd.service
No libvirt-guests.service
I know this is just a workaround but what's wrong with this?
2017-07-07 19:13 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
Note that this disables the shutdown of libvirt guests when the host shuts down.
2017-07-07 16:20 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Andrea,
You are a genius!!! :D It's worked :)) Thank yo so much!!! XD
2017-07-07 12:14 GMT+02:00 Andrea Bolognani <abologna@redhat.com>:
On Fri, 2017-07-07 at 09:46 +0200, Jędrek Domański wrote: > Hi Dominik, > > So what is going on on my computer with the script libvirt-guests.sh? > Why is it hanging on it? How should I address this problem?
Not sure what the root cause of your problem is, but you can use
# systemctl disable libvirt-guests
to verify if the script is really what causes shutdown to hang. It might very well be that it's merely the last thing producing output before the actual issue occurs.
-- Andrea Bolognani / Red Hat / Virtualization
-- Dominik Psenner
-- Dominik Psenner
-- Dominik Psenner

Yeah, I know. Sorry for my demanding attitude. Any hints how I could start debugging the problem? 2017-07-09 18:12 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
You can't expect anyone to step up happily to fix a problem you experience. If you're unhappy with the open source solution you have at least 4 options:
1. buy a license for red hat 2. get customer support from red hat 3. buy a license for vmware 4. work out why it doesn't work, give feedback to the community and may even work out a fix that you can give back to the community. with a bit of luck the overall open source product could evolve into something better.
I feel sorry that I couldn't you help any further. Good luck!
Cheers, Dominik
2017-07-09 0:38 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Dominik,
What's the point of including a software to an OS that does not work?
2017-07-08 18:34 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
I just wanted to point out that you're only resolving the symptom, not the actual cause. At the same time I'm afraid that I don't know what the cause of your problems is. If you don't want to run virsh guests you probably won't need the service, but then what's the point of having libvirt-bin installed in the first place? :-)
Cheers
2017-07-07 23:23 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Dominik,
As far as I am concerned the command provided by Andrea disables libvirt-guests service at boot.
jedrek@Home:~$ service libvirt-guests status ● libvirt-guests.service - Suspend Active Libvirt Guests Loaded: loaded (/lib/systemd/system/libvirt-guests.service; *disabled*; vendor preset: enabled) Active: inactive (dead) Docs: man:libvirtd(8) http://libvirt.org
When you enable/disable a service *sysctemctl *creates a symlink of a service into the location on disk where systemd looks for autostart files (usually /etc/systemd/system/some_target.target.wants
jedrek@Home:~$ ls /etc/systemd/system/ | grep libvirt* libvirtd.service
No libvirt-guests.service
I know this is just a workaround but what's wrong with this?
2017-07-07 19:13 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
Note that this disables the shutdown of libvirt guests when the host shuts down.
2017-07-07 16:20 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com> :
Andrea,
You are a genius!!! :D It's worked :)) Thank yo so much!!! XD
2017-07-07 12:14 GMT+02:00 Andrea Bolognani <abologna@redhat.com>:
> On Fri, 2017-07-07 at 09:46 +0200, Jędrek Domański wrote: > > Hi Dominik, > > > > So what is going on on my computer with the script > libvirt-guests.sh? > > Why is it hanging on it? How should I address this problem? > > Not sure what the root cause of your problem is, but you > can use > > # systemctl disable libvirt-guests > > to verify if the script is really what causes shutdown > to hang. It might very well be that it's merely the last > thing producing output before the actual issue occurs. > > -- > Andrea Bolognani / Red Hat / Virtualization >
-- Dominik Psenner
-- Dominik Psenner
-- Dominik Psenner

I'm not familiar with the libvirt codebase, but the extension of libvirt-guests.sh indicates that it is a shell script. Maybe you can modify it to find the spot where it hangs? 2017-07-09 18:49 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Yeah, I know. Sorry for my demanding attitude.
Any hints how I could start debugging the problem?
2017-07-09 18:12 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
You can't expect anyone to step up happily to fix a problem you experience. If you're unhappy with the open source solution you have at least 4 options:
1. buy a license for red hat 2. get customer support from red hat 3. buy a license for vmware 4. work out why it doesn't work, give feedback to the community and may even work out a fix that you can give back to the community. with a bit of luck the overall open source product could evolve into something better.
I feel sorry that I couldn't you help any further. Good luck!
Cheers, Dominik
2017-07-09 0:38 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Dominik,
What's the point of including a software to an OS that does not work?
2017-07-08 18:34 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
I just wanted to point out that you're only resolving the symptom, not the actual cause. At the same time I'm afraid that I don't know what the cause of your problems is. If you don't want to run virsh guests you probably won't need the service, but then what's the point of having libvirt-bin installed in the first place? :-)
Cheers
2017-07-07 23:23 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Dominik,
As far as I am concerned the command provided by Andrea disables libvirt-guests service at boot.
jedrek@Home:~$ service libvirt-guests status ● libvirt-guests.service - Suspend Active Libvirt Guests Loaded: loaded (/lib/systemd/system/libvirt-guests.service; *disabled*; vendor preset: enabled) Active: inactive (dead) Docs: man:libvirtd(8) http://libvirt.org
When you enable/disable a service *sysctemctl *creates a symlink of a service into the location on disk where systemd looks for autostart files (usually /etc/systemd/system/some_target.target.wants
jedrek@Home:~$ ls /etc/systemd/system/ | grep libvirt* libvirtd.service
No libvirt-guests.service
I know this is just a workaround but what's wrong with this?
2017-07-07 19:13 GMT+02:00 Dominik Psenner <dpsenner@gmail.com>:
Note that this disables the shutdown of libvirt guests when the host shuts down.
2017-07-07 16:20 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com >:
> Andrea, > > You are a genius!!! :D It's worked :)) Thank yo so much!!! XD > > 2017-07-07 12:14 GMT+02:00 Andrea Bolognani <abologna@redhat.com>: > >> On Fri, 2017-07-07 at 09:46 +0200, Jędrek Domański wrote: >> > Hi Dominik, >> > >> > So what is going on on my computer with the script >> libvirt-guests.sh? >> > Why is it hanging on it? How should I address this problem? >> >> Not sure what the root cause of your problem is, but you >> can use >> >> # systemctl disable libvirt-guests >> >> to verify if the script is really what causes shutdown >> to hang. It might very well be that it's merely the last >> thing producing output before the actual issue occurs. >> >> -- >> Andrea Bolognani / Red Hat / Virtualization >> > >
-- Dominik Psenner
-- Dominik Psenner
-- Dominik Psenner
-- Dominik Psenner

On Sun, 2017-07-09 at 19:14 +0200, Dominik Psenner wrote:
I'm not familiar with the libvirt codebase, but the extension of libvirt-guests.sh indicates that it is a shell script. Maybe you can modify it to find the spot where it hangs?
That's indeed the case. On Debian/Ubuntu system, the script is installed as /usr/lib/libvirt/libvirt-guests.sh and you can definitely try debugging it if you're familiar with shell scripting. I installed both libvirt-bin and qemu-kvm in an Ubuntu 16.04 guest in an attempt to reproduce the issue you're having but I was unsuccessful, so I'm afraid I can't really help you much further. It would probably be a good idea to open a downstream bug report with your vendor, as they might have an easier time reproducing the issue. It's worth noting that the libvirt version included in Ubuntu 16.04 is a bit old (it was released a year and a half ago), however the libvirt-guests script hasn't changed very much in the meantime. -- Andrea Bolognani / Red Hat / Virtualization

Thank you, Andrea. After following your instructions I re-enabled it back to check to see if it will log any messages from shutdown but no. I've noticed however that the computer no longer freezes at shutdown. I am not sure why but it looks like the problem is gone now. I will try to debugg it deeper and if I have any issues I will get back to you. Jędrek 10 lip 2017 08:36 "Andrea Bolognani" <abologna@redhat.com> napisał(a):
On Sun, 2017-07-09 at 19:14 +0200, Dominik Psenner wrote:
I'm not familiar with the libvirt codebase, but the extension of libvirt-guests.sh indicates that it is a shell script. Maybe you can modify it to find the spot where it hangs?
That's indeed the case. On Debian/Ubuntu system, the script is installed as
/usr/lib/libvirt/libvirt-guests.sh
and you can definitely try debugging it if you're familiar with shell scripting.
I installed both libvirt-bin and qemu-kvm in an Ubuntu 16.04 guest in an attempt to reproduce the issue you're having but I was unsuccessful, so I'm afraid I can't really help you much further.
It would probably be a good idea to open a downstream bug report with your vendor, as they might have an easier time reproducing the issue.
It's worth noting that the libvirt version included in Ubuntu 16.04 is a bit old (it was released a year and a half ago), however the libvirt-guests script hasn't changed very much in the meantime.
-- Andrea Bolognani / Red Hat / Virtualization

Andrea, I have libvirt version 1.3.1. I am looking at libvirt.org/sources and see more recent versions. Do I have the most up-to-date version? Do I need to upgrade? $libvirtd -V libvirtd (libvirt) 1.3.1 2017-07-10 11:24 GMT+02:00 Jędrek Domański <jedrek.domanski@gmail.com>:
Thank you, Andrea. After following your instructions I re-enabled it back to check to see if it will log any messages from shutdown but no. I've noticed however that the computer no longer freezes at shutdown. I am not sure why but it looks like the problem is gone now. I will try to debugg it deeper and if I have any issues I will get back to you.
Jędrek
10 lip 2017 08:36 "Andrea Bolognani" <abologna@redhat.com> napisał(a):
On Sun, 2017-07-09 at 19:14 +0200, Dominik Psenner wrote:
I'm not familiar with the libvirt codebase, but the extension of libvirt-guests.sh indicates that it is a shell script. Maybe you can modify it to find the spot where it hangs?
That's indeed the case. On Debian/Ubuntu system, the script is installed as
/usr/lib/libvirt/libvirt-guests.sh
and you can definitely try debugging it if you're familiar with shell scripting.
I installed both libvirt-bin and qemu-kvm in an Ubuntu 16.04 guest in an attempt to reproduce the issue you're having but I was unsuccessful, so I'm afraid I can't really help you much further.
It would probably be a good idea to open a downstream bug report with your vendor, as they might have an easier time reproducing the issue.
It's worth noting that the libvirt version included in Ubuntu 16.04 is a bit old (it was released a year and a half ago), however the libvirt-guests script hasn't changed very much in the meantime.
-- Andrea Bolognani / Red Hat / Virtualization

On Mon, 2017-07-10 at 14:20 +0200, Jędrek Domański wrote:
Andrea, I have libvirt version 1.3.1. I am looking at libvirt.org/sources and see more recent versions. Do I have the most up-to-date version? Do I need to upgrade? $libvirtd -V libvirtd (libvirt) 1.3.1
As mentioned in my previous message, libvirt 1.3.1 is about a year and a half old. While you can install a newer libvirt version from source, doing so is generally not recommended because your package manager will not be aware of it and will prevent you from installing packages that depend on libvirt. -- Andrea Bolognani / Red Hat / Virtualization

Well, I see newer versions of libvirt on Launchpad so I could just add PPA repository and install newer version from there. Would that work? 2017-07-10 15:11 GMT+02:00 Andrea Bolognani <abologna@redhat.com>:
On Mon, 2017-07-10 at 14:20 +0200, Jędrek Domański wrote:
Andrea,
I have libvirt version 1.3.1. I am looking at libvirt.org/sources and see more recent versions. Do I have the most up-to-date version? Do I need to upgrade?
$libvirtd -V libvirtd (libvirt) 1.3.1
As mentioned in my previous message, libvirt 1.3.1 is about a year and a half old.
While you can install a newer libvirt version from source, doing so is generally not recommended because your package manager will not be aware of it and will prevent you from installing packages that depend on libvirt.
-- Andrea Bolognani / Red Hat / Virtualization

On Mon, 2017-07-10 at 16:37 +0200, Jędrek Domański wrote:
Well, I see newer versions of libvirt on Launchpad so I could just add PPA repository and install newer version from there. Would that work?
I'm honestly not too familiar with PPAs, but assuming the packages are targeted at 16.04 it should work nicely and, most importantly, rolling back in case it doesn't should also be pretty straighforward. -- Andrea Bolognani / Red Hat / Virtualization
participants (3)
-
Andrea Bolognani
-
Dominik Psenner
-
Jędrek Domański