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>
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>
Update interface xml defination.

Add link_state attribute.
Remove portgroup attribute, since it is already in source dict.
Change bandwidth defination to a class.
virttest.utils_test.libvirt: add utility for VM migration

Signed-off-by: Alex Jia <ajia@redhat.com>
Change interface driver defination to a class.
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>
Guest grub file modification.

Use grub file in boot patition instead of symbolic link file in /etc/,
since the link file may be corrupted or not exist some times.
Sync the file system after file modification for disk synchronization.
vol_xml: Catch exception if format not exist in volume XML

For some types pool(logical, e.g.), volume xml may not contain 'format'
element, so set it to None instead of raise an exception.

Signed-off-by: Yanbing Du <ydu@redhat.com>
Merge pull request #1895 from FengYang/python2.4

Python2.4
pool_xml: Add pool target permission elements

Signed-off-by: Yanbing Du <ydu@redhat.com>
virttest.utils_misc: add function to format disk in guest

Signed-off-by: Xu Tian <xutian@redhat.com>
Merge pull request #1897 from will-Do/vol_info_fix

vol_xml: Catch exception if format not exist in volume XML
Merge pull request #1866 from yumingfei/unit_migration

Support to create VM objects for migrate_vms.
Merge pull request #1882 from chuanchang/do_migration

virttest.utils_test.libvirt: add utility for VM migration
Merge pull request #1898 from rbian/libvirt_vm

Guest grub file modification.
Merge pull request #1900 from xutian/format_disk

virttest.utils_misc: add function to format disk in guest
Merge pull request #1891 from rbian/interface_xml

update interface xml.
Merge pull request #1899 from will-Do/pool_xml

pool_xml: Add pool target permission elements