<div dir="ltr"><div><div><div><div><span class=""><span>Hi,<br><br></span></span></div><div><span class=""><span>The libvirtd startup script included in the current SlackBuild doesn't reliably detetct running domains and consequently doesn't stop them when stopping the libvirt daemon.<br><br></span></span></div><div><span class=""><span>Currently it executes a grep on the keyword 'running'. This doesn't work on system with localized variables since the word 'running' will be translated.<br></span></span></div><div><span class=""><span><br>A reliable way would be to use the command "virsh list --name --state-running" which outputs the name of the currently running domains.<br><br></span></span></div><span class=""><span>On another subject it may be good to use the configure option --qemu-user to run the qemu virtual machines with another user than root.<br><br></span></span></div><span class=""><span>It is stronlgy recommended by upstream :<br></span></span>"It is possible to change
      this default by using the --with-qemu-user=$USERNAME and
      --with-qemu-group=$GROUPNAME arguments to 'configure' during
      build. It is strongly recommended that vendors build with both
      of these arguments set to 'qemu'."<br><a href="http://libvirt.org/drvqemu.html#securitydac">http://libvirt.org/drvqemu.html#securitydac</a><br><br></div><div>Currently all qemu virtual machnie are executed with root user and priviledges unless it is built with optional dependency libcapng. See <a href="http://libvirt.org/drvqemu.html#securitycap">http://libvirt.org/drvqemu.html#securitycap</a><br></div><div><br></div>Cordially<br><br></div>Mathieu Bouillaguet<br></div>