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>
Support to create VM objects for migrate_vms.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.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.
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>
Change interface driver defination to a class.
virttest.qemu_qtree: decode LUN when LUNs more that 255

Signed-off-by: Xu Tian <xutian@redhat.com>
libvirt_xml: Add a function to delete memoryBacking tag.

del_memoryBacking_tag() can delete memoryBacking tag for specific vm,
and it's paired with add_memoryBacking_tag().
Merge pull request #1877 from PandaWei/hugepage

libvirt_xml: Add a function to delete memoryBacking tag.
Merge pull request #1878 from PandaWei/del_except

libvirt_xml: add try/except for remove_by_xpath() failure
Merge pull request #1881 from ypu/guest-hw

shared.cfg: Add three e1000 nic in guest-hw.cfg
Merge pull request #1872 from will-Do/iscsi_login

iscsi: Fix localhost iscsi target login bug
Merge pull request #1885 from waynesun09/snapshot_xml

virttest.libvirt_xml: Add snapshot XML parser module
virttest.utils_misc: Update invalid syntax for python 2.4 in rhel5 host.

Signedble = 1 if enable else 0
  File "<stdin>", line 1
    cpu_enable = 1 if enable else 0
                    ^
SyntaxError: invalid syntax

-off-by: Feng Yang <fyang@redhat.com>
Signed-off-by: Feng Yang <fyang@redhat.com>
virttest.qemu_storage: Change the way used to check image_cluster_size set or not.

check image_cluster_size by:
 if image_cluster_size:
So image_cluster_size = will think as not set.

Signed-off-by: Feng Yang <fyang@redhat.com>