1. 10 9月, 2010 1 次提交
    • J
      virsh: Option for overriding disk type in attach-disk · dfec22cc
      Jiri Denemark 提交于
      Unless --driver tap|file option was given to attach-disk, virsh would
      generate <disk type='block'> XML which might be fine for Xen but not for
      other hypervisors. This patch introduces a new option --sourcetype which
      can be used to explicitly set the type of disk source. The option
      accepts either "file" or "block" types.
      dfec22cc
  2. 01 9月, 2010 1 次提交
    • R
      virsh: remove driver check from attach-disk command · 12a41822
      Ryan Harper 提交于
      Virsh shouldn't check for driver support but rather let the backend handled this.
      After removing the check, I can successfully attach file-based images to a qemu
      VM with attach-disk.
      
      % virsh attach-disk vm2 /images/test02.img vdc --driver qemu --type disk --subdriver raw
      Disk attached successfully
      
      This command generates the following XML:
      
      <disk type='block' device='disk'>
            <driver name='qemu' type='raw'/>
            <source dev='/images/test02.img'/>
            <target dev='vdc' bus='virtio'/>
            <alias name='virtio-disk2'/>
            <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
      </disk>
      Signed-off-by: NRyan Harper <ryanh@us.ibm.com>
      12a41822
  3. 03 8月, 2010 4 次提交
  4. 21 7月, 2010 1 次提交
  5. 20 7月, 2010 4 次提交
  6. 16 7月, 2010 4 次提交
  7. 13 7月, 2010 1 次提交
  8. 09 7月, 2010 1 次提交
  9. 08 7月, 2010 2 次提交
  10. 30 6月, 2010 1 次提交
    • E
      virsh: tweak help output for VSH_OT_DATA · 26752f3b
      Eric Blake 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=609044 complained
      that 'virsh help pool-create-as' didn't document the shortcut
      that you can do 'virsh pool-create-as $name $type --target $target'
      rather than having to supply the four optional source- arguments
      in order to fill out the necessary positional arguments.
      
      This one-liner changes the help output to hopefully make this more obvious:
      
        NAME
          pool-create-as - create a pool from a set of args
      
        SYNOPSIS
          pool-create-as <name> [--print-xml] <type> [<source-host>] [<source-path>] [<source-dev>] [<source-name>] [<target>] [--source-format <string>]
      
        DESCRIPTION
          Create a pool.
      
        OPTIONS
          [--name] <string>  name of the pool
          --print-xml      print XML document, but don't define/create
          [--type] <string>  type of the pool
          [--source-host] <string>  source-host for underlying storage
          [--source-path] <string>  source path for underlying storage
          [--source-dev] <string>  source device for underlying storage
          [--source-name] <string>  source name for underlying storage
          [--target] <string>  target for underlying storage
          --source-format <string>  format for underlying storage
      
      * tools/virsh.c (vshCmddefHelp): Make it more obvious that data
      arguments may, but not must, be specified by option leaders.
      26752f3b
  11. 29 6月, 2010 1 次提交
  12. 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
  13. 21 6月, 2010 1 次提交
  14. 18 6月, 2010 2 次提交
  15. 17 6月, 2010 3 次提交
  16. 16 6月, 2010 1 次提交
  17. 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
  18. 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
  19. 09 6月, 2010 4 次提交
  20. 02 6月, 2010 1 次提交
    • J
      Add --source-format argument to virsh pool-define-as and pool-create-as · b221973a
      Justin Clift 提交于
      When creating pools from dedicated disks, the existing pool-define-as
      and pool-create-as commands are a bit non-optimal.
      
      Ideally, a person would be able to specify all of the required options
      directly on the command line instead of having to edit the XML.
      
      At the moment, there is no way to specify the format type (ie gpt) so it
      gets included in the XML the pool is constructed with.
      
      Please find attached a simple (tested) patch to add an optional
      "--source-format 'type'" to virsh.  This is patched against current git
      master and will apply cleanly.
      
      Also created a Red Hat BZ ticket for this (#597790) for tracking.
      b221973a
  21. 18 5月, 2010 1 次提交
  22. 12 5月, 2010 1 次提交
    • E
      build: update gnulib · e8a1a730
      Eric Blake 提交于
      * .gnulib: Update to latest.
      * bootstrap.conf (gnulib_modules): Import netdb.
      * src/esx/esx_util.c (AI_ADDRCONFIG): Rely on gnulib.
      * src/remote/remote_driver.c (AI_ADDRCONFIG): Likewise.
      * tools/virsh.c (WEXITSTATUS, O_SYNC): Likewise.
      e8a1a730
  23. 11 5月, 2010 2 次提交