You need to sign in or sign up before continuing.
  1. 04 9月, 2019 1 次提交
  2. 07 8月, 2019 1 次提交
  3. 27 7月, 2019 1 次提交
    • E
      backup: Implement virsh support for checkpoints · 689beaa4
      Eric Blake 提交于
      Introduce a bunch of new virsh commands for managing checkpoints in
      isolation. More commands are needed for performing incremental
      backups, but these commands were easy to implement by modeling heavily
      after virsh-snapshot.c. There is no need for checkpoint-revert or
      checkpoint-current since those snapshot APIs have no checkpoint
      counterpart.  Similarly, it is not necessary to change which
      checkpoint is current when redefining from XML, since until we
      integrate checkpoints with snapshots, there is only a linear chain
      (and you can deduce the current checkpoint by instead using
      'checkpoint-list --leaves').  Other aspects of checkpoint-list are
      also a bit simpler than the snapshot counterpart, in part because we
      don't have to cater to back-compat to older API.
      
      Upcoming patches will test these interfaces once the test driver
      supports checkpoints.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      689beaa4
  4. 25 7月, 2019 1 次提交
  5. 03 1月, 2019 1 次提交
  6. 18 12月, 2018 1 次提交
  7. 05 12月, 2018 1 次提交
  8. 20 9月, 2018 2 次提交
  9. 24 4月, 2018 1 次提交
  10. 12 1月, 2018 2 次提交
    • M
      vsh: Introduce complete command · a0e1ada6
      Michal Privoznik 提交于
      This command is going to be called from bash completion script in
      the following form:
      
        virsh complete -- start --domain
      
      Its only purpose is to return list of possible strings for
      completion. Note that this is a 'hidden', unlisted command and
      therefore there's no documentation to it.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      a0e1ada6
    • M
      vshCommandStringParse: Allow retrieving partial result · 2e688d96
      Michal Privoznik 提交于
      In the future, this function is going to be called from
      vshReadlineParse() to provide parsed input for completer
      callbacks. The idea is to allow the callbacks to provide more
      specific data. For instance, for the following input:
      
        virsh # domifaddr --domain fedora --interface <TAB><TAB>
      
      the --interface completer callback is going to be called. Now, it
      is more user friendly if the completer offers only those
      interfaces found in 'fedora' domain. But in order to do that it
      needs to be able to retrieve partially parsed result.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      2e688d96
  11. 27 11月, 2017 1 次提交
  12. 16 10月, 2017 1 次提交
  13. 29 8月, 2017 1 次提交
  14. 27 7月, 2017 1 次提交
  15. 13 6月, 2017 1 次提交
  16. 26 5月, 2017 1 次提交
    • J
      virsh: Track when create pkttyagent · 2453501f
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1374126
      
      Due to how the processing for authentication using polkit works, the
      virshConnect code must first "attempt" an virConnectOpenAuth and then
      check for a "special" return error code VIR_ERR_AUTH_UNAVAILABLE in
      order to attempt to "retry" the authentication after performing a creation
      of a pkttyagent to handle the challenge/response for the client.
      
      However, if pkttyagent creation is not possible for the authentication
      being attempted (such as perhaps a "qemu+ssh://someuser@localhost/system"),
      then the same failure pattern would be returned and another attempt to
      create a pkttyagent would be done. This would continue "forever" until
      someone forced quit (e.g. ctrl-c) from virsh as the 'authfail' was not
      incremented when creating the pkttyagent.
      
      So add a 'agentCreated' boolean to track if we've attempted to create the
      agent at least once and force a failure if that creation returned the same
      error pattern.
      
      This resolves a possible never ending loop and will generate an error:
      
      error: failed to connect to the hypervisor
      error: authentication unavailable: no polkit agent available to authenticate action 'org.libvirt.unix.manage'
      
      NB: If the authentication was for a sufficiently privileged client, such as
      qemu+ssh://root@localhost/system, then the remoteDispatchAuthList "allows"
      the authentication to use libvirt since @callerUid would be 0.
      2453501f
  17. 19 4月, 2017 1 次提交
  18. 12 4月, 2017 1 次提交
  19. 26 1月, 2017 1 次提交
  20. 14 9月, 2016 1 次提交
  21. 04 8月, 2016 1 次提交
  22. 02 8月, 2016 1 次提交
  23. 28 7月, 2016 1 次提交
  24. 21 6月, 2016 1 次提交
    • J
      Introduce virsh self-test · 920ab8bd
      Ján Tomko 提交于
      A new hidden command for virsh that will iterate over
      all command groups and commands and print help for every single one.
      
      This involves running vshCmddefOptParse so we can get an error if
      one of the command's option structure is invalid.
      920ab8bd
  25. 02 5月, 2016 1 次提交
    • M
      tools: Fix connect command · 0c56d943
      Martin Kletzander 提交于
      The man page says: "(Re)-Connect to the hypervisor. When the shell is
      first started, this is automatically run with the URI parameter
      requested by the "-c" option on the command line."  However, if you run:
      
        virsh -c 'test://default' 'connect; uri'
      
      the output will not be 'test://default'.  That's because the 'connect'
      command does not care about any virsh-only related settings and if it is
      run without parameters, it connects with @uri == NULL.  Not only that
      doesn't comply to what the man page describes, but it also doesn't make
      sense.  It also means you aren't able to reconnect to whatever you are
      connected currently.
      
      So let's fix that in both virsh and virt-admin add a test case for it.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      0c56d943
  26. 21 4月, 2016 3 次提交
    • C
      virsh: Don't clear old connection if 'connect $uri' fails · a02a859b
      Cole Robinson 提交于
          virsh # list --all
           Id    Name                           State
          ----------------------------------------------------
           1     test                           running
      
          virsh # connect frob
          error: Failed to connect to the hypervisor
          error: no connection driver available for frob
      
          virsh # list --all
          error: failed to connect to the hypervisor
          error: no valid connection
          error: no connection driver available for frob
      
      Seems sensible IMO to just not clear out the old connection state
      until the new virConnectOpen succeeds.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=829160
      a02a859b
    • R
      virsh: re-fix help printing without connection · 384dde55
      Roman Bogorodskiy 提交于
      Re-do 0217089b so it does not add regression for commit c0726e07 that allowed to
      print help without making a connection to the daemon.
      384dde55
    • R
      virsh: don't override connection URI from argv · 0217089b
      Roman Bogorodskiy 提交于
      Currently, if a connection URI was specified on the command line by the
      '-c' switch, virsh connects to it, but after connecting overrides its
      value with the one it tries to obtain from the VIRSH_DEFAULT_CONNECT_URI
      environment variable.
      
      This makes virsh connecting to the wrong URI if it disconnects from the
      hypervisor and then tries to reconnect, and also leaks the original connname.
      
      Fix by calling virGetEnvBlockSUID() before virshParseArgv().
      0217089b
  27. 15 4月, 2016 1 次提交
  28. 13 4月, 2016 1 次提交
  29. 06 4月, 2016 2 次提交
  30. 04 3月, 2016 1 次提交
  31. 01 3月, 2016 1 次提交
    • J
      virsh: Add support for text based polkit authentication · ea48397b
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=872166
      
      When the login session doesn't have an ssh -X type display agent in
      order for libvirtd to run the polkit session authentication, attempts
      to run 'virsh -c qemu:///system list' from an unauthorized user (or one
      that isn't part of the libvirt /etc/group) will fail with the following
      error from libvirtd:
      
      error: authentication unavailable: no polkit agent available to
             authenticate action 'org.libvirt.unix.manage'
      
      In order to handle the local authentication, we will use the new
      virPolkitAgentCreate API in order to create a text based authentication
      agent for our non readonly session to authenticate with.
      
      The new code will execute in a loop allowing 5 failures to authenticate
      before failing out.
      
      With this patch in place, the following occurs:
      
      $ virsh -c qemu:///system list
      ==== AUTHENTICATING FOR org.libvirt.unix.manage ===
      System policy prevents management of local virtualized systems
      Authenticating as: Some User (SUser)
      Password:
      ==== AUTHENTICATION COMPLETE ===
       Id    Name                           State
       ----------------------------------------------------
        1     somedomain                     running
      
      $
      ea48397b
  32. 15 2月, 2016 1 次提交
  33. 04 2月, 2016 1 次提交
  34. 08 1月, 2016 2 次提交