1. 19 7月, 2011 3 次提交
    • O
      doc: Correct documents for iface commands · dde56813
      Osier Yang 提交于
      The problems:
          * Duplicate documents for "iface-name"
          * Lacks of document for "iface-mac"
          * Inconsistent option names with virsh help strings.
      dde56813
    • E
      virsh: make migrate --tunnelled imply --p2p · 40143fb6
      Eric Blake 提交于
      We can make the virsh migrate UI friendlier by supplying the
      missing bit automatically instead of erroring out when requesting
      --tunnelled without --p2p.
      
      * tools/virsh.c (doMigrate): Make --p2p optional when using
      --tunnelled.
      * tools/virsh.pod (migrate): Tweak wording accordingly.
      40143fb6
    • E
      docs: improve virsh man page synopses · 08d3b0a2
      Eric Blake 提交于
      "optional" is not a very good meta-syntactic construct in our man
      page.  I scrubbed this, and additionally improved some documentation
      on mutually exclusive options.  For example,
      
      [[--live] [--config] | [--current]]
      
      implies a set of optional flags, where within the set you can have
      either --current or a choice of 0, 1, or both --live and --config.
      
      * tools/virsh.pod: Use "[name]" rather than "optional name" for
      optional arguments.
      08d3b0a2
  2. 16 7月, 2011 1 次提交
    • H
      add --cache, --serial, --shareable and --address to attach-disk · e962a579
      Hu Tao 提交于
      This adds four options for virsh command attach-disk.
      
      --cache option allows user to specify cache mode of disk device
      from virsh command line when attaching a disk device.
      
      --serial option allows user to specify serial string of disk device
      from virsh command line when attaching a disk device.
      
      --shareable option allows user to specify whether the disk device is
      shareable between domains when attaching a disk device from virsh
      command line.
      
      --address option allows user to specify address of disk device when
      attaching a disk device.
      e962a579
  3. 15 7月, 2011 1 次提交
  4. 14 7月, 2011 1 次提交
  5. 12 7月, 2011 2 次提交
  6. 08 7月, 2011 1 次提交
    • E
      virsh: make destroy sound less scary · 085d2415
      Eric Blake 提交于
      Destroy has a rather negative English connotation.  Try to reduce
      the impact, so newbies aren't as scared to use it.
      
      * tools/virsh.c: Tweak all destroy documentation.
      * tools/virsh.pod: Likewise.
      085d2415
  7. 25 6月, 2011 1 次提交
    • T
      vcpupin: add query option to virsh vcpupin command · e0858026
      Taku Izumi 提交于
      This patch teaches "virsh vcpupin" command to query if no list
      is given. Its feature is to show CPU affinity information in more
      reader-friendly way.
      
       # virsh vcpupin VM --config
       VCPU: CPU Affinity
       ----------------------------------
          0: 1-6,9-20
          1: 10
          2: 5,9-11,15-20
          3: 1,3,5,7,9,11,13,15
      
      When cpulist is omitted, vcpu number is optional. When vcpu number is
      provided, information of only specified vcpu is displayed.
      Signed-off-by: NTaku Izumi <izumi.taku@jp.fujitsu.com>
      Signed-off-by: NEric Blake <eblake@redhat.com>
      e0858026
  8. 24 6月, 2011 2 次提交
    • E
      Revert "Enable the virDomainBlockPull API in virsh" · f7f5e3e8
      Eric Blake 提交于
      This reverts commit 3e2493ce.
      f7f5e3e8
    • D
      Allow automatic kill of guests when a connection is closed · 3ba937da
      Daniel P. Berrange 提交于
      If an application is using libvirt + KVM as a piece of its
      internal infrastructure to perform a specific task, it can
      be desirable to guarentee the VM dies when the virConnectPtr
      disconnects from libvirtd. This ensures the app can't leak
      any VMs it was using. Adding VIR_DOMAIN_START_AUTOKILL as
      a flag when starting guests enables this to be done.
      
      * include/libvirt/libvirt.h.in: All VIR_DOMAIN_START_AUTOKILL
      * src/qemu/qemu_driver.c: Support automatic killing of guests
        upon connection close
      * tools/virsh.c: Add --autokill flag to 'start' and 'create'
        commands
      3ba937da
  9. 21 6月, 2011 3 次提交
    • E
      virsh: enhance snapshot-create-as · 9256ad84
      Eric Blake 提交于
      Similar to pool-create-as.
      
      * tools/virsh.c (cmdSnapshotCreateAs): Add --print-xml.
      * tools/virsh.pod: Document it.
      9256ad84
    • E
      virsh: add snapshot-create-as command · 1546dcf8
      Eric Blake 提交于
      Producing an xml file just for name and description fields is
      overkill; this makes life easier from virsh.
      
      * tools/virsh.c (cmdSnapshotCreateAs): New command.
      (snapshotCmds): Install it.
      * tools/virsh.pod: Document it.
      1546dcf8
    • E
      virsh: clarify snapshot vs. save · ea71d828
      Eric Blake 提交于
      * tools/virsh.c (info_snapshot_create, info_save): Clarify
      description.
      * tools/virsh.pod (save): Likewise.
      ea71d828
  10. 20 6月, 2011 3 次提交
    • T
      vcpupin: add reset option to virsh vcpupin command · c4a8ca71
      Taku Izumi 提交于
      When resetting vcpupin setting, we have to specify all host physical
      cpus as a cpulist parameter of virsh vcpupin command. It's a little
      tedious.
      
      This patch changes to allow to receive the special keyword 'r' as a cpulist
      parameter of virsh vcpupin command when resetting vcpupin setting.
      
      If you set the following:
      
       # virsh vcpupin VM 0 r
      
      the vcpu0 will be pinned to all physical cpus.
      Signed-off-by: NTaku Izumi <izumi.taku@jp.fujitsu.com>
      c4a8ca71
    • T
      vcpupin: improve vcpupin definition of virsh vcpupin · 2903534a
      Taku Izumi 提交于
      When using vcpupin command, we have to speficy comma-separated list as cpulist,
      but this is tedious in case the number of phsycal cpus is large.
      This patch improves this by introducing special markup "-" and "^" which are
      similar to XML schema of "cpuset" attribute.
      
      The example:
      
       # virsh vcpupin Guest 0 0-15,^8
      
       is identical to
      
       # virsh vcpupin Guest 0 0,1,2,3,4,5,6,7,9,10,11,12,13,14,15
      
      NOTE: The expression is sequentially evaluated, so "0-15,^8" is not identical
      to "^8,0-15".
      Signed-off-by: NTaku Izumi <izumi.taku@jp.fujitsu.com>
      2903534a
    • H
      Add new parameters for blkiotune · 1bb414af
      Hu Tao 提交于
      Add --config, --live and --current for command blkiotune
      1bb414af
  11. 17 6月, 2011 1 次提交
  12. 15 6月, 2011 3 次提交
  13. 13 6月, 2011 1 次提交
    • T
      vcpupin: add the new option to "virsh vcpupin" command · 9a3404ed
      Taku Izumi 提交于
      This patch adds the new option (--live, --config and --current) to
      "virsh vcpupin" command. The behavior of above aption is the same as
      that of "virsh setmem", "virsh setvcpus", and whatnot.
      When the --config option is specified, the command affects a persistent
      domain, while --live option is specified, it affects a running (live) domain.
      The --current option cannot be used with --config or --live at the same
      time, and when --current is specified, it affects a "current" domain.
      9a3404ed
  14. 08 6月, 2011 1 次提交
  15. 04 6月, 2011 1 次提交
  16. 03 6月, 2011 1 次提交
    • E
      docs: document iface-* commands · 72519f73
      Eric Blake 提交于
      I intentionally set things up so 'virsh help interface' lists
      commands in alphabetical order, but 'man virsh' lists them in
      topical order; this matches our practice on some other commands.
      
      * tools/virsh.pod: Document all iface commands.
      * tools/virsh.c (ifaceCmds): Sort.
      72519f73
  17. 02 6月, 2011 1 次提交
  18. 27 5月, 2011 1 次提交
    • H
      Add new flags for setting memory parameters · 118eac37
      Hu Tao 提交于
      The new flags allow to pick current state, config or the live
      parameter, with current being the existing API default (0).
      This also hooks this to --config, --live, --current parameters for
      the memtune virsh command
      
      * include/libvirt/libvirt.h.in: defines the new flags
      * tools/virsh.c: adds support at virsh level
      * tools/virsh.pod: updates virsh documentation
      118eac37
  19. 18 5月, 2011 1 次提交
  20. 16 5月, 2011 1 次提交
  21. 11 5月, 2011 1 次提交
  22. 11 4月, 2011 1 次提交
  23. 09 4月, 2011 1 次提交
    • T
      setmaxmem: add the new options to "virsh setmaxmem" command · 0ad06c11
      Taku Izumi 提交于
      This patch adds the new options (--live, --config, and --current) to
      "virsh setmaxmem" command. The behavior of above options is the same
      as that of "virsh setmem".  When the --config option is specified, a
      modification is effective for the persistent domain, while the --live
      option is specified, a modification is effective for an active
      domain. The --current option is specified, it affects a current
      domain.
      Signed-off-by: NTaku Izumi <izumi.taku@jp.fujitsu.com>
      0ad06c11
  24. 08 4月, 2011 2 次提交
  25. 07 4月, 2011 1 次提交
    • O
      qemu: Remove the managed state file only if restoring succeeded · a73bbfc8
      Osier Yang 提交于
      1) Both "qemuDomainStartWithFlags" and "qemuAutostartDomain" try to
      restore the domain from managedsave'ed image if it exists (by
      invoking "qemuDomainObjRestore"), but it unlinks the image even
      if restoring fails, which causes data loss. (This problem exists
      for "virsh managedsave dom; virsh start dom").
      
      The fix for is to unlink the managed state file only if restoring
      succeeded.
      
      2) For "virsh save dom; virsh restore dom;", it can cause data
      corruption if one reuse the saved state file for restoring. Add
      doc to tell user about it.
      
      3) In "qemuDomainObjStart", if "managed_save" is NULL, we shouldn't
      fallback to start the domain, skipping it to cleanup as a incidental
      fix. Discovered by Eric.
      a73bbfc8
  26. 01 4月, 2011 1 次提交
    • J
      virsh: Fix documentation for memtune command · 1e8f2079
      Jiri Denemark 提交于
      Commit 78ba748e claims to fix
      documentation for swap_hard_limit virsh memtune option but it only fixes
      documentation in formatdomain.html and libvirt.h. This patch completes
      the task by fixing "virsh help memtune" output and memtune section of
      virsh man page.
      1e8f2079
  27. 29 3月, 2011 1 次提交
  28. 28 3月, 2011 1 次提交
    • D
      Remove the Open Nebula driver · 4591df76
      Daniel P. Berrange 提交于
      The Open Nebula driver has been unmaintained since it was first
      introduced. The only commits have been for tree-wide cleanups.
      It also has a major design flaw, in that it only knows about guests
      that it has created itself, which makes it of very limited use.
      
      Discussions wrt evolution of the VMWare ESX driver, concluded that
      it should limit itself to single-node ESX operation and not try to
      manage the multi-node architecture of VirtualCenter. Open Nebula
      is a cluster like Virtual Center, not a single node system, so
      the same reasoning applies.
      
      The DeltaCloud project includes an Open Nebula driver and is a much
      better fit architecturally, since it is explicitly targetting the
      distributed multihost cluster scenario.
      
      Thus this patch deletes the libvirt Open Nebula driver with the
      recommendation that people use DeltaCloud for managing it instead.
      
      * configure.ac: Remove probe for xmlrpc & --with-one arg
      * daemon/Makefile.am, daemon/libvirtd.c, src/Makefile.am: Remove
        ONE driver build
      * src/opennebula/one_client.c, src/opennebula/one_client.h,
        src/opennebula/one_conf.c, src/opennebula/one_conf.h,
        src/opennebula/one_driver.c, src/opennebula/one_driver.c: Delete
        files
      * autobuild.sh, libvirt.spec.in, mingw32-libvirt.spec.in: Remove
        build rules for Open Nebula
      * docs/drivers.html.in, docs/sitemap.html.in: Remove reference
        to OpenNebula
      * docs/drvone.html.in: Delete file
      4591df76
  29. 11 3月, 2011 1 次提交