<div dir="auto">Hi, anybody has experienced the same issue? <div dir="auto"><br></div><div dir="auto">Thanks a lot! </div></div><div class="gmail_extra"><br><div class="gmail_quote">El 31 dic. 2016 5:25 p. m., "Oscar Segarra" <<a href="mailto:oscar.segarra@gmail.com">oscar.segarra@gmail.com</a>> escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, <div><br></div><div>I just have two virtual machines in my environment, I want them to gracefully stop when host is powered off gracefully. </div><div><br></div><div>Nevertheless, system hangs on shutdown:</div><div><br></div><div><font face="monospace, monospace">[root@vdicnode01 ~]# virsh list<br></font></div><div><div><font face="monospace, monospace"> Id    Name                           State</font></div><div><font face="monospace, monospace">------------------------------<wbr>----------------------</font></div><div><font face="monospace, monospace"> 1     vdicdb01                       running</font></div><div><font face="monospace, monospace"> 2     vdicone01                      running</font></div></div><div><br></div><div>The configuration:</div><div><br></div><div><font face="monospace, monospace">/usr/libexec/libvirt-guests.sh<br></font></div><div><div><font face="monospace, monospace">URIS=default</font></div><div><font face="monospace, monospace">ON_BOOT=ignore</font></div><div><font face="monospace, monospace">ON_SHUTDOWN=shutdown</font></div><div><font face="monospace, monospace">SHUTDOWN_TIMEOUT=60</font></div><div><font face="monospace, monospace">PARALLEL_SHUTDOWN=5</font></div><div><font face="monospace, monospace">START_DELAY=0</font></div><div><font face="monospace, monospace">BYPASS_CACHE=0</font></div><div><font face="monospace, monospace">CONNECT_RETRIES=10</font></div><div><font face="monospace, monospace">RETRIES_SLEEP=1</font></div><div><font face="monospace, monospace">SYNC_TIME=0</font></div></div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">[root@vdicnode01 ~]# cat /etc/libvirt/qemu.conf</font></div><div><font face="monospace, monospace">user  = "oneadmin"</font></div><div><font face="monospace, monospace">group = "oneadmin"</font></div><div><font face="monospace, monospace">dynamic_ownership = 0</font></div><div><font face="monospace, monospace">spice_tls = 0</font></div></div><div><br></div><div>With libvirt-guests service started:</div><div><div><font face="monospace, monospace">[root@vdicnode01 ~]# service libvirt-guests status</font></div><div><font face="monospace, monospace">Redirecting to /bin/systemctl status  libvirt-guests.service</font></div><div><font face="monospace, monospace">● libvirt-guests.service - Suspend Active Libvirt Guests</font></div><div><font face="monospace, monospace">   Loaded: loaded (/usr/lib/systemd/system/<wbr>libvirt-guests.service; disabled; vendor preset: disabled)</font></div><div><font face="monospace, monospace">   Active: active (exited) since Sat 2016-12-31 17:13:34 CET; 5s ago</font></div><div><font face="monospace, monospace">     Docs: man:libvirtd(8)</font></div><div><font face="monospace, monospace">           <a href="http://libvirt.org" target="_blank">http://libvirt.org</a></font></div><div><font face="monospace, monospace">  Process: 6619 ExecStart=/usr/libexec/<wbr>libvirt-guests.sh start (code=exited, status=0/SUCCESS)</font></div><div><font face="monospace, monospace"> Main PID: 6619 (code=exited, status=0/SUCCESS)</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Dec 31 17:13:34 <a href="http://vdicnode01.vdicube.com" target="_blank">vdicnode01.vdicube.com</a> systemd[1]: Starting Suspend Active Libvirt Guests...</font></div><div><font face="monospace, monospace">Dec 31 17:13:34 <a href="http://vdicnode01.vdicube.com" target="_blank">vdicnode01.vdicube.com</a> libvirt-guests.sh[6619]: libvirt-guests is configured not to start any guests on boot</font></div><div><font face="monospace, monospace">Dec 31 17:13:34 <a href="http://vdicnode01.vdicube.com" target="_blank">vdicnode01.vdicube.com</a> systemd[1]: Started Suspend Active Libvirt Guests.</font></div><div><font face="monospace, monospace">[root@vdicnode01 ~]#</font></div></div><div><br></div><div>If I stop locally libvirt-guests (as root) Looks work perfectly:<br></div><div><div><br></div><div><font face="monospace, monospace">[root@vdicnode01 ~]# virsh list</font></div><div><font face="monospace, monospace"> Id    Name                           State</font></div><div><font face="monospace, monospace">------------------------------<wbr>----------------------</font></div></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">[root@vdicnode01 ~]#</font><br></div><div><br></div><div>--> Now I start again the virtual machines and the libvirt-guests service <--<br></div><div><div><font face="monospace, monospace">[root@vdicnode01 ~]# service libvirtd restart</font></div><div><font face="monospace, monospace">Redirecting to /bin/systemctl restart  libvirtd.service</font></div><div><font face="monospace, monospace">[root@vdicnode01 ~]# service libvirt-guests start</font></div><div><font face="monospace, monospace">Redirecting to /bin/systemctl start  libvirt-guests.service</font></div><div><font face="monospace, monospace">[root@vdicnode01 ~]# virsh list</font></div><div><font face="monospace, monospace"> Id    Name                           State</font></div><div><font face="monospace, monospace">------------------------------<wbr>----------------------</font></div><div><font face="monospace, monospace"> 1     vdicone01                      running</font></div><div><font face="monospace, monospace"> 2     vdicdb01                       running</font></div><div><br></div><div>[root@vdicnode01 ~]#</div></div><div><br></div><div>But If I shutdown the host it look not work properly (I attack screenshots of the shutdown process).</div><div><br></div><div>Any help will be welcome.</div><div><br></div><div>Thanks a lot.</div><div><br></div></div>
</blockquote></div></div>