Skip to contentSkip to conversation

Weird console issue.

DISCUSSION Robin Lee Powell 1 participant 2 messages Sep 26, 2011 – Sep 28, 2011 KVM

lore
Share & tools
lore
#0 lore raw

I'm running qemu-kvm on Fedora, with Fedora VMs, normally via libvirt/virsh.

I have serial consoles setup, like so:

    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
$ sudo virsh ttyconsole stodi
/dev/pts/3

With both PuTTY and shellinabox (web-based shell) to the master, connecting via either "virsh console" *or* simple "screen /dev/pts/3", with agetty running on the VM like so: "sudo /sbin/agetty 115200 ttyS0", I get the following problem:

Everything seems to work until it asks for a password. As soon as that happens, any character I type causes it to respond as though I'd hit "enter". This continues until /bin/login completes and a new getty starts, at which point it prints the right headers and I can enter my userid, and then it asks for a password and it breaks again in the same way.

Obviously, this makes the console not so useful. Any help or suggestions would be welcome.

-Robin

#1 lore raw
Quoted 6 lines · Robin Lee Powell

Everything seems to work until it asks for a password. As soon as that happens, any character I type causes it to respond as though I'd hit "enter". This continues until /bin/login completes and a new getty starts, at which point it prints the right headers and I can enter my userid, and then it asks for a password and it breaks again in the same way.

Bizarrely, the problem appears to have actually been in my kernel config:

kernel /vmlinuz-2.6.38.8-32.fc15.x86_64 ro root=/dev/vda2 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us console=ttyS0,115200 console=tty0 rhgb

Apparently, having the two console bits screwed things up, which is kind of lame.

But hey, problem solved! :D

-Robin