Skip to content

RunGetStartedScript

Lucas Meneghel Rodrigues edited this page Sep 25, 2012 · 1 revision

Run the script get_started.py, located inside the kvm test directory:

cd <autotest_root>/client/tests/kvm
./get_started.py

This script will help you to get started, using the KVM test default set. Now, it's important to understand what we chose to run as the default set:

  • Guest OS: Latest release of Fedora
  • OS install, boot, shutdown tests
  • The test will try to use the installed qemu-kvm and qemu-img on your system, located under /usr/bin.
  • Important: RHEL installs qemu-kvm under /usr/libexec/qemu-kvm, so you might want to change that on tests.cfg or create a symlink.

The defaults are intended to help you to get started as soon as possible. Of course, if you want to experiment you need to edit the configuration files. The script will offer to download the iso files, in case it can't find a correct iso file where it expects the file to be. Here is an example execution of the script:

22:13:10 INFO | KVM test config helper
22:13:10 INFO |
22:13:10 INFO | 1 - Verifying directories (check if the directory structure expected by the default test config is there)
22:13:10 DEBUG| Dir /tmp/kvm_autotest_root/images exists, not creating
22:13:10 DEBUG| Dir /tmp/kvm_autotest_root/isos exists, not creating
22:13:10 DEBUG| Dir /tmp/kvm_autotest_root/steps_data exists, not creating
22:13:10 INFO |
22:13:10 INFO | 2 - Creating config files from samples (copy the default config samples to actual config files)
22:13:10 DEBUG| Creating config file /home/lmr/Code/autotest-git/client/tests/kvm/build.cfg from sample
22:13:10 DEBUG| Creating config file /home/lmr/Code/autotest-git/client/tests/kvm/cdkeys.cfg from sample
22:13:10 DEBUG| Creating config file /home/lmr/Code/autotest-git/client/tests/kvm/tests_base.cfg from sample
22:13:10 DEBUG| Creating config file /home/lmr/Code/autotest-git/client/tests/kvm/tests.cfg from sample
22:13:10 DEBUG| Creating config file /home/lmr/Code/autotest-git/client/tests/kvm/unittests.cfg from sample
22:13:10 DEBUG| Creating config file /home/lmr/Code/autotest-git/client/tests/kvm/virtio-win.cfg from sample
22:13:10 INFO |
22:13:10 INFO | 3 - Verifying iso (make sure we have the OS ISO needed for the default test set)
22:13:10 INFO | Found /tmp/kvm_autotest_root/isos/linux/Fedora-15-x86_64-DVD.iso
22:13:10 INFO | Expected SHA1 sum: 61b3407f62bac22d3a3b2e919c7fc960116012d7
22:13:10 INFO | Would you like to check /tmp/kvm_autotest_root/isos/linux/Fedora-15-x86_64-DVD.iso? It might take a while (y/n) n
22:13:11 INFO | File /tmp/kvm_autotest_root/isos/linux/Fedora-15-x86_64-DVD.iso present, but chose to not verify it
22:13:11 INFO |
22:13:11 INFO | 4 - Verifying winutils.iso (make sure we have the utility ISO needed for Windows testing)
22:13:11 INFO | In order to run the KVM autotests in Windows guests, we provide you an ISO that this script can download
22:13:11 INFO | Found /tmp/kvm_autotest_root/isos/windows/winutils.iso
22:13:11 INFO | Expected SHA1 sum: 02930224756510e383c44c49bffb760e35d6f892
22:13:11 INFO | Would you like to check /tmp/kvm_autotest_root/isos/windows/winutils.iso? It might take a while (y/n) n
22:13:12 INFO | File /tmp/kvm_autotest_root/isos/windows/winutils.iso present, but chose to not verify it
22:13:12 INFO |
22:13:12 INFO | 5 - Checking if qemu is installed (certify qemu and qemu-kvm are in the place the default config expects)
22:13:12 DEBUG| /usr/bin/qemu-kvm present
22:13:12 DEBUG| /usr/bin/qemu-img present
22:13:12 INFO | If you wish to change qemu-kvm to qemu or other binary path, you will have to modify tests.cfg
22:13:12 INFO |
22:13:12 INFO | 6 - Checking for the KVM module (make sure kvm is loaded to accelerate qemu-kvm)
22:13:12 DEBUG| Running '/sbin/lsmod'
22:13:12 DEBUG| KVM module loaded
22:13:12 INFO |
22:13:12 INFO | 7 - Verify needed packages to get started
22:13:12 INFO | Please take a look at the online documentation http://www.linux-kvm.org/page/KVM-Autotest/Client_Install (session 'Install Prerequisite packages')
22:13:12 INFO |
22:13:12 INFO | When you are done fixing eventual warnings found, you can run the kvm test using the command line AS ROOT:
22:13:12 INFO | /home/lmr/Code/autotest-git/client/bin/autotest /home/lmr/Code/autotest-git/client/tests/kvm/control
22:13:12 INFO | Autotest prints the results dir, so you can look at DEBUG logs if something went wrong
22:13:12 INFO | You can also edit the test config files (see output of step 2 for a list)
Clone this wiki locally