Skip to content

KVMAutotest InstallPrerequesitePackagesClient

Lucas Meneghel Rodrigues edited this page Nov 4, 2011 · 4 revisions

Install KVM autotest prerequesite packages (client)

We need git, not available on RHEL repos. So, on RHEL hosts run first:

rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

To install EPEL repos. It is important to note that EPEL is needed with the sole purpose of providing a git RHEL package. If you can manage to install git from somewhere else, then this is not necessary. Check here for up to date EPEL RPM repo location.

Install the following packages:

yum install git

So you can checkout the source code.

yum install qemu-kvm qemu-kvm-tools

The qemu-kvm-tools package provides the kvm_stat profiler used to generate debug data for the tests. If you don't want or need that sort of debug information generated, you can disable the kvm_stat profiler learn more about profilers

yum install bridge-utils dnsmasq

bridge-utils is needed for KVM autotest to bring the internal bridge up, and dnsmasq to make it serve dhcp adresses to the VMs. If you want to use your own bridge, you can use another bridge you have configured.

yum install mkisofs

For newer distros, such as Fedora, you'll need:

yum install genisoimage

Both packages provide the same functionality, needed to create iso images that will be used during the guest installation process. You can also execute

yum install python-imaging

Not vital, but very handy to do imaging conversion from ppm to jpeg and png (allows for smaller images).

yum install git gcc kernel-devel SDL zlib gnutls make bridge-utils alsa-lib SDL-devel alsa-lib-devel zlib-devel pkgconfig libgcrypt-devel dev86 iasl

Those other packages are needed if you are going to build kvm from source. Also, you might want to run the qemu-kvm unittests. In that case, make sure you install:

yum install boost-devel.i686 glibc-devel.i686 gcc-c++

It is important to note that we do need the .i686 version of the packages, even on a 64-bit OS, as some of the unittests are 32-bit specific. The unittests are built on top of boost, a C++ library, so g++ is needed as well.

Last bug not least, now we depend on libvirt to provide us a stable, working bridge:

yum install libvirt

Make sure libvirtd is started:

[lmr@freedom autotest.lmr]$ service libvirtd start

Make sure the libvirt bridge shows up on the output of brctl show:

[lmr@freedom autotest.lmr]$ brctl show
bridge name bridge id       STP enabled interfaces
virbr0      8000.525400678eec   yes     virbr0-nic
Clone this wiki locally