Pandu Poluan
2011-Mar-24 11:48 UTC
[Xen-users] XenServer console displays bootup but can''t receive keyboard input?
Hello! I''m currently trying to run Gentoo paravirtualized on XenServer. It *is* running... except that the XenServer console refused any input, so I can''t login via the console. Login via SSH is okay, though. What makes me confused is that the console properly shows the bootup process, up to and including the "login:" prompt. But I can''t type anything. What could be the problem? FYI, I am using Gentoo''s hardened-sources Rgds, -- Pandu E Poluan ~ IT Optimizer ~ Visit my Blog: http://pepoluan.posterous.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
George Shuklin
2011-Mar-24 15:08 UTC
Re: [Xen-users] XenServer console displays bootup but can''t receive keyboard input?
1. Check if echo is enabled (if you are using something like minicom) 2. Check in no one have access to device except your application (i''m talking about dom0) 3. For login as root you must allow thin in securetty in domU. В Чт., 24/03/2011 в 18:48 +0700, Pandu Poluan пишет:> Hello! > > I''m currently trying to run Gentoo paravirtualized on XenServer. > > It *is* running... except that the XenServer console refused any > input, so I can''t login via the console. > > Login via SSH is okay, though. > > What makes me confused is that the console properly shows the bootup > process, up to and including the "login:" prompt. But I can''t type > anything. > > What could be the problem? > > FYI, I am using Gentoo''s hardened-sources > > Rgds, > -- > Pandu E Poluan > ~ IT Optimizer ~ > Visit my Blog: http://pepoluan.posterous.com > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
J. Roeleveld
2011-Mar-24 16:15 UTC
Re: [Xen-users] XenServer console displays bootup but can''t receive keyboard input?
On Thu, March 24, 2011 4:08 pm, George Shuklin wrote:> 1. Check if echo is enabled (if you are using something like minicom) > 2. Check in no one have access to device except your application (i''m > talking about dom0) > 3. For login as root you must allow thin in securetty in domU.Hi George, I''ve been trying to help him a bit today on the Gentoo-user mailing list (Did point him to this list as well), so I know a bit about what he is facing, but I am not familiar with XenServer. He is off for the rest of the day (timezone issues), but I would like to find out some more info about XenServer in order to help him when he comes back :) With regards to your questions: 1) How would one use minicom to access a domU? Isn''t minicom only used to access machines over a serial link? 2) How would he check this? (Please note, when using HVM, he can login) 3) The problem is that no key-presses are registered on the "console" where "login: " is displayed after all the config-screens. I do manage to login to Gentoo domUs on my Xen installation, but I install the xen-tools and xend hypervisor myself on a Gentoo dom0. So not 100% sure where the differences may be. Thanks for any help/ideas/input/advice/... Joost Roeleveld> > РЧÑ., 24/03/2011 в 18:48 +0700, Pandu Poluan пиÑеÑ: >> Hello! >> >> I''m currently trying to run Gentoo paravirtualized on XenServer. >> >> It *is* running... except that the XenServer console refused any >> input, so I can''t login via the console. >> >> Login via SSH is okay, though. >> >> What makes me confused is that the console properly shows the bootup >> process, up to and including the "login:" prompt. But I can''t type >> anything. >> >> What could be the problem? >> >> FYI, I am using Gentoo''s hardened-sources >> >> Rgds, >> -- >> Pandu E Poluan >> ~ IT Optimizer ~ >> Visit my Blog: http://pepoluan.posterous.com >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Melody Bliss
2011-Mar-24 19:56 UTC
Re: [Xen-users] XenServer console displays bootup but can''t receive keyboard input?
Check /etc/inittab. Do you still have a console device? When connected to the console, on another terminal, after logging in via ssh, type "echo test > /dev/console" does test show up on the console connection? If so, the console is connected, but getty may not be running on it. We had a similar issue where the inittab somehow got overwritten/modified that removed the console getty Mel On Thu, Mar 24, 2011 at 4:48 AM, Pandu Poluan <pandu@poluan.info> wrote:> Hello! > > I''m currently trying to run Gentoo paravirtualized on XenServer. > > It *is* running... except that the XenServer console refused any > input, so I can''t login via the console. > > Login via SSH is okay, though. > > What makes me confused is that the console properly shows the bootup > process, up to and including the "login:" prompt. But I can''t type > anything. > > What could be the problem? > > FYI, I am using Gentoo''s hardened-sources > > Rgds, > -- > Pandu E Poluan > ~ IT Optimizer ~ > Visit my Blog: http://pepoluan.posterous.com > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Melody Bliss Usenix, SAGE and LOPSA Charter Member Patron Member of the NRA _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pandu Poluan
2011-Mar-25 03:44 UTC
Re: [Xen-users] XenServer console displays bootup but can''t receive keyboard input?
On Fri, Mar 25, 2011 at 02:56, Melody Bliss <melodybliss@gmail.com> wrote:> Check /etc/inittab. Do you still have a console device? ># TERMINALS #c1:12345:respawn:/sbin/agetty 38400 tty1 linux c1:12345:respawn:/sbin/agetty 38400 hvc0 linux c2:2345:respawn:/sbin/agetty 38400 tty2 linux c3:2345:respawn:/sbin/agetty 38400 tty3 linux #c4:2345:respawn:/sbin/agetty 38400 tty4 linux #c5:2345:respawn:/sbin/agetty 38400 tty5 linux #c6:2345:respawn:/sbin/agetty 38400 tty6 linux> When connected to the console, on another terminal, after logging in > via ssh, type "echo test > /dev/console" > > does test show up on the console connection? If so, the console is > connected, but getty may not be running on it. >"test" appeared ps aux | grep agetty returns: root 4143 0.0 0.1 5984 768 hvc0 Ss+ 10:39 0:00 /sbin/agetty 38400 hvc0 linux root 4144 0.0 0.1 5984 768 tty2 Ss+ 10:39 0:00 /sbin/agetty 38400 tty2 linux root 4145 0.0 0.1 5984 768 tty3 Ss+ 10:39 0:00 /sbin/agetty 38400 tty3 linux> We had a similar issue where the inittab somehow got > overwritten/modified that removed the console getty > > Mel > > On Thu, Mar 24, 2011 at 4:48 AM, Pandu Poluan <pandu@poluan.info> wrote: >> Hello! >> >> I''m currently trying to run Gentoo paravirtualized on XenServer. >> >> It *is* running... except that the XenServer console refused any >> input, so I can''t login via the console. >> >> Login via SSH is okay, though. >> >> What makes me confused is that the console properly shows the bootup >> process, up to and including the "login:" prompt. But I can''t type >> anything. >> >> What could be the problem? >> >> FYI, I am using Gentoo''s hardened-sources >> >> Rgds, >> -- >> Pandu E Poluan >> ~ IT Optimizer ~ >> Visit my Blog: http://pepoluan.posterous.com >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > > > > -- > Melody Bliss > Usenix, SAGE and LOPSA Charter Member > Patron Member of the NRA >-- Pandu E Poluan ~ IT Optimizer ~ Visit my Blog: http://pepoluan.posterous.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Melody Bliss
2011-Mar-25 03:50 UTC
Re: [Xen-users] XenServer console displays bootup but can''t receive keyboard input?
Hrm. Interesting. I believe hvc0 is your console on this VM and it looks like a getty is running. Have you tried killing the agetty on hvc0 (process 4143). It should respawn. If it doesn''t, send a -HUP signal to init. That should force init to re-read /etc/inittab and respawn missing processes. You may need to trace the getty process and see what it''s doing at the time. Mel On Thu, Mar 24, 2011 at 8:44 PM, Pandu Poluan <pandu@poluan.info> wrote:> On Fri, Mar 25, 2011 at 02:56, Melody Bliss <melodybliss@gmail.com> wrote: >> Check /etc/inittab. Do you still have a console device? >> > > # TERMINALS > #c1:12345:respawn:/sbin/agetty 38400 tty1 linux > c1:12345:respawn:/sbin/agetty 38400 hvc0 linux > c2:2345:respawn:/sbin/agetty 38400 tty2 linux > c3:2345:respawn:/sbin/agetty 38400 tty3 linux > #c4:2345:respawn:/sbin/agetty 38400 tty4 linux > #c5:2345:respawn:/sbin/agetty 38400 tty5 linux > #c6:2345:respawn:/sbin/agetty 38400 tty6 linux > >> When connected to the console, on another terminal, after logging in >> via ssh, type "echo test > /dev/console" >> >> does test show up on the console connection? If so, the console is >> connected, but getty may not be running on it. >> > > "test" appeared > > ps aux | grep agetty returns: > > root 4143 0.0 0.1 5984 768 hvc0 Ss+ 10:39 0:00 > /sbin/agetty 38400 hvc0 linux > root 4144 0.0 0.1 5984 768 tty2 Ss+ 10:39 0:00 > /sbin/agetty 38400 tty2 linux > root 4145 0.0 0.1 5984 768 tty3 Ss+ 10:39 0:00 > /sbin/agetty 38400 tty3 linux > >> We had a similar issue where the inittab somehow got >> overwritten/modified that removed the console getty >> >> Mel >> >> On Thu, Mar 24, 2011 at 4:48 AM, Pandu Poluan <pandu@poluan.info> wrote: >>> Hello! >>> >>> I''m currently trying to run Gentoo paravirtualized on XenServer. >>> >>> It *is* running... except that the XenServer console refused any >>> input, so I can''t login via the console. >>> >>> Login via SSH is okay, though. >>> >>> What makes me confused is that the console properly shows the bootup >>> process, up to and including the "login:" prompt. But I can''t type >>> anything. >>> >>> What could be the problem? >>> >>> FYI, I am using Gentoo''s hardened-sources >>> >>> Rgds, >>> -- >>> Pandu E Poluan >>> ~ IT Optimizer ~ >>> Visit my Blog: http://pepoluan.posterous.com >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com >>> http://lists.xensource.com/xen-users >>> >> >> >> >> -- >> Melody Bliss >> Usenix, SAGE and LOPSA Charter Member >> Patron Member of the NRA >> > > > -- > Pandu E Poluan > ~ IT Optimizer ~ > Visit my Blog: http://pepoluan.posterous.com >-- Melody Bliss Usenix, SAGE and LOPSA Charter Member Patron Member of the NRA _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pandu Poluan
2011-Mar-25 03:54 UTC
Re: [Xen-users] XenServer console displays bootup but can''t receive keyboard input?
On Fri, Mar 25, 2011 at 10:50, Melody Bliss <melodybliss@gmail.com> wrote:> Hrm. Interesting. > > I believe hvc0 is your console on this VM and it looks like a getty is running. > > Have you tried killing the agetty on hvc0 (process 4143). It should > respawn. If it doesn''t, send a -HUP signal to init. That should force > init to re-read /etc/inittab and respawn missing processes. >No joy. The console indeed shows agetty restarting by emitting a new set of lines "This is bla bla bla ... login:" But still no keyboard input.> You may need to trace the getty process and see what it''s doing at the time. >Uhh... trace? You went over my head there... :-P> Mel > > On Thu, Mar 24, 2011 at 8:44 PM, Pandu Poluan <pandu@poluan.info> wrote: >> On Fri, Mar 25, 2011 at 02:56, Melody Bliss <melodybliss@gmail.com> wrote: >>> Check /etc/inittab. Do you still have a console device? >>> >> >> # TERMINALS >> #c1:12345:respawn:/sbin/agetty 38400 tty1 linux >> c1:12345:respawn:/sbin/agetty 38400 hvc0 linux >> c2:2345:respawn:/sbin/agetty 38400 tty2 linux >> c3:2345:respawn:/sbin/agetty 38400 tty3 linux >> #c4:2345:respawn:/sbin/agetty 38400 tty4 linux >> #c5:2345:respawn:/sbin/agetty 38400 tty5 linux >> #c6:2345:respawn:/sbin/agetty 38400 tty6 linux >> >>> When connected to the console, on another terminal, after logging in >>> via ssh, type "echo test > /dev/console" >>> >>> does test show up on the console connection? If so, the console is >>> connected, but getty may not be running on it. >>> >> >> "test" appeared >> >> ps aux | grep agetty returns: >> >> root 4143 0.0 0.1 5984 768 hvc0 Ss+ 10:39 0:00 >> /sbin/agetty 38400 hvc0 linux >> root 4144 0.0 0.1 5984 768 tty2 Ss+ 10:39 0:00 >> /sbin/agetty 38400 tty2 linux >> root 4145 0.0 0.1 5984 768 tty3 Ss+ 10:39 0:00 >> /sbin/agetty 38400 tty3 linux >> >>> We had a similar issue where the inittab somehow got >>> overwritten/modified that removed the console getty >>> >>> Mel >>> >>> On Thu, Mar 24, 2011 at 4:48 AM, Pandu Poluan <pandu@poluan.info> wrote: >>>> Hello! >>>> >>>> I''m currently trying to run Gentoo paravirtualized on XenServer. >>>> >>>> It *is* running... except that the XenServer console refused any >>>> input, so I can''t login via the console. >>>> >>>> Login via SSH is okay, though. >>>> >>>> What makes me confused is that the console properly shows the bootup >>>> process, up to and including the "login:" prompt. But I can''t type >>>> anything. >>>> >>>> What could be the problem? >>>> >>>> FYI, I am using Gentoo''s hardened-sources >>>>-- Pandu E Poluan ~ IT Optimizer ~ Visit my Blog: http://pepoluan.posterous.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Melody Bliss
2011-Mar-25 04:08 UTC
Re: [Xen-users] XenServer console displays bootup but can''t receive keyboard input?
On Thu, Mar 24, 2011 at 8:54 PM, Pandu Poluan <pandu@poluan.info> wrote:> On Fri, Mar 25, 2011 at 10:50, Melody Bliss <melodybliss@gmail.com> wrote: >> Hrm. Interesting. >> >> I believe hvc0 is your console on this VM and it looks like a getty is running. >> >> Have you tried killing the agetty on hvc0 (process 4143). It should >> respawn. If it doesn''t, send a -HUP signal to init. That should force >> init to re-read /etc/inittab and respawn missing processes. >> > > No joy.hrm> The console indeed shows agetty restarting by emitting a new set of > lines "This is bla bla bla ... login:" > > But still no keyboard input. > >> You may need to trace the getty process and see what it''s doing at the time. >> > > Uhh... trace? You went over my head there... :-PYou can use strace (if it''s installed) to see what a running process is doing. An example on my subversion server. (via ssh to svn) --- 8< cut >8 --- [root@svn ~]# ps auxww | grep getty root 27371 0.0 0.1 3804 544 xvc0 Ss+ 04:08 0:00 /sbin/agetty xvc0 9600 vt100-nav root 27409 0.0 0.1 61156 716 pts/0 R+ 04:14 0:00 grep getty [root@svn ~]# strace -p 27371 Process 27371 attached - interrupt to quit read(0, "\r", 1) = 1 uname({sys="Linux", node="svn.home.chezbliss.com", ...}) = 0 write(1, "\r\n", 2) = 2 open("/etc/issue", O_RDONLY) = 3 ... ... uname({sys="Linux", node="svn.home.chezbliss.com", ...}) = 0 write(1, "svn.home.chezbliss.com", 22) = 22 write(1, " login: ", 8) = 8 --- 8< cut >8 --- The above was generated when I hit the enter key on the console --- 8< cut >8 --- [root@shark ~]# xm console svn CentOS release 5.5 (Final) Kernel 2.6.18-194.26.1.el5xen on an x86_64 svn.home.chezbliss.com login: --- 8< cut >8 --- This way, you can see exactly what the getty process is doing (or not doing). From the sounds of it, it sounds like the device driver may have a bug in it where it isn''t correctly attaching to the input stream. Unfortunately I don''t know enough about the Xen console driver internals to be able to point you to a solution to the problem, but using strace may give some idea of where to start. Mel [...] -- Melody Bliss Usenix, SAGE and LOPSA Charter Member Patron Member of the NRA _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pandu Poluan
2011-Mar-25 04:39 UTC
Re: [Xen-users] XenServer console displays bootup but can''t receive keyboard input?
On Fri, Mar 25, 2011 at 11:08, Melody Bliss <melodybliss@gmail.com> wrote:> On Thu, Mar 24, 2011 at 8:54 PM, Pandu Poluan <pandu@poluan.info> wrote: >> On Fri, Mar 25, 2011 at 10:50, Melody Bliss <melodybliss@gmail.com> wrote: >>> Hrm. Interesting. >>> >>> I believe hvc0 is your console on this VM and it looks like a getty is running. >>> >>> Have you tried killing the agetty on hvc0 (process 4143). It should >>> respawn. If it doesn''t, send a -HUP signal to init. That should force >>> init to re-read /etc/inittab and respawn missing processes. >>> >> >> No joy. > > hrm > >> The console indeed shows agetty restarting by emitting a new set of >> lines "This is bla bla bla ... login:" >> >> But still no keyboard input. >> >>> You may need to trace the getty process and see what it''s doing at the time. >>> >> >> Uhh... trace? You went over my head there... :-P > > You can use strace (if it''s installed) to see what a running process > is doing. An example on my subversion server. > > (via ssh to svn) > > --- 8< cut >8 --- > [root@svn ~]# ps auxww | grep getty > root 27371 0.0 0.1 3804 544 xvc0 Ss+ 04:08 0:00 > /sbin/agetty xvc0 9600 vt100-nav > root 27409 0.0 0.1 61156 716 pts/0 R+ 04:14 0:00 grep getty > [root@svn ~]# strace -p 27371 > Process 27371 attached - interrupt to quit > read(0, "\r", 1) = 1 > uname({sys="Linux", node="svn.home.chezbliss.com", ...}) = 0 > write(1, "\r\n", 2) = 2 > open("/etc/issue", O_RDONLY) = 3 > ... > ... > uname({sys="Linux", node="svn.home.chezbliss.com", ...}) = 0 > write(1, "svn.home.chezbliss.com", 22) = 22 > write(1, " login: ", 8) = 8 > --- 8< cut >8 --- > > The above was generated when I hit the enter key on the console > > --- 8< cut >8 --- > [root@shark ~]# xm console svn > > CentOS release 5.5 (Final) > Kernel 2.6.18-194.26.1.el5xen on an x86_64 > > svn.home.chezbliss.com login: > --- 8< cut >8 --- > > This way, you can see exactly what the getty process is doing (or not > doing). From the sounds of it, it sounds like the device driver may > have a bug in it where it isn''t correctly attaching to the input > stream. Unfortunately I don''t know enough about the Xen console driver > internals to be able to point you to a solution to the problem, but > using strace may give some idea of where to start. >The bad news is ''emerge strace'' failed horribly on my system :( I just tried ''emerge mingetty'' and replace the hvc0 agetty with mingetty. Although mingetty managed to capture hvc0, still the same ''keyboard not responsive'' problem. I strongly suspect a kernel misconfig on my part, though. dmesg does not indicate anything related to keyboard, while it indicates mice being found. I''ll try mucking up the kernel config> Mel > > [...] > > > -- > Melody Bliss > Usenix, SAGE and LOPSA Charter Member > Patron Member of the NRA >-- Pandu E Poluan ~ IT Optimizer ~ Visit my Blog: http://pepoluan.posterous.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Joost Roeleveld
2011-Mar-25 06:29 UTC
Re: [Xen-users] XenServer console displays bootup but can''t receive keyboard input?
On Friday 25 March 2011 11:39:21 Pandu Poluan wrote:> On Fri, Mar 25, 2011 at 11:08, Melody Bliss <melodybliss@gmail.com> wrote: > > On Thu, Mar 24, 2011 at 8:54 PM, Pandu Poluan <pandu@poluan.info> wrote: > >> On Fri, Mar 25, 2011 at 10:50, Melody Bliss <melodybliss@gmail.com>wrote:> >>> Hrm. Interesting. > >>> > >>> I believe hvc0 is your console on this VM and it looks like a getty > >>> is running. > >>> > >>> Have you tried killing the agetty on hvc0 (process 4143). It should > >>> respawn. If it doesn''t, send a -HUP signal to init. That should > >>> force > >>> init to re-read /etc/inittab and respawn missing processes. > >> > >> No joy. > > > > hrm > > > >> The console indeed shows agetty restarting by emitting a new set of > >> lines "This is bla bla bla ... login:" > >> > >> But still no keyboard input. > >> > >>> You may need to trace the getty process and see what it''s doing at > >>> the time. > >> > >> Uhh... trace? You went over my head there... :-P > > > > You can use strace (if it''s installed) to see what a running process > > is doing. An example on my subversion server. > > > > (via ssh to svn) > > > > --- 8< cut >8 --- > > [root@svn ~]# ps auxww | grep getty > > root 27371 0.0 0.1 3804 544 xvc0 Ss+ 04:08 0:00 > > /sbin/agetty xvc0 9600 vt100-nav > > root 27409 0.0 0.1 61156 716 pts/0 R+ 04:14 0:00 grep > > getty [root@svn ~]# strace -p 27371 > > Process 27371 attached - interrupt to quit > > read(0, "\r", 1) = 1 > > uname({sys="Linux", node="svn.home.chezbliss.com", ...}) = 0 > > write(1, "\r\n", 2) = 2 > > open("/etc/issue", O_RDONLY) = 3 > > ... > > ... > > uname({sys="Linux", node="svn.home.chezbliss.com", ...}) = 0 > > write(1, "svn.home.chezbliss.com", 22) = 22 > > write(1, " login: ", 8) = 8 > > --- 8< cut >8 --- > > > > The above was generated when I hit the enter key on the console > > > > --- 8< cut >8 --- > > [root@shark ~]# xm console svn > > > > CentOS release 5.5 (Final) > > Kernel 2.6.18-194.26.1.el5xen on an x86_64 > > > > svn.home.chezbliss.com login: > > --- 8< cut >8 --- > > > > This way, you can see exactly what the getty process is doing (or not > > doing). From the sounds of it, it sounds like the device driver may > > have a bug in it where it isn''t correctly attaching to the input > > stream. Unfortunately I don''t know enough about the Xen console driver > > internals to be able to point you to a solution to the problem, but > > using strace may give some idea of where to start. > > The bad news is ''emerge strace'' failed horribly on my system :("strace" is in portage, so it should work. Not sure why it failed on your system. It may be related to the hardened profile you are running.> I just tried ''emerge mingetty'' and replace the hvc0 agetty with > mingetty. Although mingetty managed to capture hvc0, still the same > ''keyboard not responsive'' problem. > > I strongly suspect a kernel misconfig on my part, though. dmesg does > not indicate anything related to keyboard, while it indicates mice > being found. > > I''ll try mucking up the kernel configDid you manage to test with the xen-sources to see if that has any effect? -- Joost _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pandu Poluan
2011-Mar-25 07:46 UTC
Re: [Xen-users] XenServer console displays bootup but can''t receive keyboard input?
On Fri, Mar 25, 2011 at 13:29, Joost Roeleveld <joost@antarean.org> wrote:> > On Friday 25 March 2011 11:39:21 Pandu Poluan wrote: > > On Fri, Mar 25, 2011 at 11:08, Melody Bliss <melodybliss@gmail.com> wrote: > > > On Thu, Mar 24, 2011 at 8:54 PM, Pandu Poluan <pandu@poluan.info> wrote: > > >> On Fri, Mar 25, 2011 at 10:50, Melody Bliss <melodybliss@gmail.com> > wrote: > > >>> Hrm. Interesting. > > >>> > > >>> I believe hvc0 is your console on this VM and it looks like a getty > > >>> is running. > > >>> > > >>> Have you tried killing the agetty on hvc0 (process 4143). It should > > >>> respawn. If it doesn''t, send a -HUP signal to init. That should > > >>> force > > >>> init to re-read /etc/inittab and respawn missing processes. > > >> > > >> No joy. > > > > > > hrm > > > > > >> The console indeed shows agetty restarting by emitting a new set of > > >> lines "This is bla bla bla ... login:" > > >> > > >> But still no keyboard input. > > >> > > >>> You may need to trace the getty process and see what it''s doing at > > >>> the time. > > >> > > >> Uhh... trace? You went over my head there... :-P > > > > > > You can use strace (if it''s installed) to see what a running process > > > is doing. An example on my subversion server. > > > > > > (via ssh to svn) > > > > > > --- 8< cut >8 --- > > > [root@svn ~]# ps auxww | grep getty > > > root 27371 0.0 0.1 3804 544 xvc0 Ss+ 04:08 0:00 > > > /sbin/agetty xvc0 9600 vt100-nav > > > root 27409 0.0 0.1 61156 716 pts/0 R+ 04:14 0:00 grep > > > getty [root@svn ~]# strace -p 27371 > > > Process 27371 attached - interrupt to quit > > > read(0, "\r", 1) = 1 > > > uname({sys="Linux", node="svn.home.chezbliss.com", ...}) = 0 > > > write(1, "\r\n", 2) = 2 > > > open("/etc/issue", O_RDONLY) = 3 > > > ... > > > ... > > > uname({sys="Linux", node="svn.home.chezbliss.com", ...}) = 0 > > > write(1, "svn.home.chezbliss.com", 22) = 22 > > > write(1, " login: ", 8) = 8 > > > --- 8< cut >8 --- > > > > > > The above was generated when I hit the enter key on the console > > > > > > --- 8< cut >8 --- > > > [root@shark ~]# xm console svn > > > > > > CentOS release 5.5 (Final) > > > Kernel 2.6.18-194.26.1.el5xen on an x86_64 > > > > > > svn.home.chezbliss.com login: > > > --- 8< cut >8 --- > > > > > > This way, you can see exactly what the getty process is doing (or not > > > doing). From the sounds of it, it sounds like the device driver may > > > have a bug in it where it isn''t correctly attaching to the input > > > stream. Unfortunately I don''t know enough about the Xen console driver > > > internals to be able to point you to a solution to the problem, but > > > using strace may give some idea of where to start. > > > > The bad news is ''emerge strace'' failed horribly on my system :( > > "strace" is in portage, so it should work. Not sure why it failed on your > system. It may be related to the hardened profile you are running. >Possibly so. emerge managed to pull the source, but failed during make, complaining of some ''undefined symbol'' or such.> > I just tried ''emerge mingetty'' and replace the hvc0 agetty with > > mingetty. Although mingetty managed to capture hvc0, still the same > > ''keyboard not responsive'' problem. > > > > I strongly suspect a kernel misconfig on my part, though. dmesg does > > not indicate anything related to keyboard, while it indicates mice > > being found. > > > > I''ll try mucking up the kernel config > > Did you manage to test with the xen-sources to see if that has any effect? >I tried to revert but the VM becomes wacky, so I re-revert the hardened VM to the latest, and am now creating a new VM to test the xen-sources.> -- > Joost-- Pandu E Poluan ~ IT Optimizer ~ Visit my Blog: http://pepoluan.posterous.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Joost Roeleveld
2011-Mar-25 09:33 UTC
Re: [Xen-users] XenServer console displays bootup but can''t receive keyboard input?
On Friday 25 March 2011 14:46:36 Pandu Poluan wrote:> On Fri, Mar 25, 2011 at 13:29, Joost Roeleveld <joost@antarean.org> wrote: > > On Friday 25 March 2011 11:39:21 Pandu Poluan wrote: > > > On Fri, Mar 25, 2011 at 11:08, Melody Bliss <melodybliss@gmail.com>wrote:> > > > On Thu, Mar 24, 2011 at 8:54 PM, Pandu Poluan <pandu@poluan.info>wrote:> > > >> On Fri, Mar 25, 2011 at 10:50, Melody Bliss > > > The bad news is ''emerge strace'' failed horribly on my system :( > > > > "strace" is in portage, so it should work. Not sure why it failed on > > your > > system. It may be related to the hardened profile you are running. > > Possibly so. emerge managed to pull the source, but failed during > make, complaining of some ''undefined symbol'' or such.Ok, lets leave this bit for now. Think this is related to something else. Maybe check on the gentoo-hardened list for this as the people there are more likely to help with that :)> > > I just tried ''emerge mingetty'' and replace the hvc0 agetty with > > > mingetty. Although mingetty managed to capture hvc0, still the same > > > ''keyboard not responsive'' problem. > > > > > > I strongly suspect a kernel misconfig on my part, though. dmesg does > > > not indicate anything related to keyboard, while it indicates mice > > > being found. > > > > > > I''ll try mucking up the kernel config > > > > Did you manage to test with the xen-sources to see if that has any > > effect? > > I tried to revert but the VM becomes wacky, so I re-revert the > hardened VM to the latest, and am now creating a new VM to test the > xen-sources.Ok, I currently believe, like you, that the issue is related to kernel and/or drivers. To test properly, please use a non-hardened gentoo profile with the xen-sources kernel (I use version 2.6.34-r4) using the .config I send you previously. That way we can be certain it''s not related to XenServer. :) -- Joost Roeleveld _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pandu Poluan
2011-Mar-25 11:11 UTC
Re: [Xen-users] XenServer console displays bootup but can''t receive keyboard input?
On Fri, Mar 25, 2011 at 16:33, Joost Roeleveld <joost@antarean.org> wrote:> Ok, I currently believe, like you, that the issue is related to kernel and/or > drivers. > To test properly, please use a non-hardened gentoo profile with the xen-sources > kernel (I use version 2.6.34-r4) using the .config I send you previously. > > That way we can be certain it''s not related to XenServer. :) > > -- > Joost Roeleveld >genkernel --oldconfig all aborts with "ERROR: Cannot locate kernel binary">.<-- Pandu E Poluan ~ IT Optimizer ~ Visit my Blog: http://pepoluan.posterous.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Joost Roeleveld
2011-Mar-25 11:14 UTC
Re: [Xen-users] XenServer console displays bootup but can''t receive keyboard input?
On Friday 25 March 2011 18:11:36 Pandu Poluan wrote:> On Fri, Mar 25, 2011 at 16:33, Joost Roeleveld <joost@antarean.org> wrote: > > Ok, I currently believe, like you, that the issue is related to kernel > > and/or drivers. > > To test properly, please use a non-hardened gentoo profile with the > > xen-sources kernel (I use version 2.6.34-r4) using the .config I send > > you previously. > > > > That way we can be certain it''s not related to XenServer. :) > > > > -- > > Joost Roeleveld > > genkernel --oldconfig all aborts with "ERROR: Cannot locate kernel binary"Please try the following: 1) Copy my config into the kernel-source-tree as ".config" 2) run " make oldconfig " 3) run " make " copy the file "bzImage" to the correct location. To avoid issues, try to avoid using genkernel at this stage. -- Joost _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pandu Poluan
2011-Mar-25 12:01 UTC
Re: [Xen-users] XenServer console displays bootup but can''t receive keyboard input?
On Fri, Mar 25, 2011 at 18:14, Joost Roeleveld <joost@antarean.org> wrote:> On Friday 25 March 2011 18:11:36 Pandu Poluan wrote: >> On Fri, Mar 25, 2011 at 16:33, Joost Roeleveld <joost@antarean.org> wrote: >> > Ok, I currently believe, like you, that the issue is related to kernel >> > and/or drivers. >> > To test properly, please use a non-hardened gentoo profile with the >> > xen-sources kernel (I use version 2.6.34-r4) using the .config I send >> > you previously. >> > >> > That way we can be certain it''s not related to XenServer. :) >> > >> > -- >> > Joost Roeleveld >> >> genkernel --oldconfig all aborts with "ERROR: Cannot locate kernel binary" > > Please try the following: > > 1) Copy my config into the kernel-source-tree as ".config" > 2) run " make oldconfig " > 3) run " make " > > copy the file "bzImage" to the correct location. > > To avoid issues, try to avoid using genkernel at this stage. > > -- > Joost >More fly in the ointment: XenServer''s pygrub refuses to boot without an initramfs *sigh* Well, I guess we''ll try again on Monday. Now I need to go to a cousin''s birthday party. (BTW, I live in Indonesia, GMT+7) Rgds, -- Pandu E Poluan ~ IT Optimizer ~ Visit my Blog: http://pepoluan.posterous.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Joost Roeleveld
2011-Mar-25 12:37 UTC
Re: [Xen-users] XenServer console displays bootup but can''t receive keyboard input?
On Friday 25 March 2011 19:01:39 Pandu Poluan wrote:> On Fri, Mar 25, 2011 at 18:14, Joost Roeleveld <joost@antarean.org> wrote: > > On Friday 25 March 2011 18:11:36 Pandu Poluan wrote: > >> On Fri, Mar 25, 2011 at 16:33, Joost Roeleveld <joost@antarean.org>wrote:> >> > Ok, I currently believe, like you, that the issue is related to > >> > kernel > >> > and/or drivers. > >> > To test properly, please use a non-hardened gentoo profile with > >> > the > >> > xen-sources kernel (I use version 2.6.34-r4) using the .config I > >> > send > >> > you previously. > >> > > >> > That way we can be certain it''s not related to XenServer. :) > >> > > >> > -- > >> > Joost Roeleveld > >> > >> genkernel --oldconfig all aborts with "ERROR: Cannot locate kernel > >> binary" > > > > Please try the following: > > > > 1) Copy my config into the kernel-source-tree as ".config" > > 2) run " make oldconfig " > > 3) run " make " > > > > copy the file "bzImage" to the correct location. > > > > To avoid issues, try to avoid using genkernel at this stage. > > > > -- > > Joost > > More fly in the ointment: XenServer''s pygrub refuses to boot without > an initramfsThere should be a way to avoid that. I haven''t needed an initramfs for the past 5 or so years...> *sigh* > > Well, I guess we''ll try again on Monday. Now I need to go to a > cousin''s birthday party.Nice, hope the party if fun> (BTW, I live in Indonesia, GMT+7)That explains the time difference :) It''s a nice and beautifull country. -- Joost _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pandu Poluan
2011-Mar-29 08:27 UTC
Re: [Xen-users] XenServer console displays bootup but can''t receive keyboard input?
On Fri, Mar 25, 2011 at 19:37, Joost Roeleveld <joost@antarean.org> wrote:> On Friday 25 March 2011 19:01:39 Pandu Poluan wrote: >> On Fri, Mar 25, 2011 at 18:14, Joost Roeleveld <joost@antarean.org> wrote: >> > On Friday 25 March 2011 18:11:36 Pandu Poluan wrote: >> >> On Fri, Mar 25, 2011 at 16:33, Joost Roeleveld <joost@antarean.org> > wrote:[-- snip --] Okay, problem solved. Apparently it was XenCenter that''s buggy, and after the first time of booting a PV-enabled VM, I must close and re-open XenCenter. Meh. And to think that I had recompiled Gentoo for perhaps 20-30 times >.< Oh well. All''s well that ends well. At least I''m now really intimate with how Gentoo works :-P Rgds, -- Pandu E Poluan ~ IT Optimizer ~ Visit my Blog: http://pepoluan.posterous.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users