Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Jan 17, 2010 10:39 pm 
Offline
Newbie

Joined: Sun Jan 17, 2010 10:15 pm
Posts: 3
Hello,

I do not receive a login prompt for my Ubuntu 8.04 linode in the console or lish. I suspect it may be due to the fact I'm using pv-grub. I tried entering a username and hitting enter to see if I'd be prompted for a password, but to no avail.

After reading these three pages, I attempted the following:

Code:
# mknod /dev/hvc0 c 229 0
# cp /etc/event.d/tty1 /etc/event.d/hvc0
# vim /etc/event.d/hvc0

In /etc/event.d/hvc0 I changed only the last line:
Code:
start on stopped rc2
start on stopped rc3
start on stopped rc4
start on stopped rc5

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

respawn
exec /sbin/getty 38400 hvc0

(I also tried exec /sbin/getty -8 38400 hvc0, but I admit my getty-fu is weak.)
Code:
# initctl stop tty1
# initctl start hvc0

The service starts without errors, but I still see receive no login prompts in the console or lish.
If it's of use to know, here is the kernel config, provided by the linux-headers-2.6.24-26-xen package.


Top
   
 Post subject:
PostPosted: Mon Jan 18, 2010 1:27 am 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
I just helped someone very recently with this, where /etc/event.d wasn't properly listened to. After your initctls, what does `ps aux' say w/r/t a getty? Is getty actually pointed at hvc0 in `ps' output?

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Mon Jan 18, 2010 9:08 am 
Offline
Newbie

Joined: Sun Jan 17, 2010 10:15 pm
Posts: 3
Here is the output of ps aux:
Code:
root     14252  0.0  0.1   3860   672 ?        Ss   13:01   0:00 /sbin/getty 38400 hvc0


I noticed the following entries in the syslog, repeating about every 10 seconds:
Code:
init: hvc0 main process (14368) terminated with status 1
init: hvc0 main process ended, respawning


Top
   
 Post subject:
PostPosted: Mon Jan 18, 2010 10:01 am 
Offline
Newbie

Joined: Sun Jan 17, 2010 10:15 pm
Posts: 3
Good news, everyone!
I have a login prompt now.

After more poking around, I discovered an xvc0 referenced in /etc/securetty before hvc0. It already exists at /dev/xvc0, so like in my initial post I created an /etc/event.d/xvc0 from the tty1 entry (replacing tty1 with xvc0, of course).

Upon issuing initctl start xvc0, a login prompt appeared in lish. It yet appears after a reboot, so that's dandy. And no errors in the syslog from it, either.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group