virttest: fix login refused when nettype is user

when nettype is 'user' localhost used as hostname by default, and login
windows guest via nc failed; fix it by get hostname/IP address via
socket module;

Signed-off-by: Xu Tian <xutian@redhat.com>
virttest.data_dir: add interface to get deps dir

Signed-off-by: Xu Tian <xutian@redhat.com>
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>
qemu.tests: new case for timedrift testing

changes from V1:
    1. fix typo and update doc strings

Signed-off-by: Xu Tian <xutian@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>