On Thu, Mar 17, 2011 at 10:32:27AM +0800, wuyu8242 wrote: > hi akong, > 你好,冒昧写信请教,希望没给你造成太多麻烦。我在各处都看到你的关于 > kvm-autotest的项目信息,所以想向你请教一下关于autotest的一些问题,如果能得到你 > 的回复,真是感谢万分! > 我现在在学习搭建这个kvm-autotest的测试环境,遇到一些问题。我按照 > client_install的那个文档来进行搭建,运行到./get_started.py完毕,看起来也没啥问 > 题,然后执行这一步:./kvm_config --verbose /path/to/cfgfile 时,我不知道怎么修 > 改相应的cfgfile,所以运行build.cfg kvm_tests.cfg tests.cfg > cdkeys.cfg tests_base.cfg unittests.cfg这些文件时,有出现filter did not pass > 的语句,也不太明白是什么意思,然后没有对这些.cfg文件进行任何修改,就接着运行了 > /path/to/autotest --verbose /path/to/control_file 这个命令,可是最后出现了说建 > 立vm1后,不能login的错误,到此,我觉得应该对相应的cfg进行实际环境的配置,可是文 > 档上没说需要配置什么,所以环境搭建失败。 > 我到处查找kvm-autotest的信息,可惜非常少,只有你们RH和ibm参与这个项目的人 > 员偶尔有些信息,但仍然不得其解,我觉得把代码看了也不现实,于是冒昧给你写信,以 > 期待能尽快得到学习。昨天还给您写到您以前的邮箱了,今天有在patch网站看到您公司的 > 邮箱,又冒昧写到这个了,我真是十分着急,找不到任何信息,如果您能提供些帮助,真 > 是感谢了!
1. get autotest code from git repo # git clone git://github.com/autotest/autotest.git 2. change to kvm sub-directory # cd autotest/client/tests/kvm 3. prepare env by 'get_started.py' # ./get_started.py 11:22:16 INFO | KVM test config helper 11:22:16 INFO | 1 - Verifying directories (check if the directory structure expected by the default test config is there) 11:22:17 DEBUG| Dir /tmp/kvm_autotest_root/images exists, not creating 11:22:17 DEBUG| Creating /tmp/kvm_autotest_root/isos 11:22:17 DEBUG| Creating /tmp/kvm_autotest_root/steps_data 11:22:17 INFO | Do you want to setup NFS mounts for some of those dirs? (y/n) n 11:22:26 INFO | 2 - Creating config files from samples (copy the default config samples to actual config files) 11:22:26 DEBUG| Creating config file /home/autotest/client/tests/kvm/build.cfg from sample 11:22:26 DEBUG| Creating config file /home/autotest/client/tests/kvm/cdkeys.cfg from sample 11:22:26 DEBUG| Creating config file /home/autotest/client/tests/kvm/tests_base.cfg from sample 11:22:26 DEBUG| Creating config file /home/autotest/client/tests/kvm/tests.cfg from sample 11:22:26 DEBUG| Creating config file /home/autotest/client/tests/kvm/unittests.cfg from sample 11:22:26 INFO | 3 - Verifying iso (make sure we have the OS ISO needed for the default test set) 11:22:26 INFO | Verifying iso Fedora-14-x86_64-DVD.iso 11:22:26 WARNI| /tmp/kvm_autotest_root/isos/linux/Fedora-14-x86_64-DVD.iso not found or corrupted 11:22:26 WARNI| Would you like to download it? (y/n) y 11:22:33 DEBUG| Fetching http://download.fedoraproject.org/pub/fedora/linux/releases/14/Fedora/x86_64/iso/Fedora-14-x86_64-DVD.iso -> /tmp/kvm_autotest_root/isos/linux/Fedora-14-x86_64-DVD.iso 11:24:32 INFO | 4 - Verifying winutils.iso (make sure we have the utility ISO needed for Windows testing) 11:24:32 INFO | In order to run the KVM autotests in Windows guests, we provide you an ISO that this script can download 11:24:32 INFO | Verifying iso winutils.iso 11:24:32 WARNI| /tmp/kvm_autotest_root/isos/windows/winutils.iso not found or corrupted 11:24:32 WARNI| Would you like to download it? (y/n) y 11:24:44 INFO | 5 - Checking if qemu is installed (certify qemu and qemu-kvm are in the place the default config expects) 11:24:44 DEBUG| /usr/bin/qemu-kvm present 11:24:44 DEBUG| /usr/bin/qemu-img present 11:24:44 INFO | 6 - Checking for the KVM module (make sure kvm is loaded to accelerate qemu-kvm) 11:24:44 DEBUG| Running '/sbin/lsmod' 11:24:44 DEBUG| KVM module loaded 11:24:44 INFO | 7 - Verify needed packages to get started 11:24:44 INFO | Please take a look at the online documentation http://www.linux-kvm.org/page/KVM-Autotest/Client_Install (session 'Install Prerequisite packages') 11:24:44 INFO | When you are done fixing eventual warnings found, you can run the kvm test using the command line AS ROOT: 11:24:44 INFO | /home/autotest/client/bin/autotest --verbose /home/autotest/client/tests/kvm/control 11:24:44 INFO | You can also edit the test config files (see output of step 2 for a list) 4. execute autotest ( it will use autotest/client/tests/kvm/tests.cfg as the default configure file, default tests: 'installation','boot','shutdown') # ../../bin/autotest --verbose You can try the above steps, feel free to mail me. Amos. _______________________________________________ Autotest mailing list Autotest@test.kernel.org http://test.kernel.org/cgi-bin/mailman/listinfo/autotest