virt-libvirt: Remove disused VM methods

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Fixup some unittest whitespace

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Implement libvirt_xml.devices.disk

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Rename address device property

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: XMLAttribute accessor behavior fix

All other "get" accessors raise xcepts.LibvirtXMLNotFoundError when
their data doesn't exist.  If this returns None, then caller may
mistake the value as None, when there is no value.

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: Fix broken restore() functionality

* The backup/restore logic inherrited by xml_utils.XMLTreeFile
  is backwards from the perspective of a caller.
* xml_utils.XMLTreeFile must re-parse the tree after restoring
  from the backup.
* Provide restore() convenience method so test code doesn't
  need to access xmltreefile attribute directly.

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Don't take screenshots of dead VMs

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Fix short login timeout before reboot

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Implement libvirt_xml.devices.disk

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libguestfs: Add 'EDITOR' set in control file

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt: Add functions to get first nic of domain

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt: Add virt_cmd function in utils_libguestfs module

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt-libguestfs: Add test for virt-sysprep command

1. Clone a guest and login this guest to do some actions
2. Execute virt-sysprep to reset or unconfigure a virtual
   machine so clones can be made
3. Confirm reset result.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>