(1) command end with show error msg. [root@bx603 .libs]# xm vcpu-list vm1 Error: an integer is required Usage: xm vcpu-list [] List the VCPUs for a domain or all domains. [root@bx603 .libs]# ./virsh vcpuinfo vm1 error: Domain shut off, virtual CPUs not present. error: GET operation failed: 500 status from xen daemon: /xend/domain/vm1?op=vcpuinfo:(xend.err 'an integer is required') [root@bx603 .libs]# ./virsh vcpupin vm1 0 0,1 error: POST operation failed: xend_post: error from xen daemon: (xend.err "int() argument must be a string or a number, not 'NoneType'") [root@bx603 .libs]# xm vcpu-list vm1 Error: an integer is required Usage: xm vcpu-list [] List the VCPUs for a domain or all domains. [root@bx603 .libs]# ./virsh vcpuinfo vm1 error: Domain shut off, virtual CPUs not present. error: GET operation failed: 500 status from xen daemon: /xend/domain/vm1?op=vcpuinfo:(xend.err 'an integer is required') (2) command end normaly but can't set cpu affnity. [root@bx603 .libs]# xm vcpu-list vm1 Name ID VCPU CPU State Time(s) CPU Affinity vm1 19 0 3 -b- 5.1 any cpu vm1 19 1 1 r-- 4.2 any cpu [root@bx603 .libs]# ./virsh vcpuinfo vm1 VCPU: 0 CPU: 2 State: running CPU time: 5.9s CPU Affinity: yyyy VCPU: 1 CPU: 3 State: idle CPU time: 4.8s CPU Affinity: yyyy [root@bx603 .libs]# ./virsh vcpupin vm1 0 0,1 [root@bx603 .libs]# echo $? 0 [root@bx603 .libs]# xm vcpu-list vm1 Name ID VCPU CPU State Time(s) CPU Affinity vm1 19 0 2 -b- 9.1 any cpu vm1 19 1 0 -b- 6.1 any cpu [root@bx603 .libs]# ./virsh vcpuinfo vm1 VCPU: 0 CPU: 2 State: idle CPU time: 9.1s CPU Affinity: yyyy VCPU: 1 CPU: 2 State: idle CPU time: 6.1s CPU Affinity: yyyy (3) command end with show error msg. [root@bx603 .libs]# xm vcpu-list vm1 Error: an integer is required Usage: xm vcpu-list [] List the VCPUs for a domain or all domains. [root@bx603 .libs]# ./virsh vcpuinfo vm1 error: Domain shut off, virtual CPUs not present. error: GET operation failed: 500 status from xen daemon: /xend/domain/vm1?op=vcpuinfo:(xend.err 'an integer is required') [root@bx603 .libs]# ./virsh vcpupin vm1 0 0,1 error: POST operation failed: xend_post: error from xen daemon: (xend.err "int() argument must be a string or a number, not 'NoneType'") [root@bx603 .libs]# echo $? 1 [root@bx603 .libs]# xm vcpu-list vm1 Error: an integer is required Usage: xm vcpu-list [] List the VCPUs for a domain or all domains. [root@bx603 .libs]# ./virsh vcpuinfo vm1 error: Domain shut off, virtual CPUs not present. error: GET operation failed: 500 status from xen daemon: /xend/domain/vm1?op=vcpuinfo:(xend.err 'an integer is required') (4) command end normaly but can't set cpu affnity. [root@bx603 .libs]# xm vcpu-list vm1 Name ID VCPU CPU State Time(s) CPU Affinity vm1 20 0 1 -b- 5.3 any cpu vm1 20 1 2 -b- 5.8 any cpu [root@bx603 .libs]# ./virsh vcpuinfo vm1 VCPU: 0 CPU: 0 State: idle CPU time: 5.3s CPU Affinity: yyyy VCPU: 1 CPU: 2 State: idle CPU time: 5.8s CPU Affinity: yyyy [root@bx603 .libs]# ./virsh vcpupin vm1 0 0,1 [root@bx603 .libs]# echo $? 0 [root@bx603 .libs]# xm vcpu-list vm1 Name ID VCPU CPU State Time(s) CPU Affinity vm1 20 0 2 -b- 9.1 any cpu vm1 20 1 2 -b- 7.8 any cpu [root@bx603 .libs]# ./virsh vcpuinfo vm1 VCPU: 0 CPU: 2 State: idle CPU time: 9.1s CPU Affinity: yyyy VCPU: 1 CPU: 1 State: idle CPU time: 7.8s CPU Affinity: yyyy