Testing KVM with kvm autotest

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(update for minor upstream config file change)
Line 21: Line 21:
  # FIXME: this is lame, just disables kvm_install
  # FIXME: this is lame, just disables kvm_install
  $> sed -e 's/^\(job.run_test\)/#\1/' < control > control.fedora
  $> sed -e 's/^\(r = job.run_test\)/#\1/' < control > control.fedora

Revision as of 17:02, 21 April 2009

kvm-autotest is an effort by KVM developers to create a suite of regression tests for KVM.

Fedora virtualization testers can help improve KVM by running kvm-autotest on their own hardware. The kvm-autotest wiki contains some instructions on doing this, but to get started quickly try the following:

 $> yum install qemu-system-x86 qemu-img

 $> mkdir -p ~/autotest/iso && cd ~/autotest/iso
 $> wget http://download.fedoraproject.org/pub/fedora/linux/releases/8/Fedora/i386/iso/Fedora-8-i386-DVD.iso
 $> cd ..
 $> git clone git://git.kernel.org/pub/scm/virt/kvm/kvm-autotest.git

 $> mkdir -p /tmp/kvm_autotest_root/{iso/linux,images}
 $> ln -s ~/autotest/iso/Fedora-8-i386-DVD.iso /tmp/kvm_autotest_root/iso/linux/
 $> ln -s /usr/bin/qemu-kvm /tmp/kvm_autotest_root/qemu
 $> ln -s /usr/bin/qemu-img /tmp/kvm_autotest_root/qemu-img

 $> cd kvm-autotest/client/tests/kvm_runtest_2
 $> cp kvm_tests.cfg.sample kvm_tests.cfg

 # FIXME: this is lame, just disables kvm_install
 $> sed -e 's/^\(r = job.run_test\)/#\1/' < control > control.fedora

and then as root:

 $> ../../bin/autotest ./control.fedora

Any errors encountered should be reported via bugzilla.

Note: this requires Fedora rawhide and at least qemu-0.10-5.fc11.