add logging infrastructure

Add a logs dict to the vm object where one can just throw in names and unix
sockets to have the bits written out to a logfile.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
add seabios logging

Create isa-debugcon device to get seabios output logged.
Gets added unconditionally if supported by qemu.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
start vm after log setup

Ask qemu to start in stopped state (via -S), then start the guest via cont
monitor command.  This allows us to finish logging setup before the guest
actually runs, so we don't loose early seabios output.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
kvm: Fix vm.add_nic() bug from vmnet list/dict ambeguity

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: add fail test

Signed-off-by: Chris Evich <cevich@redhat.com>
ltp: Use absolute paths to copy.

The relative locations between bindir and srcdir have changed.

Signed-off-by: Vinson Lee <vlee@twitter.com>
virt test: Fix bug global name 'blkdebug' is not defined in kvm_storage.py

Signed-off-by: Feng Yang <fyang@redhat.com>
KVM-Test: kvm_test_utils: add function for updating grub

Changes from v1:
Add error context mechanism.
Add docstring for parameters introduction.
Use 'os_type'.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Signed-off-by: Amos Kong <akong@redhat.com>
Signed-off-by: Feng Yang <fyang@redhat.com>
add anaconda logging

Anaconda in recent fedora versions sends logs to the virtio serial port named
'org.fedoraproject.anaconda.log.0' if present.  Wind up autotest logging for it.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
KVM Test: usb_storage: Ignore letter case when checking removable option

The pattern string for removable option in usb_storage
test script isn't suitable for RHEL5 guest. Thus ignore
the letter case when checking this option.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Acked-by: Feng Yang <fyang@redhat.com>
KVM Test: usb_storage: Disable io_size check in RHEL5 guest

According to the doc [1], the {minimum,optimal}_io_size
options are only for RHEL6 kernel, so disable them in
RHEL5 guest.

[1] http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newstorage-iolimits.html

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Acked-by: Feng Yang <fyang@redhat.com>
virt.cfg: Update config for kernel_install

Update the default and example config for kernel_install case

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
client.tests: kernelinstall: Update control file

Update the control file for kernelinstall test:
 - Correct a typo in control file
 - Update params dict, adding some example in it.
 - Remove unused function.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virt.kvm_vm: Check if qemu support 'boot' parameter for drive option

Since 'boot' parameter for 'drive' option is obsoleted, Adding some
checking step to remove this parameter when using newer qemu version.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virt.cfg: update netdev_peer_re for RHEL6

The original regex pattern netdev_peer_re gets a '\r'
charactor by mistake, it makes autotest framework
crash when parsing error message.

This patch updates this regex pattern, getting rid
of the special charactor at the end of string.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Acked-by: Feng Yang <fyang@redhat.com>
virt: Update sample linux test sets to use virtio drivers

These days, the current versions of Ubuntu ship sufficiently
new qemu, also, we had a recent patch that only adds boot=on/off
if qemu supports it. So now, finally, it *should* be
safe to have virtio_net and virtio_blk on the default
sample test sets for linux.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
dbench: Fix patch file location.

Signed-off-by: Vinson Lee <vlee@twitter.com>
dbench: Compile with pthread instead of lpthread.

Fix build on Ubuntu 11.10 and Ubuntu 12.04.

Tested that dbench still builds with Ubuntu 11.04, CentOS 5, CentOS 6,
and Fedora 17.

Signed-off-by: Vinson Lee <vlee@twitter.com>
iozone: Fix patch file location.

Signed-off-by: Vinson Lee <vlee@twitter.com>
virt: To run ltp tests on guest

Signed-off-by: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com>