I''m running Xen 3.2 on Debian 5.0 (Lenny) and am having trouble booting up a Debian Etch DomU. It hangs at the end when it says "Starting periodic command scheduler: cron." It''s just completely frozen. At one point I set it sit for a few hours and got back into the console and it said something about "time went backwards" but I used the extra="clocksource=jiffies" workaround, but it still hangs while it boots. Here is my network-custom file: #!/bin/sh dir=$(dirname "$0") "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 "$dir/network-bridge" "$@" vifnum=1 netdev=eth1 Here is my config file in /etc/xen: kernel="/boot/vmlinuz-2.6.26-2-xen-686" ramdisk="/boot/initrd.img-2.6.26-2-xen-686" memory=128 name="mail" root="/dev/sda1 ro" disk=["phy:vg0/mail_root,sda1,w"] extra="4" extra="clocksource=jiffies" vif=["bridge=eth0"] _________________________________________________________________ Hotmail® has ever-growing storage! Don’t worry about storage limits. http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, Sep 30, 2009 at 6:36 AM, WM RWL <wmrwl@hotmail.com> wrote:> I''m running Xen 3.2 on Debian 5.0 (Lenny) and am having trouble booting up a > Debian Etch DomU. It hangs at the end when it says "Starting periodic > command scheduler: cron."I think it''s fully booted by then. You just don''t see the login prompt.> Here is my config file in /etc/xen: > > kernel="/boot/vmlinuz-2.6.26-2-xen-686" > ramdisk="/boot/initrd.img-2.6.26-2-xen-686"I don''t like putting kernels on dom0. For one thing, you need to sync dom0''s kernel and domU''s /lib/modules directory. I prefer pygrub or pvgrub instead. Not directly related to your problem though. What I think happens is your domU doesn''t know where the console is. One way to fix that is look at domU boot log, look for "xvc0" or "hvc0". That''s where xen console is. After that, you need to edit domU''s /etc/inittab and /etc/securetty to spawn login console and allow root login on /dev/xvc0 (or hvc0) -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha wrote:>What I think happens is your domU doesn''t know where the console is.More correctly, I think it''s simply a case of not being configured to start a login process (getty) on it. Adding this line to /etc/inittab fixed it for me : vc:23:respawn:/sbin/getty 38400 hvc0 -- Simon Hobson Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Christian Tramnitz
2009-Sep-30 09:11 UTC
[Xen-users] Re: Problems with booting Debian DomU
Simon Hobson wrote:> Fajar A. Nugraha wrote: > >> What I think happens is your domU doesn''t know where the console is. > > More correctly, I think it''s simply a case of not being configured to > start a login process (getty) on it. > > Adding this line to /etc/inittab fixed it for me : > vc:23:respawn:/sbin/getty 38400 hvc0This seems to be a xenified and not a pvops kernel, so xvc0 would be more likely to work... Best regards, Christian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Christian Tramnitz wrote:> Simon Hobson wrote: >> Fajar A. Nugraha wrote: >> >>> What I think happens is your domU doesn''t know where the console is. >> >> More correctly, I think it''s simply a case of not being configured to >> start a login process (getty) on it. >> >> Adding this line to /etc/inittab fixed it for me : >> vc:23:respawn:/sbin/getty 38400 hvc0 > > This seems to be a xenified and not a pvops kernel, so xvc0 would be > more likely to work... > > > Best regards, > Christian > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >I solved this adding the next line to my Domu''s .cfg file: extra = ''console=hvc0 xencons=tty'' And yes, it only happens (at least for me) in a Lenny Dom0 with a Etch DomU. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I probably should have mentioned that I already changed /etc/inittab to: 1:2345:respawn:/sbin/getty 38400 hvc0 2:23:respawn:/sbin/getty 38400 tty1 3:23:respawn:/sbin/getty 38400 tty3 4:23:respawn:/sbin/getty 38400 tty4 5:23:respawn:/sbin/getty 38400 tty5 6:23:respawn:/sbin/getty 38400 tty6 Should I changed it to: vc:23:respawn:/sbin/getty 38400 hvc0 or vc:23:respawn:/sbin/getty 38400 xvc0? I will try to add extra = ''console=hvc0 xencons=tty'' to my DomU config file> Christian Tramnitz wrote: > > Simon Hobson wrote: > >> Fajar A. Nugraha wrote: > >> > >>> What I think happens is your domU doesn''t know where the console is. > >> > >> More correctly, I think it''s simply a case of not being configured to > >> start a login process (getty) on it. > >> > >> Adding this line to /etc/inittab fixed it for me : > >> vc:23:respawn:/sbin/getty 38400 hvc0 > > > > This seems to be a xenified and not a pvops kernel, so xvc0 would be > > more likely to work... > > > > > > Best regards, > > Christian > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > I solved this adding the next line to my Domu''s .cfg file: > > extra = ''console=hvc0 xencons=tty'' > > And yes, it only happens (at least for me) in a Lenny Dom0 with a Etch DomU. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_________________________________________________________________ Lauren found her dream laptop. Find the PC that’s right for you. http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
It worked! I added extra = ''console=hvc0 xencons=tty'' to my DomU config file and it fired right up!! Thank you so much! My only problem now is when I try to boot a CentOS 4 DomU on the Lenny Dom0, I get: INIT: no more processes left in this runlevel This is my /etc/xen config file: kernel="/boot/vmlinuz-2.6.26-2-xen-686" ramdisk="/boot/initrd.img-2.6.26-2-xen-686" memory=128 name="backend" root="/dev/sda1 ro" disk=["phy:vg0/backend_root,sda1,w"] extra="4" extra="clocksource=jiffies" extra="console=hvc0 xencons=tty" vif=["bridge=eth0"]> Christian Tramnitz wrote: > > Simon Hobson wrote: > >> Fajar A. Nugraha wrote: > >> > >>> What I think happens is your domU doesn''t know where the console is. > >> > >> More correctly, I think it''s simply a case of not being configured to > >> start a login process (getty) on it. > >> > >> Adding this line to /etc/inittab fixed it for me : > >> vc:23:respawn:/sbin/getty 38400 hvc0 > > > > This seems to be a xenified and not a pvops kernel, so xvc0 would be > > more likely to work... > > > > > > Best regards, > > Christian > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > I solved this adding the next line to my Domu''s .cfg file: > > extra = ''console=hvc0 xencons=tty'' > > And yes, it only happens (at least for me) in a Lenny Dom0 with a Etch DomU. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-usersLauren found her dream laptop. Find the PC that’s right for you. _________________________________________________________________ Lauren found her dream laptop. Find the PC that’s right for you. http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users