On 11/05/2011 06:57 AM, Wizard wrote:
> 2011/11/4 Lucas Meneghel Rodrigues<[email protected]>:
>> On 11/04/2011 12:49 PM, Wizard wrote:
>>>
>>> Lucas
>>>
>>> I read the tips for create a uptime test case for autotest.
>>>
>>> But I faced an error message.
>>>
>>> The config is :
>>> ../../common_lib/cartesian_config.py tests.cfg
>>> dict    1:  smp2.CustomGuestLinux.uptime
>>>
>>>
>>> The command of qemu is :
>>> /usr/bin/qemu -name 'vm1' -nodefaults -vga std -monitor
>>> unix:'/tmp/monitor-humanmonitor1-20111104-223259-kgX2',server,nowait
>>> -serial unix:'/tmp/serial-20111104-223259-kgX2',server,nowait -drive
>>>
>>> file='/home/richard/kvm/image/custom_image_linux',index=0,if=ide,cache=none
>>> -device rtl8139,netdev=idLRqDTg,mac='9a:64:5d:40:fb:fa',id='idsYMlt4'
>>> -netdev tap,id=idLRqDTg,fd=22 -m 1024 -smp 2 -vnc :0
>>>
>>> The error is:
>>> MissingError: Cannot find IP address for MAC address 9a:64:5d:40:fb:fa
>>>     [context: logging into 'vm1']
>>
>> You probably want to connect on your vm's vnc session. This means your linux
>> guest did not even try to get an IP from the DHCP server.
>>
>> vncviewer localhost:0
>>
> I tried vncviewer :0 , and can see the guest starts up and logged in
> successfully.
>
>> Also, kvm autotest produces screenshots, that go into
>> client/results/default/[your test name]screendumps_vm1. As this is a custom
>> image, it's very hard to tell what is going wrong, but usually means the
>> boot got stuck somewhere and your linux guest did not bring up a newtork
>> interface.
>>
>
> But the autotest finally failed with the message above.
> I guess this error is printed when autotest client try to connect
> guest through ssh
> session.

Well, just to cover all bases - is the guest configured to pick an IP 
address from a DHCP server, or it's configured with static IP and DNS? 
When you say logged in, you probably mean "I can see a getty login 
prompt", which doesn't mean much for KVM autotest remote session.

If your guest has static IP configuration, KVM autotest will never see a 
DHCP request from your guest so it's unable to verify its IP address, 
failing the test.

Also, it's a good idea to make sure you have libvirt installed and a 
virbr0 bridge present, please recap the end of:

https://github.com/autotest/autotest/wiki/KVMAutotest-InstallPrerequesitePackagesClient
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to