avocado-framework / avocado-vt

Avocado VT Plugin
https://avocado-vt.readthedocs.org/
Other
83 stars 242 forks source link

Login timeout expired #824

Open zhuozh opened 7 years ago

hjydxy commented 7 years ago

Is there anyone trapped by this problem too? I don't know how to fix it , need help! @ehabkost @giuseppe @lmr @arges

xutian commented 7 years ago

@hjydxy can you post debug.log here?

hjydxy commented 7 years ago

Maybe is caused by hostname being changed . When the test start , avocado-vt will send command like "ssh IP -p 5000". And the IP is obtained by a python function gethostname(). If your hostname is not the "localhost". Then the IP will be wrong . So run following command:

hostnamectl set-hostname localhost

then,try again. My colleague discover this!

sghi commented 7 years ago

I was also traped with this problem ,I use it to test myself debian based .qcow2 file ,just obtained a login timeout error,but it work well when test the default jeos image. besides . i notice that the VT use a ssh root@127.0.0.1 -p 5000 to connect to guest-os, I wonder if it is correct, or I need some settings to make it go smootly. thank!