qemu.tests.cpu_hotplug: Make cpu hotplug command configurable.

cpu_set command will be removed in new qemu. So make cpu hotplug
 command configurable.

'cpu_set 1 online' will always sent out as human monitor command no matter
 qmp support cpu_set or not.

Update it to 'cpu_set cpu=1,state=online'. send_args_cmd() will transfer
it to correct human monitor command 'cpu_set 1 online'. Or correct qmp
monitor command if qmp support it.

Signed-off-by: Feng Yang <fyang@redhat.com>
tests.netperf: Update iptables stop command to ignore fail status

In some host 'service iptables stop' command exit with error code 5.
It will fail our case.

Signed-off-by: Feng Yang <fyang@redhat.com>
shared.cfg.guest-os.Windows: Ignore post_cmd status in multi_disk case

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest.utils_misc: Add cpu model Opteron_G5 to get_host_cpu_models

Add the new AMD cpu model to the the cpu_model list.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Merge pull request #654 from ypu/cpumodel

virttest.utils_misc: Add cpu model Opteron_G5 to get_host_cpu_models
env_process: preprocess_vm start_vm fix.

(1). Introduce a param named "kill_vm_before_test".
(2). Fix when restart_vm=yes.
(3). Fix when vm need to paused.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Add kill_vm_before_test=no in base.cfg

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Merge pull request #577 from FengYang/fix

tests.netperf: Update iptables stop command to ignore fail status.
virttest.env_process: Remove unused import libvirt_vm

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Merge pull request #620 from ypu/libvirtd

virttest.env_process: Remove the unused import
disable hdparm test for virtio-scsi disk

hdparm can't read sensor data from virtio-scsi disk, so disable it;

Signed-off-by: Xu Tian <xutian@redhat.com>
qemu.tests: disable lsi device on Host_RHEL6.5 and Host_RHEL7.0

since lsi device is not support by RHEL6.5 and RHEL.7.0 host, so disable
it; And disable virtio-scsi on WinXP guest because it not support too;

Signed-off-by: Xu Tian <xutian@redhat.com>
virttest: fix save_to_file time when use qmp monitor

when QMP monitor used, migrate complete check always failed until
timeout; This commit update check method and raise QemuMigrationTimeout
expection when migrate timeout;

Signed-off-by: Xu Tian <xutian@redhat.com>
virt.tests.jumbo : Fix some issues of jumbo test

make a check before delete an arp item.
using 'get_win_wol' to get the drive number of win_utils

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
Merge pull request #664 from humanux/jumbo

virt.tests.jumbo : Fix some issues of jumbo test
Merge pull request #659 from xutian/small_fix

Some small fix
shared.deps.finish.bat: Add vds service start in finish.bat

Start this service to ignore diskpart failed in some windows guests
like win2003.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Acked-by: Xiaoqing Wei <xwei@redhat.com>
tests: Add a function for copy image from nfs when install failed

As this is a prepare case for test loops, we should make sure there
is a good image for the rest of the tests. So will copy images from nfs
if this case failed.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
shared.unattended: Make win2008r2 support key during installation.

Multiple Activation Key (MAK) could not work in 2008r2
 answer file in the WindowsPE phase of setup.
Always get following error:
The unattend answer file contains an invalid product key.
Either remove the invalid key or provide a valid product key in
 the unattend answer file to proceed with Windows Installation

So add key in Microsoft-Windows-Shell-Setup in component.
http://technet.microsoft.com/en-us/library/cc749389%28v=ws.10%29.aspx

Signed-off-by: Feng Yang <fyang@redhat.com>
Acked-by: Suqin Huang <shuang@redhat.com>
tests: Read serial output from the log file in unattended_install

Read serial output from vm.serial will loss infos when do migrate
operates. The migrate will start new session when boot up the dst
guest. And the infos from src guest will loss in checkout step.
This will cause the case can not get the finish strings. So use
serail log file to instead it.

changes from v1:
   - move fd.close to finally branch to ignore the multi open
     problem
changes from v2:
   - to ignore the try:except:finally problem in python 2.4
     use a old method.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Acked-by: Qingtang Zhou <qzhou@redhat.com>