libvirt.tests: Add a case for iscsi disk hotplug testing

Signed-off-by: Yanbing Du <ydu@redhat.com>
libguestfs.tests: Recover to vdx if listed disk is virtio.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libguestfs.tests: Make vm is down before testing.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
guestfish.tests: Fix wrong vm setting for cloned vm.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libguestfs.tests: Check only volume name in vm.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Fix missed configurations.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Modify get_disk_attr function according to PR#1780
Fix some bugs on rhel6.
Modify iscsi device creation method; delete usb tablet device before add it.
Modify operations on osxml according virt-test#1790.
virsh_attach_detach_disk: Add a case to cover ejcet CDROM after attach cdrom

Signed-off-by: Yanbing Du <ydu@redhat.com>
virsh_attach_detach_disk: Support attach|detach disk image format

1. Using qemu_storage.QemuImg to create disk image, which can specified
the image format.
2. Add a sub-case to test qcow2 disk image attach|detach.

Signed-off-by: Yanbing Du <ydu@redhat.com>
virsh_attach_detach_disk: Add a negative case to test IDE disk hotplug

Signed-off-by: Yanbing Du <ydu@redhat.com>
virsh_attach_detach_disk: Add a case to attach logical volume

Signed-off-by: Yanbing Du <ydu@redhat.com>
virsh_attach_device: Add a negative to test invalid disk type

1. Attach-device will fail if disk type is invalid.
2. For this test, virsh cmd will fail but stderr doesn't have
'XML error' key words, and the XML content is really import for
this command, so always output it.

Signed-off-by: Yanbing Du <ydu@redhat.com>
virsh_attach_detach_disk: Restart libvirtd after attach disk

Signed-off-by: Yanbing Du <ydu@redhat.com>
virsh_attach_detach_disk: Using exist method to create image

Signed-off-by: Yanbing Du <ydu@redhat.com>
Remove 0x prefix for wwn option, as some libvirt version doesn't suppport it.
start: Prevent grep its own process

Although confined by the process id, there is still a great probability
(~10%) `grep` can sieze its owner process because the predictable
process count of a newly started OS, like:
```
2014-08-12 11:12:59: [root@localhost ~]# ps 241 |grep 'sleep 1000'
2014-08-12 11:12:59:   241 pts/0    S+     0:00 grep --color=auto sleep 1000
```

This patch using a trick to solve this problem.

Signed-off-by: Hao Liu <hliu@redhat.com>
libvirt.tests: libvirt.tests: add test cases for libivirtd access via UNIX, SSH, TLS and TCP transports

Signed-off-by: Alex Jia <ajia@redhat.com>