On Tue, Apr 26, 2011 at 04:54:46PM +0800, wuyu8242 wrote: > On 2011-04-26,at 13:58:04, wuyu8242 wrote: > > >发送日期:2011-04-26 13:58:04 > >收件人:Amos Kong > >抄送:autotest > >主题:Re: [Autotest] log_into_'vm1'_via_serial_console > >> > >On 2011-04-26,at 13:24:24, Amos Kong wrote: > > > >>发送日期:2011-04-26 13:24:24 > >>收件人:wuyu8242 > >>抄送:autotest > >>主题:Re: [Autotest] log into 'vm1' via serial console > >>> > >>On Tue, Apr 26, 2011 at 01:15:22PM +0800, wuyu8242 wrote: > >>> hi all, > >>> > >>> There are some cases failed beacause of > >>> "Attempting to log into 'vm1' via serial console (timeout 360s) ", how to > >>> setup > >>> serial console? > >> > >>Autotest only support serial login of linux guest. > >>Try to add 'console=tty0 console=ttyS0,115200' in guest kernel cmdline. > >>http://www.vanemery.com/Linux/Serial/serial-console.txt > >Okay, I try it. > > > >>You can test with this cmd: > >># qemu-kvm .... -serial stdio > This test with this cmd failed.
failed ? error msg? snapshot? An Example: # qemu-kvm -m 800 RHEL-Server-6.0-64-virtio.qcow2 -vnc :9 -serial stdio Initializing cgroup subsys cpuset Initializing cgroup subsys cpu Linux version 2.6.32-71.7.1.el6.x86_64 ([email protected]) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Oct 27 03:44:59 EDT 2010 Command line: ro root=/dev/mapper/vg_virtlab6685153-lv_root rd_LVM_LV=vg_virtlab6685153/lv_root rd_LVM_LV=vg_virtlab6685153/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb console=tty0 console=ttyS0,115200 KERNEL supported cpus: Intel GenuineIntel AMD AuthenticAMD Centaur CentaurHauls BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009f400 (usable) .... .... Starting postfix: [ OK ] Starting abrt daemon: [ OK ] [ OK ] crond: [ OK ] [ OK ] atd: [ OK ] Red Hat Enterprise Linux Server release 6.0 Beta (Santiago) Kernel 2.6.32-71.7.1.el6.x86_64 on an x86_64 virtlab-66-85-153.englab.nay.redhat.com login: (you will got a prompt in terminal) > I midify the sentence of ''' return " -serial unix:'%s',server,nowait" % > filename ''' to ''' return " -serial stdio,server,nowait" ''' in kvm_vm.py, > but failed. why modify the code? it's right. _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
