virttest: Call utils_net.update_mac_ip_address() in vm.create() when mac_changeable set to yes

Sometime we directly call vm.create() to create a VM. mac_changeable could not work
in this situation. As it only used in qemu test so move utils_net.update_mac_ip_address()
to vm.create() function.

If other test need support mac_changeable later, we can call  update_mac_ip_address
in its start() function.

Signed-off-by: Feng Yang <fyang@redhat.com>
shared.cfg: update path of windows finished program

Signed-off-by: Xu Tian <xutian@redhat.com>
virt: Expose mount and umount functions for class Nfs

Signed-off-by: Yanbing Du <ydu@redhat.com>
virttest.libvirt_storage: Add more pool types define-as functions

Signed-off-by: Yanbing Du <ydu@redhat.com>
utils_test.libvirt: Add functions to setup/cleanup nfs/iscsi env and define some pool types

Signed-off-by: Yanbing Du <ydu@redhat.com>
virttest.virsh: Add a series of pool commands

Signed-off-by: Yanbing Du <ydu@redhat.com>
Merge pull request #1407 from autotest/1181

PR 1181 remake
virttest.staging: Add lv_utils

As a recent patchset introduced a dependency on lv_utils,
now we have to replicate it to staging, so people using
the autotest 0.14 RPMs can still use the test suite.

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

virttest.staging: Add lv_utils
virt: adds thread name for better identify of hanging threads.

it adds 10 chars from command to thread name.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds possibility to send args to autotest executed in guests

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds install_pkg.control for installing package guest

It uses autotest.client.software_manager

example:
   - @st-install_pkg:
         only autotest.install_pkg
         Fedora:
         	  test_control_args = "gcc patch make"
         Ubuntu:
            test_control_args = "gcc.. patch make"

This example install gcc patch make package in different distribution.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Changes fio test to be more flexible and configurable using args

It needs new version of fio test in client.tests.fio
It stay compatible with old version but args will not be used.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
Merge pull request #1408 from autotest/1186

PR 1186 remake
virttest.virsh: Add virsh filter group functions

Add five network filter functions under filter group

Signed-off-by: Wayne Sun <gsun@redhat.com>
virttest.utils_test: Add load_python_module method

The get method in virttest.libvirt_xml.devices.librarian is
for load python module in certain path with given name, the name
is restricted in pre-defined type list. When adding network filter
rule protocol xml modules, also need to use this method to load
specific protocol xml module. So extract the get method and put it
into utils_test as load_python_module for common use.

Update get method in virttest.libvirt_xml.devices.librarian to
use the new load_python_module method, which will not broken exist
modules and tests.

Add librarian module for network filter protocols, which only have
one get method to use the load_python_module for load specific
network filter protocol xml module.

Signed-off-by: Wayne Sun <gsun@redhat.com>
virttest.libvirt_xml: Add network filter rule protocol modules under nwfilter_protocols

Add 24 libvirt nwfilter protocols modules for supported types.

This is for cover nwfilter rule protocols in page:
http://libvirt.org/formatnwfilter.html#nwfelemsRulesProto

Note:
Total number of libvirt supported protocols is 25, only igmp-ipv6
(fail for define, need confirm bug) is not included in this commit.

Signed-off-by: Wayne Sun <gsun@redhat.com>
virttest.libvirt_xml: Add nwfilter xml module

Module simplifying manipulation of XML described at
http://libvirt.org/formatnwfilter.html

Signed-off-by: Wayne Sun <gsun@redhat.com>
Merge pull request #1410 from autotest/1194

PR 1194 remake
virttest.test_setup: Updates to the KSMConfig class

Signed-off-by: Fergus Yu <yumingfei@cn.fujitsu.com>