Enable AHCI booting and sync Win2008-32 unattended file format

As NT 6.X OS has a limitation that install on non-AHCI hard drive
would result further booting on AHCI BSOD, this is the solution
to fix, per http://support.microsoft.com/kb/922976
and found that Win2008-32 lacks some cmd to update registry(64 has)
so sync it to same as 64bits, replaced some cmd(software install).

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>
virsh_migrate_stress: SKIP test if src and dest URI not defined

Issue #1014.  Skip this test if we haven't redefined the source and
destination URI's.
Merge pull request #1239 from jferlan/virsh_migrate_stress

virsh_migrate_stress: SKIP test if src and dest URI not defined
 guest-os: add RHEL5.10 config

Signed-off-by: Shuping Cui <scui@redhat.com>
virsh_edit: Resolve random/obscure timing failure

Periodically I was getting a failure when the first of the sequence
of virsh_edit's are run in one my long runs using the "--tests virsh"
option. The failing test is/was 'virsh.edit.normal_test.id_option'.
When run alone using "--tests virsh.edit" - the error didn't occur.
After looking at the test for a while I noticed that part of the
processing is to shutdown the guest prior to the last modify_vcpu()
call. Doing that means the 'id' is no longer valid - thus a failure
could occur that wasn't expected. Even after changing that I got a few
more failures and after an attempt to change the sleep() time from 1 to 2
I was directed to the remote.handle_prompts() call which should work.
Merge pull request #1245 from spcui/add_rhel.5.10

 guest-os: add RHEL5.10 config
libguestfs.tests.guestfs_operated_disk: Fix illegal py 2.4 construct

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
tests.multi_queues_test: Fix py 2.4 incompatible construct

Rather than using '0b1', a representation not valid in
python 2.4, use 1, which should go for the same effect.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu.tests.pktgen: Fix py 2.4 incompatible construct

For now, try/except/finally blocks shouldn't be used.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu.tests.baloon_check: Fix test exit condition

Here, the author called out to exit(), which is not
the intended effect. The actual exit condition is
`return`.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1246 from autotest/pylint-fixes

Pylint fixes
Merge pull request #1202 from xiaoqing-wei/ahci-booting

Enable AHCI booting and sync Win2008-32 unattended file format
virttest.libvirt_network_unittest: Fix method valid only on py >= 2.7

Use a more generic method, that will work in older
python implementations.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest unittests: Fix method valid only on py >= 2.7

Use older constructs that will make the tests possible
to work on older python versions.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
lvsb: Fix a bug of binary name for sandbox service.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Merge pull request #1247 from yangdongsheng/lvsbs

lvsb: Fix a bug of binary name for sandbox service.
virttest.utils_conn: Fix wrong arguments passed to exception

According to the constructor of ConnPrivKeyError, such
exceptions should be passed a key file and a stderr.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.utils_conn_unittest: Fix method only valid on py >= 2.7

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1249 from autotest/more-pylint-fixes

More pylint fixes
tests.nicdriver_unload: Make the guest nic also named eth0

When run nicdriver_unload test, will raise error like:
013-04-16 21:35:55: modprobe virtio_net
2013-04-16 21:35:56: [root@unused ~]#
2013-04-16 21:35:56: echo $?
2013-04-16 21:35:56: 0
2013-04-16 21:35:56: [root@unused ~]#
2013-04-16 21:35:56: ifconfig eth4 up
2013-04-16 21:35:56: eth4: unknown interface: No such device
2013-04-16 21:35:56: [root@unused ~]#
2013-04-16 21:35:56: echo $?
2013-04-16 21:35:56: 255
2013-04-16 21:35:56: [root@unused ~]#
2013-04-16 21:35:56: udev: renamed network interface eth0 to eth4

the root cause of this cause is after the nic driver loaded,
the nic name not changed immediately by udev rules, because
the guest is under heavy working pressure.

This patch modify the guest udev net rules before test,
make guest nic always nemed eth0.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>