1. 01 5月, 2013 1 次提交
  2. 25 3月, 2013 1 次提交
    • E
      libvirt-guests: newline between output sentences · 7c12055d
      Eric Blake 提交于
      Right now, libvirt-guests gives awkward output.  It's possible to
      force faster failure by setting /etc/sysconfig/libvirt-guests to use:
      
      ON_SHUTDOWN=shutdown
      PARALLEL_SHUTDOWN=0
      SHUTDOWN_TIMEOUT=1
      ON_BOOT=ignore
      
      at which point, we see:
      
      $ service libvirt-guests restart
      Running guests on default URI: a, b, d, c
      Shutting down guests on default URI...
      Starting shutdown on guest: a
      Shutdown of guest a failed to complete in time.Starting shutdown on guest: b
      Shutdown of guest b failed to complete in time.Starting shutdown on guest: d
      Shutdown of guest d failed to complete in time.Starting shutdown on guest: c
      Shutdown of guest c failed to complete in time.libvirt-guests is configured not to start any guests on boot
      
      * tools/libvirt-guests.sh.in (shutdown_guest): Add missing newline.
      Reported by Xuesong Zhang.
      7c12055d
  3. 12 12月, 2012 1 次提交
  4. 22 8月, 2012 1 次提交
    • G
      output status information during guest shutdown again · c18dc28b
      Gerd v. Egidy 提交于
      Since the move to systemd libvirt-guests doesn't output this progress
      information anymore. This patch brings back this feature.
      
      It is helpful to show the admin what the system is waiting for and what
      is left of the timeout (e.g. for calibrating the shutdown timing of a ups).
      
      Rewriting the current line with \r doesn't work anymore in the context
      of systemd. So always write new lines, but move to 5 second intervals
      to avoid flooding the console.
      c18dc28b
  5. 15 5月, 2012 1 次提交
  6. 05 3月, 2012 1 次提交
    • P
      libvirt-guests: Add parallel startup and shutdown of guests · 6c3642e9
      Peter Krempa 提交于
      With this patch, it's possible to shut down guests in parallel. Parallel
      startup was possible before, but this functionality was not documented
      properly.
      
      To enable parallel startup set the START_DELAY to 0.
      
      Parallel shutdown has a configurable parameter PARALLEL_SHUTDOWN that
      defines the number of machines being shut down in parallel. Enabling
      this feature changes the semantics of SHUTDOWN_TIMEOUT parameter that is
      applied as a cumulative timeout to shutdown all guests on a URI.
      6c3642e9
  7. 29 2月, 2012 3 次提交
  8. 22 7月, 2011 1 次提交
    • E
      save: support bypass-cache flag in libvirt-guests init script · 28d18250
      Eric Blake 提交于
      libvirt-guests is a perfect use case for bypassing the file system
      cache - lots of filesystem traffic done at system shutdown, where
      caching is pointless, and startup, where reading large files only
      once just gets in the way.  Make this a configurable option in the
      init script, but defaulting to existing behavior.
      
      * tools/libvirt-guests.sysconf (BYPASS_CACHE): New variable.
      * tools/libvirt-guests.init.sh (start, suspend_guest): Use it.
      28d18250
  9. 16 4月, 2011 1 次提交
  10. 15 3月, 2011 2 次提交
  11. 14 3月, 2011 1 次提交
  12. 12 3月, 2011 1 次提交
  13. 17 1月, 2011 2 次提交
    • E
      build: let xgettext see strings in libvirt-guests · 7f193757
      Eric Blake 提交于
      * tools/libvirt-guests.init.in: Rename...
      * tools/libvirt-guests.init.sh: ...so that xgettext's language
      detection via suffix will work.
      * po/POTFILES.in: Update all references.
      * tools/Makefile.am (EXTRA_DIST, libvirt-guests.init): Likewise.
      7f193757
    • L
      libvirt-guests: remove bashisms · a9e31a47
      Laurent Léonard 提交于
      * tools/libvirt-guests.init.sh: Use only POSIX shell features, which
      includes using gettext.sh for translation rather than $"".
      * tools/Makefile.am (libvirt-guests.init): Supply a few more substitutions.
      * po/POTFILES.in: Mark that libvirt-guests.init needs translation.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      a9e31a47
  14. 20 12月, 2010 1 次提交
  15. 14 12月, 2010 1 次提交
  16. 07 12月, 2010 1 次提交
  17. 23 9月, 2010 1 次提交
    • J
      libvirt-guests: start late and stop early · c5acd376
      Jiri Denemark 提交于
      libvirt-guests init script should be started as late as possible during
      host startup and stopped as early as possible during host shutdown to
      make sure required services are already/still up and running at the time
      libvirt-guests runs.
      c5acd376
  18. 25 8月, 2010 1 次提交
    • J
      Move libvirt-guests init script and config to tools · 2c090a55
      Jiri Denemark 提交于
      Since libvirt-guests init script and its configuration do not require
      libvirtd to be running/installed, it was a bad idea to put them into
      daemon directory. libvirt.spec even includes these files in
      libvirt-client subpackage, which may result in build failure for
      client-only builds when the whole daemon directory is just skipped.
      2c090a55
  19. 28 7月, 2010 3 次提交
  20. 27 7月, 2010 1 次提交
    • J
      libvirt-guests: Don't throw errors if libvirtd is not installed · d1018b1b
      Jiri Denemark 提交于
      When only client parts of libvirt are installed (i.e., no libvirtd
      daemon), libvirt-guests init script in its default configuration would
      throw seriously looking errors during host shutdown:
      
      Running guests on default URI: error: unable to connect to
      '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No
      such file or directory
      error: failed to connect to the hypervisor
      
      This patch changes the script to print rather harmless message in that
      situation:
      
      Running guests on default URI: libvirtd not installed; skipping this
      URI.
      d1018b1b
  21. 22 6月, 2010 1 次提交
    • J
      Don't leak open fd to virsh in libvirt-guests init script · 6c267f01
      Jiri Denemark 提交于
      Running virsh while having /var/lib/libvirt/libvirt-guests file open
      makes SELinux emit messages about preventing virsh from reading that
      file. Since virsh doesn't really want to read anything, it's better to
      run it with /dev/null on stdin to prevent those messages.
      6c267f01
  22. 29 5月, 2010 1 次提交
    • J
      Fix libvirt-guests init script · 1a5c465e
      Jiri Denemark 提交于
      Firstly, the init script has to touch its file under /var/lock/subsys
      when started, otherwise the system would think it's not running and
      won't stop it during shutdown.
      
      Secondly, for some reason there is a policy to automatically enable
      init scripts when they are installed, so let the specfile do this. We
      also need to start the init script to ensure it will be stopped during
      the first shutdown after installing the package.
      
      Also $LISTFILE should be enclosed by quotes everywhere as suggested by
      Eric.
      1a5c465e
  23. 21 5月, 2010 1 次提交
    • J
      Init script for handling guests on shutdown/boot · 66823690
      Jiri Denemark 提交于
      Example output during shutdown:
      
      Running guests on default URI: console, rhel6-1, rhel5-64
      Running guests on lxc:/// URI: lxc-shell
      Running guests on xen:/// URI: error: no hypervisor driver available for xen:///
      error: failed to connect to the hypervisor
      Running guests on vbox+tcp://orkuz/system URI: no running guests.
      Suspending guests on default URI...
      Suspending console: done
      Suspending rhel6-1: done
      Suspending rhel5-64: done
      Suspending guests on lxc:/// URI...
      Suspending lxc-shell: error: Failed to save domain 9cba8bfb-56f4-6589-2d12-8a58c886dd3b state
      error: this function is not supported by the hypervisor: virDomainManagedSave
      
      Note, the "Suspending $guest: " shows progress during the suspend phase
      if domjobinfo gives meaningful output.
      
      Example output during boot:
      
      Resuming guests on default URI...
      Resuming guest rhel6-1: done
      Resuming guest rhel5-64: done
      Resuming guest console: done
      Resuming guests on lxc:/// URI...
      Resuming guest lxc-shell: already active
      
      Configuration used for generating the examples above:
      URIS='default lxc:/// xen:/// vbox+tcp://orkuz/system'
      
      The script uses /var/lib/libvirt/libvirt-guests files to note all active
      guest it should try to resume on next boot. It's content looks like:
      
      default 7f8b9d93-30e1-f0b9-47a7-cb408482654b 085b4c95-5da2-e8e1-712f-6ea6a4156af2 fb4d8360-5305-df3a-2da1-07d682891b8c
      lxc:/// 9cba8bfb-56f4-6589-2d12-8a58c886dd3b
      66823690