1. 09 8月, 2019 2 次提交
  2. 06 8月, 2019 1 次提交
  3. 19 7月, 2019 1 次提交
    • D
      remote: increase daemon shutdown timer to 2 minutes · 9d7fcdbf
      Daniel P. Berrangé 提交于
      Shutting down the daemon after 30 seconds of being idle is a little bit
      too aggressive. Especially when using 'virsh' in single-shot mode, as
      opposed to interactive shell mode, it would not be unusual to have
      more than 30 seconds between commands. This will lead to the daemon
      shutting down and starting up between a series of commands.
      
      Increasing the shutdown timer to 2 minutes will make it less likely that
      the daemon will shutdown while the user is in the middle of a series of
      commands.
      Reviewed-by: NJim Fehlig <jfehlig@suse.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      9d7fcdbf
  4. 12 7月, 2019 2 次提交
  5. 13 6月, 2018 1 次提交
  6. 22 2月, 2018 1 次提交
  7. 22 1月, 2018 1 次提交
    • M
      libvirtd: Explicit dependency on systemd-machined · 1b0c42ff
      Michal Koutný 提交于
      The libvirtd daemon uses systemd-machined D-Bus API when manipulating
      domains. The systemd-machined is D-Bus activated on demand.
      
      However, during system shutdown systemd-machined is stopped concurrently
      with libvirtd and virsh users also doing their final cleanup may
      transitively fail due to unavailability of systemd-machined. Example
      error message
      
      > libvirtd[1390]: 2017-12-20 18:55:56.182+0000: 32700: error : virSystemdTerminateMachine:503 : Refusing activation, D-Bus is shutting down.
      
      To circumvent this we need to explicitly specify both ordering and
      requirement dependency (to avoid late D-Bus activation) on
      systemd-machined. See [1] for the dependency debate.
      
      [1] https://lists.freedesktop.org/archives/systemd-devel/2018-January/040095.html
      1b0c42ff
  8. 16 10月, 2017 1 次提交
  9. 20 4月, 2017 1 次提交
    • J
      Increase default task limit for libvirtd · 6b3fb86b
      Jim Fehlig 提交于
      libvirtd can spawn threads/tasks when creating new domains for
      some hypervisors such as Xen's libxl driver, quickly reaching
      the cgroups pids controller default TasksMax setting of 512. When
      the limit is reached, attempting to create additional domains
      results in an error from the cgroups pids controller, e.g.
      
      kernel: [71282.213347] cgroup: fork rejected by pids controller in
      /system.slice/libvirtd.service
      
      Depending on domain type and configuration, anywhere from 4-7
      threads/tasks may be created by libxl when starting a domain.
      In order to support 4096 domains, similar to commit 27cd7635,
      increase the TasksMax setting in libvirtd.service to
      4096 * 8 = 32768 tasks.
      6b3fb86b
  10. 16 3月, 2017 1 次提交
    • D
      Increase default file handle limits for daemons · 27cd7635
      Daniel P. Berrange 提交于
      Linux still defaults to a 1024 open file handle limit. This causes
      scalability problems for libvirtd / virtlockd / virtlogd on large
      hosts which might want > 1024 guest to be running. In fact if each
      guest needs > 1 FD, we can't even get to 500 guests. This is not
      good enough when we see machines with 100's of physical cores and
      TBs of RAM.
      
      In comparison to other memory requirements of libvirtd & related
      daemons, the resource usage associated with open file handles
      is essentially line noise. It is thus reasonable to increase the
      limits unconditionally for all installs.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      27cd7635
  11. 04 2月, 2017 1 次提交
  12. 06 9月, 2016 1 次提交
    • A
      virtlogd.socket: Tie lifecycle to libvirtd.service · 839a0608
      Andrea Bolognani 提交于
      We already guarantee that virtlogd.socket is enabled/disabled
      along with libvirtd.service, but if libvirtd.service has just
      been installed and is started before rebooting, then
      virtlogd.socket will not be running and guest startup will
      fail.
      
      Add Requires=virtlogd.socket to libvirtd.service to make sure
      virtlogd.socket is always started along with libvirtd.service,
      and add Before=libvirtd.service to both virtlogd.socket and
      virtlogd.service so that virtlogd never disappears before
      libvirtd has exited.
      
      Also add PartOf=libvirtd.service to both virtlogd.socket and
      virtlogd.service, so that virtlogd can be shut down when not
      needed.
      
      Resolves: https://bugzilla.redhat.com/1372576
      839a0608
  13. 20 4月, 2016 1 次提交
  14. 08 12月, 2015 1 次提交
    • D
      libvirtd: enable virtlockd/virtlogd socket activation on install · 5cce775e
      Daniel P. Berrange 提交于
      When someone does 'systemctl enable libvirtd.service' we should
      also enable virtlockd.socket/virtlogd.socket, so that they can
      be auto-activated if libvirtd tries to access the sockets.
      
      Without this, people have to manually enable the units themselves
      via 'systemctl enable virtdlogd.socket'.
      
      This also ensures that if distros uses  'systemctl preset' for
      enabling 'libvirtd.service', then the virtdlogd.socket gets
      enabled without having to wait for the distro to update their
      presets file.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      5cce775e
  15. 26 8月, 2015 1 次提交
  16. 22 8月, 2014 1 次提交
  17. 04 3月, 2014 1 次提交
  18. 24 2月, 2014 1 次提交
    • M
      virNetServerRun: Notify systemd that we're accepting clients · 68954fb2
      Michal Privoznik 提交于
      Systemd does not forget about the cases, where client service needs to
      wait for daemon service to initialize and start accepting new clients.
      Setting a dependency in client is not enough as systemd doesn't know
      when the daemon has initialized itself and started accepting new
      clients. However, it offers a mechanism to solve this. The daemon needs
      to call a special systemd function by which the daemon tells "I'm ready
      to accept new clients". This is exactly what we need with
      libvirtd-guests (client) and libvirtd (daemon). So now, with this
      change, libvirt-guests.service is invoked not any sooner than
      libvirtd.service calls the systemd notify function.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      68954fb2
  19. 09 1月, 2014 1 次提交
  20. 01 8月, 2013 1 次提交
  21. 04 3月, 2013 1 次提交
  22. 05 12月, 2012 1 次提交
    • E
      systemd: require dbus service · c748037f
      Eric Blake 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=830201
      
      The initscript and upstart services depend on dbus starting
      before libvirtd.  When we first wrote the systemd script, we
      tried to do the same, but we depended on dbus.target (which
      does not exist) in comparison to network.target (which does
      exist), so we removed that in commit 4c7973e1.  But we still
      need dbus up and running first, especially now that we want
      to support shutdown inhibition via dbus (whereas we originally
      needed dbus only for firewall control).
      
      http://www.freedesktop.org/software/systemd/man/systemd.target.html
      explains how a target (such as network.target) is just a collection
      of common services bundled together, and why we want network.target
      but dbus.service.
      
      * daemon/libvirtd.service.in (Unit): Depend on dbus starting
      first.
      c748037f
  23. 10 7月, 2012 1 次提交
    • J
      systemd: start libvirtd after network · 4036aa91
      Jim Fehlig 提交于
      Domains configured with autostart may fail to start if the host
      network stack has not been started.  E.g. when using bridged
      networking autostarting a domain can fail with
      
      libvirtd[1403]: 2012-06-20 13:23:49.833+0000: 1485: error :
      qemuAutostartDomain:177 : Failed to autostart VM 'test': Cannot get
      interface MTU on 'br0': No such device
      4036aa91
  24. 23 5月, 2012 1 次提交
  25. 16 5月, 2012 1 次提交
  26. 23 3月, 2012 1 次提交
  27. 01 2月, 2012 1 次提交
  28. 19 11月, 2011 1 次提交
    • D
      Add support for systemd init service · 4789fb2e
      Daniel P. Berrange 提交于
      This patch adds support for a systemd init service for libvirtd
      and libvirt-guests. The libvirtd.service is *not* written to use
      socket activation, since we want libvirtd to start on boot so it
      can do guest auto-start.
      
      The libvirt-guests.service is pretty lame, just exec'ing the
      original init script for now. Ideally we would factor out the
      functionality, into some shared tool.
      
      Instead of
      
        ./configure --with-init-script=redhat
      
      You can now do
      
        ./configure --with-init-script=systemd
      
      Or better still:
      
        ./configure --with-init-script=systemd+redhat
      
      We can also now support install of the upstart init script
      
      * configure.ac: Add systemd, and systemd+redhat options to
        --with-init-script option
      * daemon/Makefile.am: Install systemd services
      * daemon/libvirtd.sysconf: Add note about unused env variable
        with systemd
      * daemon/libvirtd.service.in: libvirtd systemd service unit
      * libvirt.spec.in: Add scripts to installing systemd services
        and migrating from legacy init scripts
      * tools/Makefile.am: Install systemd services
      * tools/libvirt-guests.init.sh: Rename to tools/libvirt-guests.init.in
      * tools/libvirt-guests.service.in: systemd service unit
      4789fb2e