Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't get login [loggedin]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
idella4
Retired Dev
Retired Dev


Joined: 09 Jun 2006
Posts: 1600
Location: Australia, Perth

PostPosted: Tue Aug 17, 2010 9:45 pm    Post subject: can't get login [loggedin] Reply with quote

I'm in the process of building a gentoo vm along the lines of the post in place now. I have emerged a few basics, then the vm won't complete a boot to login. I'm still investigating the state of the kernel, but the kernel can indeed bring a different vm to login.
In a console, this is where it gets to.
Code:

* Setting hostname to gentoo_pristine ...                                [ ok ]
 * Starting lo
 *   Bringing up lo
 *     127.0.0.1/8
                                                                          [ ok ]
 *   Adding routes
 *     127.0.0.0/8 ...                                                    [ ok ]
 * Initializing random number generator ...                               [ ok ]
INIT: Entering runlevel: 4
 * Starting metalog ...                                                   [ ok ]
 * Starting eth0
 *   Bringing up eth0
 *     dhcp
 *       Running dhcpcd ...                                               [ ok ]
 *       eth0 received address 192.168.0.101/24
 * Mounting network filesystems ...                                       [ ok ]
 * Starting sshd ...                                                      [ ok ]
 * Starting vixie-cron ...                                                [ ok ]
 * Starting local ...                                                     [ ok ]


This is not equipped with a graphical WM as yet. It is to reach level 3.
Code:

genny linux-2.6-xen # cat /mnt/ftp/etc/inittab
#
# /etc/inittab:  This file describes how the INIT process should set up
#                the system in a certain run-level.
#
# Author:  Miquel van Smoorenburg, <miquels@cistron.nl>
# Modified by:  Patrick J. Volkerding, <volkerdi@ftp.cdrom.com>
# Modified by:  Daniel Robbins, <drobbins@gentoo.org>
# Modified by:  Martin Schlemmer, <azarah@gentoo.org>
#
# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/files/inittab,v 1.5 2005/12/22 02:03:23 vapier Exp $

# Default runlevel.
id:3:initdefault:


Earlier in the day it was reaching login. It just stops. The next step should be login.

Perhaps someone can tell how to use ssh to try to login. I've never used it be[/code]fore and apparently ssh is a std recommendation for xen vms.
_________________
idella4@aus


Last edited by idella4 on Wed Aug 18, 2010 3:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Tue Aug 17, 2010 11:25 pm    Post subject: Reply with quote

I think it's just ssh IP (for example, ssh 192.168.1.100). You'll be prompted for your username and password.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
idella4
Retired Dev
Retired Dev


Joined: 09 Jun 2006
Posts: 1600
Location: Australia, Perth

PostPosted: Wed Aug 18, 2010 1:27 am    Post subject: Reply with quote

audiodef
I think there's a bit more to it than that. It wants a password. The password has to be set from within the vm prior to logging into it. Would like to know the sequence to do that. possibly prepare certificates and such.

openrc seems to have included a local to be run a number of times through the runlevels.
It stopped where it stopped because it was running a local which had no content, strange and ungentoo like to create a hang.
Just added login to the local. Only now have to see to removing the local as a standard through the runlevels. Gets in the way.
The other vm is doing something similar. It's stopping just after mounting root. Strange thing is that one guest kernel can penetrate it to level4, the other newer more equipped guest kernels get struck.
Just as well having spares. Someone explain how to get this one past level 3?
_________________
idella4@aus
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Wed Aug 18, 2010 12:48 pm    Post subject: Reply with quote

ssh in as root with your root password. If you haven't set that, then there's nothing to do other than start over, or chroot in via sysresccd to set it. :wink:
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
idella4
Retired Dev
Retired Dev


Joined: 09 Jun 2006
Posts: 1600
Location: Australia, Perth

PostPosted: Wed Aug 18, 2010 2:23 pm    Post subject: Reply with quote

audiodef,
I tried that.
ssh ip-address
responded with
password
So doesn't stipulate a user. Tried root and user password. Didn't go in. I got the boot to complete anyway. I'm on to the next similar position in the next post.
_________________
idella4@aus
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Wed Aug 18, 2010 2:32 pm    Post subject: Reply with quote

Glad you were able to boot!
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
idella4
Retired Dev
Retired Dev


Joined: 09 Jun 2006
Posts: 1600
Location: Australia, Perth

PostPosted: Wed Aug 18, 2010 3:36 pm    Post subject: Reply with quote

yep :o
_________________
idella4@aus
Back to top
View user's profile Send private message
at_chaos
Tux's lil' helper
Tux's lil' helper


Joined: 09 Nov 2003
Posts: 149
Location: EU|Austria

PostPosted: Wed Aug 18, 2010 7:15 pm    Post subject: Reply with quote

hi,

1) set a root password
chroot to your vm and
Code:
passwd


2) To get a vm console: chroot your vm and try to add the xen console to your /etc/inittab and /etc/securetty as described here:
https://forums.gentoo.org/viewtopic-t-840251.html
DomU Guests -> 3.5) to make xen console working with our hardened system

how to setup sshd to be able to login as root:
same link as above
DomU Guests -> 3.4) SSH
_________________
if you stand still, you move backward
Back to top
View user's profile Send private message
idella4
Retired Dev
Retired Dev


Joined: 09 Jun 2006
Posts: 1600
Location: Australia, Perth

PostPosted: Wed Aug 18, 2010 8:48 pm    Post subject: Reply with quote

hmm,
there are two of us now. xen capable. quite good. Filling in a little gap.
_________________
idella4@aus
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum