virttest.qemu_vm: add virtio-rng-device support

Signed-off-by: Xu Tian <xutian@redhat.com>
virttest: Add support for set up private openvswitch bridge in test machine

Add a class in test_setup.py to support set up private openvswitch bridge
in the host for our tests. Also fixed a problem that in clean up the
private bridge will not init with params, lead to the private bridge name will
always be the default value.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest.test_setup: add setup egp.pl on localhost support

Signed-off-by: Xu Tian <xutian@redhat.com>
shared.deps: add egd server source code

Signed-off-by: Xu Tian <xutian@redhat.com>
shared.cfg: add cfg to no virtio-rng device by default

Signed-off-by: Xu Tian <xutian@redhat.com>
virttest.qemu_vm: Add strict parameter for boot option

Sometimes we need do strict boot via strict=on to skip to boot from
un-selected devices.

Signed-off-by: Shuping Cui <scui@redhat.com>
virttest: add new function to utils_misc

get guest disk free space and memory free size

Signed-off-by: Xu Tian <xutian@redhat.com>
shared.cfg: Small fix, add a missing parameter

Signed-off-by: Shuping Cui <scui@redhat.com>
Support to create VM objects for migrate_vms.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest.utils_misc: Use RLock to protect _open_log_files

Signed-off-by: Feng Yang <fyang@redhat.com>
virt.shared.cfg: remove guest spicial configuration

Signed-off-by: Xu Tian <xutian@redhat.com>
iscsi: Fix localhost iscsi target login bug

By default, 'hostname' will be used as portal, and it will get timeout
when login this target while host ipv6 enabled:
Logging in to [iface: default, target: XXXX, portal: fe80::baac:6fff:fe3b:9aa,3260] (multiple)
iscsiadm: Could not login to [iface: default, target: XX, portal: fe80::baac:6fff:fe3b:9aa,3260].
iscsiadm: initiator reported error (8 - connection timed out)

So use 'localhost' to discover and login the target will get rid of
this problem.

Signed-off-by: Yanbing Du <ydu@redhat.com>
utils_test.libvirt: Check gluster command before use it

1. Check if 'gluster' command exist on the host
2. Remove an unused variable

Signed-off-by: Yanbing Du <ydu@redhat.com>
Update interface xml defination.

Add link_state attribute.
Remove portgroup attribute, since it is already in source dict.
Change bandwidth defination to a class.
libvirt_xml: add try/except for remove_by_xpath() failure

del_devices() and remove_all_graphics() maybe suffer from exceptions.
such as, AttributeError and TypeError.
If no element in specified xml file and deleting operation fails,
then use the except block to ignore the error.
virttest.env_process: Add default value to kernel_extra_params related parameters

Add "" as default value for kernel_extra_params_add and kernel_extra_params_remove.
Otherwise it will report TypeError later when we try to add kernel options to them.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
shared.cfg: Add three e1000 nic in guest-hw.cfg

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest.utils_test.libvirt: add utility for VM migration

Signed-off-by: Alex Jia <ajia@redhat.com>
virttest.libvirt_xml: Add snapshot XML parser module

Signed-off-by: Wayne Sun <gsun@redhat.com>
virttest.nfs: support NFS client setup

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