1. 11 1月, 2016 1 次提交
  2. 18 12月, 2015 2 次提交
  3. 11 11月, 2015 2 次提交
  4. 16 9月, 2015 1 次提交
  5. 14 8月, 2015 1 次提交
    • T
      virsh: Implement "domrename" command · ff486e0d
      Tomas Meszaros 提交于
      This patch implements new virsh command, domrename.
      
      Using domrename, it will be possible to rename domain from the virsh shell by
      calling virRenameDomain API.
      
      It takes two arguments, current domain name and new domain name.
      
      Example:
      
      virsh # list --all
       Id    Name                           State
       ----------------------------------------------------
        -     bar                            shut off
      
      virsh # domrename bar foo
      Domain successfully renamed
      
      virsh # list --all
       Id    Name                           State
       ----------------------------------------------------
        -     foo                            shut off
      
      virsh #
      Signed-off-by: NTomas Meszaros <exo@tty.sk>
      ff486e0d
  6. 11 8月, 2015 1 次提交
  7. 16 7月, 2015 1 次提交
  8. 18 6月, 2015 1 次提交
  9. 15 6月, 2015 1 次提交
  10. 12 6月, 2015 1 次提交
  11. 04 6月, 2015 1 次提交
    • P
      qemu: libxl: vcpupin: Don't reset pinning when pinning to all pcpus · a02a161b
      Peter Krempa 提交于
      In the pre-NUMA ages pinning a vCPU to all pCPUs was eaqual to deleting
      the pinning info. Now it does not entirely work that way. Pinning a vCPU
      to all pCPUs might be a desired operation. Additionally removal of the
      pinning will result into using the default pinning information at the
      next boot which might be different from all vcpus.
      
      This patch removes the false assumption that we should remove the
      pinning after pinning to all vCPUs and tweaks the documentation for
      virsh.
      
      A later patch will implement a new flag for the virDomainPinVcpuFlags
      API that will allow to remove the pinning in a sane way.
      a02a161b
  12. 21 5月, 2015 1 次提交
  13. 04 5月, 2015 1 次提交
  14. 28 4月, 2015 1 次提交
    • J
      virsh: Add iothreadadd and iothreaddel commands · 1f7e8112
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1161617
      
      Add command to allow adding and removing IOThreads from the domain including
      the configuration and live domain.
      
      $ virsh iothreadadd --help
        NAME
          iothreadadd - add an IOThread to the guest domain
      
        SYNOPSIS
          iothreadadd <domain> <id> [--config] [--live] [--current]
      
        DESCRIPTION
          Add an IOThread to the guest domain.
      
        OPTIONS
          [--domain] <string>  domain name, id or uuid
          [--id] <number>  iothread for the new IOThread
          --config         affect next boot
          --live           affect running domain
          --current        affect current domain
      
      $ virsh iothreaddel --help
        NAME
          iothreaddel - delete an IOThread from the guest domain
      
        SYNOPSIS
          iothreaddel <domain> <id> [--config] [--live] [--current]
      
        DESCRIPTION
          Delete an IOThread from the guest domain.
      
        OPTIONS
          [--domain] <string>  domain name, id or uuid
          [--id] <number>  iothread_id for the IOThread to delete
          --config         affect next boot
          --live           affect running domain
          --current        affect current domain
      
      Assuming a running $dom with multiple IOThreads assigned and that
      that the $dom has disks assigned to IOThread 1 and IOThread 2:
      
      $ virsh iothreadinfo $dom
       IOThread ID     CPU Affinity
       ---------------------------------------------------
        1               2
        2               3
        3               0-1
      
      $ virsh iothreadadd $dom 1
      error: invalid argument: an IOThread is already using iothread_id '1' in iothreadpids
      
      $ virsh iothreadadd $dom 1 --config
      error: invalid argument: an IOThread is already using iothread_id '1' in persistent iothreadids
      
      $ virsh iothreadadd $dom 4
      $ virsh iothreadinfo $dom
       IOThread ID     CPU Affinity
       ---------------------------------------------------
        1               2
        2               3
        3               0-1
        4               0-3
      
      $ virsh iothreadinfo $dom --config
       IOThread ID     CPU Affinity
       ---------------------------------------------------
        1               2
        2               3
        3               0-1
      
      $ virsh iothreadadd $dom 4 --config
      $ virsh iothreadinfo $dom --config
       IOThread ID     CPU Affinity
        ---------------------------------------------------
          1               2
          2               3
          3               0-1
          4               0-3
      
      Assuming the same original configuration
      
      $ virsh iothreaddel $dom 1
      error: invalid argument: cannot remove IOThread 1 since it is being used by disk 'vde'
      
      $ virsh iothreaddel $dom 3
      
      $ virsh iothreadinfo $dom
       IOThread ID     CPU Affinity
       ---------------------------------------------------
        1               2
        2               3
      
      $ virsh iothreadinfo $dom --config
       IOThread ID     CPU Affinity
       ---------------------------------------------------
        1               2
        2               3
        3               0-1
      1f7e8112
  15. 03 4月, 2015 1 次提交
  16. 02 4月, 2015 2 次提交
  17. 26 3月, 2015 1 次提交
  18. 25 3月, 2015 1 次提交
  19. 18 3月, 2015 2 次提交
    • P
      virsh: domain: Fix the change-media command · f4b5f530
      Peter Krempa 提交于
      The command did not modify the disk type and thus didn't allow to change
      media from a file image to a block backed image or vice versa. In
      addition when operating on a network backed removable devices the
      command would replace the while <source> subelement with an invalid one.
      
      This patch adds the --block option that allows to specify that the new
      image is block backed and assumes that without that option all images
      are file backed. Since network backends were always mangled it should
      not cause problems.
      f4b5f530
    • P
      virsh: domain: Add --print-xml flag for command change-media · 4cbcaffb
      Peter Krempa 提交于
      Allow printing the XML that would be used mostly for debugging purposes.
      4cbcaffb
  20. 17 3月, 2015 1 次提交
    • N
      domifaddr: Add virsh support · 2f36e694
      Nehal J Wani 提交于
      tools/virsh-domain-monitor.c
         * Introduce new command : domifaddr
           Usage: domifaddr <domain> [interface] [--full] [--source lease|agent]
      
           Example outputs:
           virsh # domifaddr f20
           Name       MAC address          Protocol     Address
           -------------------------------------------------------------------------------
           lo         00:00:00:00:00:00    ipv4         127.0.0.1/8
           -          -                    ipv6         ::1/128
           vnet0      52:54:00:2e:45:ce    ipv4         10.1.33.188/24
           -          -                    ipv6         2001:db8:0:f101::2/64
           -          -                    ipv6         fe80::5054:ff:fe2e:45ce/64
           vnet1      52:54:00:b1:70:19    ipv4         192.168.105.201/16
           -          -                    ipv4         192.168.201.195/16
           -          -                    ipv6         fe80::5054:ff:feb1:7019/64
           vnet2      52:54:00:36:2a:e5    N/A          N/A
           vnet3      52:54:00:20:70:3d    ipv4         192.168.105.240/16
           -          -                    ipv6         fe80::5054:ff:fe20:703d/64
      
           virsh # domifaddr f20 eth1 --source lease
           Name       MAC address          Protocol     Address
           -------------------------------------------------------------------------------
           vnet1      52:54:00:b1:70:19    ipv4         192.168.105.201/16
           -          -                    ipv4         192.168.201.195/16
           -          -                    ipv6         fe80::5054:ff:feb1:7019/64
      
           virsh # domifaddr f20 eth0 --source agent --full
           Name       MAC address          Protocol     Address
           -------------------------------------------------------------------------------
           eth0       52:54:00:2e:45:ce    ipv4         10.1.33.188/24
           eth0       52:54:00:2e:45:ce    ipv6         2001:db8:0:f101::2/64
           eth0       52:54:00:2e:45:ce    ipv6         fe80::5054:ff:fe2e:45ce/64
      
      tools/virsh.pod
         * Document new command
      Signed-off-by: NNehal J Wani <nehaljw.kkd1@gmail.com>
      2f36e694
  21. 12 3月, 2015 1 次提交
    • J
      virsh: Add iothreadpin command · 1cfc0a99
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1135491
      
      $ virsh iothread --help
      
        NAME
          iothreadpin - control domain IOThread affinity
      
        SYNOPSIS
          iothreadpin <domain> <iothread> <cpulist> [--config] [--live] [--current]
      
        DESCRIPTION
          Pin domain IOThreads to host physical CPUs.
      
        OPTIONS
          [--domain] <string>  domain name, id or uuid
          [--iothread] <number>  IOThread ID number
          [--cpulist] <string>  host cpu number(s) to set
          --config         affect next boot
          --live           affect running domain
          --current        affect current domain
      
      Using the output from iothreadsinfo, allow changing the pinned CPUs for
      a single IOThread.
      
      $ virsh iothreadsinfo $dom
       IOThread ID    CPU Affinity
      ---------------------------------------------------
       1               2
       2               3
       3               0-1
      
      $ virsh iothreadpin $dom 3 0-2
      
      Then view the change
      
      $ virsh iothreadsinfo $dom
       IOThread ID    CPU Affinity
      ---------------------------------------------------
       1               2
       2               3
       3               0-2
      
      If an invalid value is supplied or require option missing,
      then an error will be displayed:
      
      $ virsh iothreadpin $dom 4 3
      error: invalid argument: iothread value out of range 4 > 3
      
      $ virsh iothreadpin $dom 3
      error: command 'iothreadpin' requires <cpulist> option
      1cfc0a99
  22. 11 3月, 2015 1 次提交
  23. 09 3月, 2015 4 次提交
  24. 06 3月, 2015 1 次提交
    • J
      virsh: Add 'iothreadsinfo' command · f41a5b84
      John Ferlan 提交于
      Add the 'iothreadsinfo' command to display IOThread Info data. Allow for
      [--live] or [--config] options in order to display live or config data
      for an active domain.
      
      $ virsh iothreadsinfo --help
        NAME
          iothreadsinfo - view domain IOThreads
      
        SYNOPSIS
          iothreadsinfo <domain> [--config] [--live] [--current]
      
        DESCRIPTION
          Returns basic information about the domain IOThreads.
      
        OPTIONS
          [--domain] <string>  domain name, id or uuid
          --config         affect next boot
          --live           affect running domain
          --current        affect current domain
      
      An active domain may return:
      
      $ virsh iothreads $dom
       IOThread ID     CPU Affinity
      ---------------------------------------------------
        1               2
        2               3
        3               0
      
      $ echo $?
      0
      
      For domains which don't have IOThreads the following is returned:
      
      $ virsh iothreads $dom
      No IOThreads found for the domain
      
      $ echo $?
      0
      
      For domains which are not running the following is returned:
      
      $ virsh iothreads $dom --live
      error: Unable to get domain IOThreads information
      error: Requested operation is not valid: domain is not running
      
      $ echo $?
      1
      
      Editing a domains configuration and modifying the iothreadpin data for
      thread 3 from nothing provided to setting a cpuset of '0-1' and then
      displaying using --config would display:
      
      $ virsh iothreads f18iothr --config
       IOThread ID     CPU Affinity
       ----------------------------
        1               2
        2               3
        3               0-1
      
      $
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      f41a5b84
  25. 03 3月, 2015 2 次提交
  26. 02 3月, 2015 2 次提交
  27. 25 2月, 2015 2 次提交
  28. 24 2月, 2015 1 次提交
  29. 13 2月, 2015 1 次提交
  30. 09 2月, 2015 1 次提交