<div dir="ltr"><div>I truly have no idea. You could try to reinstall virsh and all its components (qemu, kvm, ..) with:</div><div><br></div><div>$ apt purge [...]</div><div><br></div><div>and then reinstall virsh and see if the issue persists.</div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>I'm afraid that's all I can come with.</div><div><br></div><div>Good luck!</div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-07 9:46 GMT+02:00 Jędrek Domański <span dir="ltr"><<a href="mailto:jedrek.domanski@gmail.com" target="_blank">jedrek.domanski@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif">Hi Dominik,</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">So what is going on on my computer with the script <b>libvirt-guests.sh</b>? Why is it hanging on it? How should I address this problem?</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">I really appreciate your help!</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">Thank you!</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-07-07 9:20 GMT+02:00 Dominik Psenner <span dir="ltr"><<a href="mailto:dpsenner@gmail.com" target="_blank">dpsenner@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">And software is up to date to latest version in LTS:<div><br></div><div><div>$ virsh --version</div><div>1.3.1</div></div><div><br></div></div><div class="gmail_extra"><div><div class="m_-1708201457002821905h5"><br><div class="gmail_quote">2017-07-07 9:20 GMT+02:00 Dominik Psenner <span dir="ltr"><<a href="mailto:dpsenner@gmail.com" target="_blank">dpsenner@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>$ uname -a</div><div>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</div><div><div>$ lsb_release -a</div><div>No LSB modules are available.</div><div>Distributor ID:<span style="white-space:pre-wrap">    </span>Ubuntu</div><div>Description:<span style="white-space:pre-wrap">       </span>Ubuntu 16.04.2 LTS</div><div>Release:<span style="white-space:pre-wrap">       </span>16.04</div><div>Codename:<span style="white-space:pre-wrap">   </span>xenial</div></div></div><div class="gmail_extra"><div><div class="m_-1708201457002821905m_-5931768430844750321h5"><br><div class="gmail_quote">2017-07-07 9:18 GMT+02:00 Dominik Psenner <span dir="ltr"><<a href="mailto:dpsenner@gmail.com" target="_blank">dpsenner@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hey</div><div><br></div>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.<div><br></div><div>Cheers,</div><div>Dominik</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-1708201457002821905m_-5931768430844750321m_5550227016436092048h5">2017-07-06 22:53 GMT+02:00 Jędrek Domański <span dir="ltr"><<a href="mailto:jedrek.domanski@gmail.com" target="_blank">jedrek.domanski@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-1708201457002821905m_-5931768430844750321m_5550227016436092048h5"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif">Hello,</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">Am I addressing this issue to the right address? Please respond.</div></div><div class="m_-1708201457002821905m_-5931768430844750321m_5550227016436092048m_6546004520477295182HOEnZb"><div class="m_-1708201457002821905m_-5931768430844750321m_5550227016436092048m_6546004520477295182h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-07-04 9:31 GMT+02:00 Jędrek Domański <span dir="ltr"><<a href="mailto:jedrek.domanski@gmail.com" target="_blank">jedrek.domanski@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif">Hello? What is the status of this issue?</div></div><div class="m_-1708201457002821905m_-5931768430844750321m_5550227016436092048m_6546004520477295182m_8971097031154397227HOEnZb"><div class="m_-1708201457002821905m_-5931768430844750321m_5550227016436092048m_6546004520477295182m_8971097031154397227h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-06-30 22:24 GMT+02:00 Jędrek Domański <span dir="ltr"><<a href="mailto:jedrek.domanski@gmail.com" target="_blank">jedrek.domanski@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_-1708201457002821905m_-5931768430844750321m_5550227016436092048m_6546004520477295182m_8971097031154397227m_-5912502521504996974HOEnZb"><div class="m_-1708201457002821905m_-5931768430844750321m_5550227016436092048m_6546004520477295182m_8971097031154397227m_-5912502521504996974h5"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif"><div style="font-size:12.8px">Hi</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">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.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I have uninstalled libvirt, kvm and qemu:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:1em;padding:5px;border:0px;font-variant-numeric:inherit;font-stretch:inherit;font-size:13px;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;vertical-align:baseline;width:auto;max-height:600px;overflow:auto;background-color:rgb(239,240,241);word-wrap:normal;color:rgb(17,17,17)"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;vertical-align:baseline;white-space:inherit">sudo apt-get purge libvirt* kvm qemu*</code></pre></div><div style="font-size:12.8px">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:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><pre class="m_-1708201457002821905m_-5931768430844750321m_5550227016436092048m_6546004520477295182m_8971097031154397227m_-5912502521504996974m_6636733946930978432gmail-m_-849249386569305750gmail-contents" style="white-space:pre-wrap;margin-top:0px;margin-bottom:8px;padding:0.5em 1em;border:1px dashed rgb(193,180,150);font-size:13px;line-height:16px;font-family:UbuntuMono,courier,monospace;vertical-align:baseline;background-color:rgb(243,243,243);word-wrap:break-word;color:rgb(51,51,51)"><span class="m_-1708201457002821905m_-5931768430844750321m_5550227016436092048m_6546004520477295182m_8971097031154397227m_-5912502521504996974m_6636733946930978432gmail-m_-849249386569305750gmail-cmd m_-1708201457002821905m_-5931768430844750321m_5550227016436092048m_6546004520477295182m_8971097031154397227m_-5912502521504996974m_6636733946930978432gmail-m_-849249386569305750gmail-command" style="margin:0px;padding:0px;border:0px;font-weight:inherit;font-style:inherit;line-height:1.5;font-family:monospace;vertical-align:baseline;background-color:rgb(242,242,242)">sudo apt install qemu-kvm libvirt-bin</span></pre></div><div style="font-size:12.8px">and the problem is back!</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">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.<br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">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).</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I have also posted a thread on AskUbuntu on this:</div><div style="font-size:12.8px"><br></div><div style="font-family:arial,sans-serif;font-size:12.8px"><font face="arial, helvetica, sans-serif"><a href="https://askubuntu.com/questions/925696/ubuntu-16-04-libvirt-guests-sh-6917-runni" target="_blank">https://askubuntu.com/question<wbr>s/925696/ubuntu-16-04-libvirt-<wbr>guests-sh-6917-runni</a></font><span style="font-family:arial,helvetica,sans-serif">ng-guests-<wbr>under-uri-address-default</span></div><div style="font-family:arial,sans-serif;font-size:12.8px"><span style="font-family:arial,helvetica,sans-serif"><br></span></div><div style="font-family:arial,sans-serif;font-size:12.8px"><font face="arial, helvetica, sans-serif">Thank you,</font></div><div style="font-family:arial,sans-serif;font-size:12.8px"><font face="arial, helvetica, sans-serif">Jędrzej</font></div></div></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br></div></div>______________________________<wbr>_________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/libvirt-users</a><span class="m_-1708201457002821905m_-5931768430844750321m_5550227016436092048HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="m_-1708201457002821905m_-5931768430844750321m_5550227016436092048HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-1708201457002821905m_-5931768430844750321m_5550227016436092048m_6546004520477295182gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Dominik Psenner<br></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="m_-1708201457002821905m_-5931768430844750321HOEnZb"><font color="#888888">-- <br><div class="m_-1708201457002821905m_-5931768430844750321m_5550227016436092048gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Dominik Psenner<br></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="m_-1708201457002821905HOEnZb"><font color="#888888">-- <br><div class="m_-1708201457002821905m_-5931768430844750321gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Dominik Psenner<br></div></div>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Dominik Psenner<br></div></div>
</div></div>