virttest.qemu_vm: Raise VMConfigMissingError for 9p cfgs

The original VMCreateError exception arguments are incorrect.
And actually these 2 places should raise a VMConfigMissingError.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virttest.qemu_monitor: Implement MonitorConnectError class

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virttest.qemu_vm: Add missing definition of exception

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virttest.utils_test: get_linux_ifname - Make sys_method more robust

Sometimes, /sys/class/net may contain files (such as bonding_masters,
if the bonding module is loaded). So, let's handle the ShellCmdErrors
that might arise when trying to list the mac address of the interfaces.

Also, if no suitable interfaces were found, just return None.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.utils_test: get_linux_ifname - Introduce ip link method

Try to use ip link in case ifconfig didn't work. Looking
on /sys would be the last resource.

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
libvirt tests.cfg: Remove OS definition

Since this prevents running things with the test runner
with other guests.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
fix of assigning multiple netdev_extra_params

Currently we added a comma for netdev_extra_params in framework,
if we want to add multiple parameters in more than one times,
we should not use comma prefix in first parameter string.

eg. add multiple parameters more than one times:
  netdev_extra_params = "vhost=on"
  netdev_extra_params += ",sndbuf=512"

This patch moved the comma out of framework, then we can
set the parameter conveniently. We don't care about if it's the
first assignment, just using comma prefix for all params strings.

Signed-off-by: Amos Kong <akong@redhat.com>
virt-libvirt: Be helpful with old-libvirt installs

Signed-off-by: Chris Evich <cevich@redhat.com>
virsh_unittest.py: Avoid failures when virsh is not installed

We shouldn't take the virsh bin for granted when running this
unittest. Use a trick similar to the one used in other test
and skip the test that depends on it directly.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt: Allow virsh.resume to return CmdResult.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt-libvirt: Add configuration for virsh resume test.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt-libvirt: Add test module for virsh resume.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>