hi Amos,
     Thx a lot for your help!!

     I have tried these steps, in the 4 step, my command is "../../bin/autotest 
--verbose control"  instead of "../../bin/autotest --verbose", now after 
running the 4 step,  the output of screen as following:

[root@localhost kvm]# /home/tzx/autotest/client/bin/autotest --verbose 
/home/tzx/autotest/client/tests/kvm/control 
03/17 19:32:01 INFO |       job:0173| Writing results to 
/home/tzx/autotest/client/results/default
03/17 19:32:01 INFO |       job:0931| Initializing the state engine
03/17 19:32:01 DEBUG|  base_job:0347| Persistent state client.steps now set to 
[]
03/17 19:32:01 DEBUG|       job:0954| Persistent option harness now set to None
03/17 19:32:01 DEBUG|       job:0954| Persistent option harness_args now set to 
None
03/17 19:32:01 DEBUG|   harness:0090| Selected harness: standalone
03/17 19:32:01 INFO |harness_st:0033| Symlinking init scripts
03/17 19:32:01 DEBUG|base_utils:0074| Running 'grep :initdefault: /etc/inittab'
03/17 19:32:01 DEBUG|base_utils:0074| Running 'ln -sf 
/home/tzx/autotest/client/tools/autotest /etc/init.d/autotest'
03/17 19:32:01 DEBUG|base_utils:0074| Running 'ln -sf 
/home/tzx/autotest/client/tools/autotest /etc/rc5.d/S99autotest'
03/17 19:32:01 DEBUG|       job:0278| Dropping caches
03/17 19:32:01 DEBUG|base_utils:0074| Running 'sync'
03/17 19:32:02 DEBUG|base_utils:0074| Running 'echo 3 > 
/proc/sys/vm/drop_caches'
03/17 19:32:03 DEBUG|base_utils:0074| Running 'gzip -9 
"/home/tzx/autotest/client/results/default/sysinfo/dmesg"'
03/17 19:32:04 DEBUG|base_utils:0074| Running 'rpm -qa'
03/17 19:32:17 INFO |       job:0200| START     ----    ----    
timestamp=1300361537    localtime=Mar 17 19:32:17
03/17 19:32:17 DEBUG|  base_job:0347| Persistent state client._record_indent 
now set to 1
03/17 19:32:19 INFO |       job:0200| END GOOD  ----    ----    
timestamp=1300361539    localtime=Mar 17 19:32:19
03/17 19:32:19 DEBUG|  base_job:0347| Persistent state client._record_indent 
now set to 0
03/17 19:32:19 DEBUG|logging_ma:0561| Logging subprocess finished
03/17 19:32:19 DEBUG|logging_ma:0561| Logging subprocess finished
[root@localhost kvm]# 

Then, it stoped and out the command. Is it right? when I ps the kvm, the 
process of kvm is alive, the output of screen as following:
[tzx@localhost linux]$ ps -ef|grep vm
root       835     2  0 Mar16 ?        00:00:00 [kvm-irqfd-clean]
tzx      22461 19815  0 21:39 pts/2    00:00:00 grep vm

But, the debug info in results did not increase, these cases are right? The 4st 
step of you via the tests.cfg , What is the difference?


Thanks!
wuyu8242 



发件人: Amos Kong 
发送时间: 2011-03-17  13:18:49 
收件人: wuyu8242 
抄送: autotest 
主题: Re: About using kvm-autotest 
 
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
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to