Hi list, I am running a virtualized server. Dom0 uses Xen 3.2.1 with Debian Etch and a custom kernel 2.6.21 created by my webhosting company. I install my domU using debootstrap for a Debian Etch with 2.6.18-6-xen-amd64 kernel. Everything works well except the fact that once the VM is started I cannot "xm console" into it. It only works while it is booting and while it is shutting down. I tried many different configurations for inittab and the domU config file with tty, xvc0 and hvc0, but none worked. I tried: --- extra = "console=xvc0 xencons=xvc0" AND extra = "console=tty xencons=tty" --- But none worked. I noted that in the inittab file of my domU, when I put the following line in it: --- 1:2345:respawn:/sbin/getty 38400 xvc0 --- the console never shows up, so I cannot log in my domU. But if I put instead: --- 1:2345:respawn:/sbin/getty 38400 tty1 --- Then now the console appears, and it is called tty1. But as soon as I hit ctrl+], then try to xm console into, I am locked out. What''s strange is that in my domU config file, I am using extra "console=xvc0 xencons=xvc0" which I see is past to the kernel, because in the boot message I see: --- Kernel command line: root=/dev/xvda1 console=xvc0 xencons=xvc0 --- But when the console appears, its name is tty1 instead of xvc0 as I would expect it to be. In the boot messages I do see: --- Xen virtual console successfully installed as tty1 --- in /etc/securetty, I have: --- # /etc/securetty: list of terminals on which root is allowed to login. # See securetty(5) and login(1). console xvc0 hvc0 ... tty1 --- So the problem doesn''t come from here (I think). Has anyone run into this problem before and knows how to solve it? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I forgot to add, that I found this in the boot message of the domU: --- XENBUS: Device with no driver: device/console/0 --- It highly seems related to my problem don''t you think? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andy Burns
2008-Sep-01 17:50 UTC
Re: [Xen-users] Re: Unable to xm console in a running domU
2008/9/1 Thomas <iamkenzo@gmail.com>:> I forgot to add, that I found this in the boot message of the domU: > --- > XENBUS: Device with no driver: device/console/0 > --- > It highly seems related to my problem don''t you think?No that''s a normal message, I see it in /var/log/dmesg of all my domU yet xm console still works fine to them all ... _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thank you Andy. I have tried the following: In my config file: --- extra = ''xencons=tty'' --- and in /etc/inittab: --- 1:2345:respawn:/sbin/getty 38400 tty --- The result is, the following boot message: --- Starting periodic command scheduler: crond. INIT: Id "1" respawning too fast: disabled for 5 minutes INIT: no more processes left in this runlevel --- So it is definitely a problem in one or both of these parameters: the extra and inittab. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I have also tested the following params: config file: --- extra = "TERM=xterm xencons=tty console=tty1" --- and inittab: --- 1:2345:respawn:/sbin/getty 38400 tty1 --- Now after the boot sequence is complete, the tty1 console appears. But I am still unable to "xm console" into the domU. And I don''t understand why when I specify extra = "xencons=xvc0", I still get "Xen virtual console successfully installed as tty1". Is that my true problem? Shouldn''t it be xvc0 that should be installed as a virtual console??? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andy Burns
2008-Sep-01 18:18 UTC
Re: [Xen-users] Re: Unable to xm console in a running domU
2008/9/1 Thomas <iamkenzo@gmail.com>:> config file: > extra = "TERM=xterm xencons=tty console=tty1" > > and inittab: > 1:2345:respawn:/sbin/getty 38400 tty1 > > Now after the boot sequence is complete, the tty1 console appears. But > I am still unable to "xm console" into the domU.Since you are seeing the console messages at startup/shutdown think the actual xvc0 is working, just that you haven''t got the getty command right to allow login once it''s up, when you do xm console, does it connect (without login) and let you disconnect with ctrl-5 or ctrl-[ Here is the inittab line from one of my CentOS domUs co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav worth a try. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
When I xm console, what happens, is ... nothing, nothing new appears. I can then disconnect using ctrl+$ and get back to my original console prompt in dom0. Hmmm, I am on a Mac, and for some reason ctrl+] doesn''t work, but ctrl+$ does for disconnecting. Could that be a sign of problem? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Disregard the ctrl+$ thing, it is because I am using an azerty keyboard, so for me ] is located at the $ spot. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
* Thomas <iamkenzo@gmail.com> [2008-09-01 19:42]:> Everything works well except the fact that > once the VM is started I cannot "xm console" into it. It only works > while it is booting and while it is shutting down.Isn''t that the same problem you had back in april/May? IIRC that was an issue with your inittab... Isn''t there anything happening, even if you press enter? Amicalement, Félix -- Félix Krohn, <felix.krohn@ovh.net> _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Felix, Yes it is me with the same problem. And you know what, yes when I press Enter the login finally appears, I don''t know how I never had the idea to press this key in 3 months... I will now go kill myself. Thank you very much Felix. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
* Thomas <iamkenzo@gmail.com> [2008-09-02 10:39]:> Yes it is me with the same problem. And you know what, yes when I > press Enter the login finally appears, I don''t know how I never had > the idea to press this key in 3 months...Glad it''s a simple solution :-)> I will now go kill myself.Kill bugs, not people! Amicalement, Félix -- Félix Krohn, <felix.krohn@ovh.net> _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users