1. 12 11月, 2010 1 次提交
    • D
      Re-write virsh console to use streams · dad4b5d4
      Daniel P. Berrange 提交于
      This re-writes the 'virsh console' command so that it uses
      the new streams API. This lets it run remotely and/or as a
      non-root user. This requires that virsh be linked against
      the simple event loop from libvirtd in daemon/event.c
      As an added bonus, it can now connect to any console device,
      not just the first one.
      
      * tools/Makefile.am: Link to event.c
      * tools/console.c, tools/console.h: Rewrite to use the
        virDomainOpenConsole() APIs with streams
      * tools/virsh.c: Support choosing the console name
        via --devname $NAME
      dad4b5d4
  2. 11 11月, 2010 1 次提交
    • E
      virsh: supply long option for -V · 51c83a2b
      Eric Blake 提交于
      * tools/virsh.c (vshParseArgv): Use NULL instead of 0 for pointer,
      and symbolic names for has_arg.  Give --version an optional arg.
      (vshUsage): Document this.
      * tools/virsh.pod: Likewise.
      51c83a2b
  3. 09 11月, 2010 1 次提交
    • D
      Show compiled in options in virsh -V · 5879c15d
      Daniel Veillard 提交于
        To ease debugging this trivial patch allows to find what was compiled
      in in the local version of libvirt, this doesn't work for remote access
      but that's probably sufficient. With the patch I get on my machine:
      
      paphio:~/libvirt/tools -> ./virsh -V
      Virsh command line tool of libvirt 0.8.4
      See web site at http://libvirt.org/
      
      Compiled with support for:
       Hypervisors: Xen QEmu/KVM UML OpenVZ LXC ESX PHYP Test
       Networking: Remote Daemon Network Bridging Netcf Nwfilter
       Storage: Dir Disk Filesystem SCSI Multipath iSCSI LVM
       Miscellaneous: SELinux Secrets Debug Readline
      paphio:~/libvirt/tools ->
      
      * tools/virsh.c: add -V option
      * tools/virsh.pod: document the extension
      5879c15d
  4. 06 11月, 2010 1 次提交
  5. 29 10月, 2010 1 次提交
  6. 26 10月, 2010 1 次提交
    • O
      virsh: Add option 'model' for attach-interface · 1a29a14a
      Osier Yang 提交于
      * tools/virsh.c: add missing option from the CLI to allows setting
        up the NIC model type when attaching an interface
      * tools/virsh.pod: extend documentation
      * AUTHORS: add Osier Yang to the list
      1a29a14a
  7. 20 10月, 2010 2 次提交
    • E
      virsh: consolidate memtune docs · 9b372562
      Eric Blake 提交于
      * tools/virsh.pod (memtune): Drop second copy, fill to 80 columns,
      enhance wording.
      9b372562
    • E
      vcpu: add virsh support · bf945ee9
      Eric Blake 提交于
      * tools/virsh.c (cmdSetvcpus): Add new flags.  Let invalid
      commands through to driver, to ease testing of hypervisor argument
      validation.
      (cmdMaxvcpus, cmdVcpucount): New commands.
      (commands): Add new commands.
      * tools/virsh.pod (setvcpus, vcpucount, maxvcpus): Document new
      behavior.
      bf945ee9
  8. 19 10月, 2010 2 次提交
    • N
      memtune: Add min_guarantee to the virsh memtune command · 0a22f542
      Nikunj A. Dadhania 提交于
      * tools/virsh.c: Add new memory tunable "min_guarantee", currently only
        ESX can use this
      * tools/virsh.pod: Update the manpage
      0a22f542
    • N
      Update docs for memory parameters and memtune command · 61dfbf8c
      Nikunj A. Dadhania 提交于
      * docs/formatdomain.html.in: Add memtune element details, added min_guarantee
      * src/libvirt.c: Update virDomainGetMemoryParameters api description, make
        it more clear that the user first needs to call the api to get the number
        of parameters supported and then call again to get the values.
      * tools/virsh.pod: Add usage of new command memtune in virsh manpage
      61dfbf8c
  9. 16 10月, 2010 1 次提交
    • E
      virsh: new echo command · b2aedb8e
      Eric Blake 提交于
      * tools/virsh.c (cmdEcho): New command.
      (commands): Add it.
      * tools/virsh.pod (echo): Document it.
      b2aedb8e
  10. 13 10月, 2010 2 次提交
    • E
      virsh: document options in man page · 2f72becc
      Eric Blake 提交于
      * tools/virsh.pod: Document top-level options.
      2f72becc
    • L
      virsh: rework command parsing · a2943243
      Lai Jiangshan 提交于
      Old virsh command parsing mashes all the args back into a string and
      miss the quotes, this patches fix it. It is also needed for introducing
      qemu-monitor-command which is very useful.
      
      This patches uses the new vshCommandParser abstraction and adds
      vshCommandArgvParse() for arguments vector, so we don't need
      to mash arguments vector into a command sting.
      
      And the usage was changed:
      old:
      virsh [options] [commands]
      
      new:
      virsh [options]... [<command_string>]
      virsh [options]... <command> [args...]
      
      So we still support commands like:
      "define D.xml; dumpxml D" was parsed as a commands-string.
      
      and support commands like:
      we will not mash them into a string, we use new argv parser for it.
      
      But we don't support the command like:
      "define D.xml; dumpxml" was parsed as a command-name, but we have no such command-name.
      Signed-off-by: NLai Jiangshan <laijs@cn.fujitsu.com>
      a2943243
  11. 17 7月, 2010 1 次提交
    • J
      man pages: update authors and copyright notice for libvirtd and virsh · de7d4c6a
      Justin Clift 提交于
      This patch removes the individual author names from the libvirtd and virsh
      man pages, instead referring to the main AUTHORS file distributed with
      libvirt.  This approach is needed, as we can't guarantee unicode support
      across all versions of pod2man used with libvirt.
      
      Additionally, this patch includes the libvirtd man page in the spec file
      used with "make rpm".  Without this patch "make rpm" is broken.
      de7d4c6a
  12. 13 7月, 2010 1 次提交
  13. 09 7月, 2010 1 次提交
  14. 08 7月, 2010 1 次提交
  15. 29 6月, 2010 1 次提交
  16. 23 6月, 2010 1 次提交
    • E
      virsh: document attach-disk better · 4cc2b6d6
      Eric Blake 提交于
      http://bugzilla.redhat.com/601143, part 1 - document existing
      behavior.  Ever since Mar 2010 (commit ced154cb), the use of
      'attach-disk' or 'attach-device' to change cdrom/floppy media has been
      documented but deprecated, but the replacement to use 'update-device'
      was not documented.
      
      * tools/virsh.c (cmdAttachInterface, cmdAttachDisk): Fix bad error
      message.
      * tools/virsh.pod (attach-device, attach-disk): Refer to
      update-device for cdrom and floppy behavior.
      (update-device): Add documentation.
      4cc2b6d6
  17. 18 6月, 2010 1 次提交
  18. 17 6月, 2010 1 次提交
    • J
      virsh: add pool support to vol-key command · 31495ef6
      Justin Clift 提交于
      Presently the vol-key command only supports being provided with
      a volume path.
      
      This patch adds support for providing it with a pool and volume
      identifier pair as well.
      
          virsh # vol-key --pool <pool-name-or-uuid> <vol-name-or-path>
      31495ef6
  19. 15 6月, 2010 1 次提交
    • E
      virsh: add start --paused support · cbe6ebdb
      Eric Blake 提交于
      Make 'start --paused' mirror 'create --paused'.
      
      * tools/virsh.c (cmdStart): Use new virDomainCreateWithFlags API
      when needed.
      * tools/virsh.pod (start): Document --paused.
      cbe6ebdb
  20. 11 6月, 2010 1 次提交
    • J
      virsh: add snapshot backing store support to vol-create-as · b28a068b
      Justin Clift 提交于
      This patch adds two new parameters to the vol-create-as command:
      
       --backing-vol <volume-name-or-key-or-path>
       --backing-vol-format <format-of-backing-vol>
      
        virsh # vol-create-as guest_images_lvm snapvol1 5G --backing-vol \
                    rhel6vm1lun1
        Vol snapvol1 created
      
        virsh # vol-create-as image_dir qcow2snap2 5G --format qcow2 \
                    --backing-vol imagevol1.qcow2 \
                    --backing-vol-format qcow2
        Vol qcow2snap2 created
      
      Additionally, the virsh man page update fixes incorrect snapshot
      parameters that were included in my prior bulk volume command patch.
      b28a068b
  21. 09 6月, 2010 2 次提交
  22. 08 6月, 2010 1 次提交
  23. 02 6月, 2010 2 次提交
  24. 30 4月, 2010 1 次提交
    • D
      Add new domblkinfo command to virsh · 7703c2c9
      Daniel P. Berrange 提交于
        virsh # domblkinfo demoguest /dev/hda2
        Capacity:       1048576000
        Allocation:     104857600
        Physical:       104857600
      
      * tools/virsh.c: Implement domblkinfo command mapping to the
        new virDomainGetBlockInfo API
      7703c2c9
  25. 13 4月, 2010 1 次提交
  26. 12 4月, 2010 2 次提交
  27. 08 4月, 2010 2 次提交
  28. 06 4月, 2010 2 次提交
  29. 04 4月, 2010 1 次提交
  30. 31 3月, 2010 1 次提交
    • E
      virsh: add 'exit' as an alias for 'quit' · 890af4ca
      Eric Blake 提交于
      Call me lazy: some shells use exit (e.g. sh), others use quit (e.g. ftp),
      but I never remember which.  So it's faster to write a patch to make
      virsh take both than it is to take a 50-50 guess, and get it wrong
      in half of my attempts.
      
      * tools/virsh.c (commands): Add 'exit'.
      * tools/virsh.pod: Document it.
      890af4ca
  31. 30 3月, 2010 2 次提交
    • E
      virsh: support VISUAL, and allow metacharacters in EDITOR · f3661756
      Eric Blake 提交于
      Common Unix practice is to prefer VISUAL over EDITOR, particularly if
      the editor of choice spawns a new window.  Thus, it is also common to
      see settings like EDITOR='emacs -nw', with the expectation that the
      shell will parse this as an argument to 'emacs' and not try to invoke
      a file containing a space.
      
      If a user puts junk in EDITOR, they deserve what they get (much more
      than virsh will misbehave); furthermore, sudo scrubs EDITOR by
      default.  So the blind use of metacharacters in EDITOR should not be
      considered too much of a security issue.
      
      * tools/virsh.c (editFile): Prefer VISUAL over EDITOR.  Don't
      reject shell metacharacters in EDITOR.
      * tools/virsh.pod (edit, net-edit, ENVIRONMENT): Document VISUAL.
      Fixes https://bugzilla.redhat.com/show_bug.cgi?id=487738.
      f3661756
    • E
      virsh: improve man page · b522264b
      Eric Blake 提交于
      * tools/virsh.pod: (DESCRIPTION): Improve grammar.  Mention other drivers.
      (ENVIRONMENT): Document EDITOR.
      (COPYRIGHT): Bump.
      b522264b