View previous topic :: View next topic |
Author |
Message |
idella4 Retired Dev
Joined: 09 Jun 2006 Posts: 1600 Location: Australia, Perth
|
Posted: Tue Aug 17, 2010 9:45 pm Post subject: can't get login [loggedin] |
|
|
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 |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6656 Location: The soundosphere
|
|
Back to top |
|
|
idella4 Retired Dev
Joined: 09 Jun 2006 Posts: 1600 Location: Australia, Perth
|
Posted: Wed Aug 18, 2010 1:27 am Post subject: |
|
|
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 |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6656 Location: The soundosphere
|
|
Back to top |
|
|
idella4 Retired Dev
Joined: 09 Jun 2006 Posts: 1600 Location: Australia, Perth
|
Posted: Wed Aug 18, 2010 2:23 pm Post subject: |
|
|
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 |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6656 Location: The soundosphere
|
|
Back to top |
|
|
idella4 Retired Dev
Joined: 09 Jun 2006 Posts: 1600 Location: Australia, Perth
|
Posted: Wed Aug 18, 2010 3:36 pm Post subject: |
|
|
yep _________________ idella4@aus |
|
Back to top |
|
|
at_chaos Tux's lil' helper
Joined: 09 Nov 2003 Posts: 149 Location: EU|Austria
|
Posted: Wed Aug 18, 2010 7:15 pm Post subject: |
|
|
hi,
1) set a root password
chroot to your vm and
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 |
|
|
idella4 Retired Dev
Joined: 09 Jun 2006 Posts: 1600 Location: Australia, Perth
|
Posted: Wed Aug 18, 2010 8:48 pm Post subject: |
|
|
hmm,
there are two of us now. xen capable. quite good. Filling in a little gap. _________________ idella4@aus |
|
Back to top |
|
|
|