virt-libvirt: Add test for virsh attach|detach interface.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt: fix problem of checking persistent in virsh.net_state_dict().

When network is transient, net_autostart() will raise.
The next step will try to get "transient" in result_object.
While error messages may not be in stderr but exist in result
object indeed:

 * Command:
 net-autostart default --disable
 Exit status: 1
 Duration: 0
 stdout:
 error: failed to unmark network default as autostarted
 error: Requested operation is not valid: cannot set autostart
        for transient network

Message "transient" exists, but stderr is None.
So search "ranient" in whole result object will be more suitable.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt_vm: give a choice on starting serial console automatically.

In start()&create() of VM class, they will start
serial console automatic when vm is started.
It will prevent other test from using console.
So give a choice on starting serial console automatically.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt-libvirt: Standardize VMXML device package module handling

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Base classes for VMXML devices

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Add VMXML serial device base class

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Add xml validation method and property

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Add device manipulation to vm_xml module

Signed-off-by: Chris Evich <cevich@redhat.com>
Fix: slots should add a special list, not a string.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Fix: find_module should be given a list include pathes.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Add Serial class for libvirt_xml/devices/serial module.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Change the implement of get_devices in vm_xml module.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt-libvirt: Change libvirt_xml API (virsh parameter order)

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: Improve vm_xml device support + unittests

* Add ability to compare LibvirtXMLBase derived instances
* Fixed indentation problems in libvirt_xml.devices.librarian
* Added ability to create devices from ElementTree elements
* Added simplistic input element XML validation
* Simplified Serial device class hierarchy
* Added new unittests for serial devices
* Added new unittests for vm_xml device enumeration / comparison
* Added stub modules for all devices classes
* Added address pseudo-device support
* Added unittests to verify no class steps on address-class properties
* Added unittest tearDown() to cleanup from any library module
  inter-test changes
* Added basic address pseudo-device unittest
* Added simplified address pseudo-device to take
  simple dictionary of attributes
* Fixed virsh_instance parameter-order issues

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Accessors module cleanups

* Fixed a docstring
* Improved error reporting for missing accessor generator parameters
* Avoid forcing subclass extended parameter value type to be str
virt-libvirt: Add remaining libvirt_xml serial device properties

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Generic-ify character device XML support

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Character XML bugfix and unittests

Signed-off-by: Chris Evich <cevich@redhat.com>
qemu.tests.qemu_guest_agent: Install dependent DLL files with script

The previous patches for adding windows support of qemu-guest-agent
depend on a guest image in which user has installed necessary DLL
files.

This patch tries to install these DLLs by test script, so that to
we can test this feature with a fresh windows system.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests.cfg: Fix the config of qemu guest agent test

The previous patch introduced a bug in the qemu-ga.exe path.
This patch tries to fix this problem.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>