Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1100630

Summary: double agetty show after booted when you connect through console
Product: Red Hat Enterprise Linux 6 Reporter: Wei Shi <wshi>
Component: guest-imagesAssignee: Joey Boggs <jboggs>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.5CC: dgregor, jgreguske, leiwang, yuliu
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-23 15:26:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Wei Shi 2014-05-23 09:05:06 UTC
Description of problem:
  Unable to login to guest-image on RHEL6.5 kvm host through virsh console.

Works good when #RHBZ969487 fixed,

bootloader --timeout=1 --location=mbr --driveorder=sda --append "console=ttyS0,115200n8 console=tty0"
...
...
...
#setup getty on ttyS0
echo "ttyS0" >> /etc/securetty
cat <<EOF > /etc/init/ttyS0.conf
start on runlevel [345]
stop on runlevel [S016]
respawn
instance /dev/ttyS0
exec /sbin/agetty ttyS0 19200 vt100-nav
EOF

agetty loggin mess up appears since rhel-guest-image-6.5-20140520.0.el6_5, ks file changed to:

bootloader --timeout=1 --location=mbr --driveorder=sda --append "console=tty0 console=ttyS0,115200n8"
...
...
...
#setup getty on ttyS0
echo "ttyS0" >> /etc/securetty
cat <<EOF > /etc/init/ttyS0.conf
start on stopped rc RUNLEVEL=[2345]
stop on starting runlevel [016]
respawn
instance /dev/ttyS0
exec /sbin/agetty /dev/ttyS0 115200 vt100-nav
EOF


Version-Release number of selected component (if applicable):
rhel-guest-image-6.5-20140522.0

How reproducible:
100%

Steps to Reproduce:
1. launch guest-image through virsh
2. connect to the vm through virsh console


Actual results:

Starting tuned: [  OK  ]
Starting crond: [  OK  ]
Starting rhsmcertd...[  OK  ]

Red Hat Enterprise Linux Server release 6.5 (Santiago)
Kernel 2.6.32-431.20.2.el6.x86_64 on an x86_64

localhost.localdomain login:
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Kernel 2.6.32-431.20.2.el6.x86_64 on an x86_64

localhost.localdomain login: root
Password:
root
Login incorrect

login: root
Last login: Fri May 23 04:04:33 on ttyS0
[root@localhost ~]#
[root@localhost ~]#
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Kernel 2.6.32-431.20.2.el6.x86_64 on an x86_64

localhost.localdomain login:



Expected results:

Starting ovirt-guest-agent: [FAILED]
Starting tuned: [  OK  ]
Starting crond: [  OK  ]
Starting rhsmcertd...[  OK  ]

Red Hat Enterprise Linux Server release 6.5 (Santiago)
Kernel 2.6.32-431.20.2.el6.x86_64 on an x86_64

localhost.localdomain login: root
Last login: Fri May 23 04:01:35 on ttyS0
[root@localhost ~]#
[root@localhost ~]#


Additional info:

Comment 2 Joey Boggs 2014-05-23 15:26:39 UTC

*** This bug has been marked as a duplicate of bug 1099462 ***

Comment 3 Wei Shi 2014-05-26 01:16:39 UTC
This bug was involved because of the fix for Bug 1099462 - /dev/console doesn't ouput to ttyS0, and the result is different.