Hi, I have a problem booting a debian DomU. On the System is Debian Etch (with 2.6.24-16 from ubuntu) or Ubuntu 8.04 with 2.6.24-16. Everytime it runs up normal until it stars everything (cron is last) and then it hangs. No console input is recognized. if i "xm shutdown" the domain it shuts down correctly. xend doesn''t provide an error. I have installed xen on debian etch (the 2.6.24-16-xen kernel from ubuntu) and different versions of gcc. And installed the original xen on ubutntu.Both do the same things with debian domains. Also it only loads up with the ramdisk initrd.img-2.6.24-16-xen. The Dom0 and DumU Kernel is the same. Also the ramdisk. I''m running it on a intel dg33-tl board with 8gb ram and nothing special on it. Dom0 works fine without any problems. If i create a new ubuntu domain like: xen-create-image --hostname=xen2.example.com --size=2Gb --swap=256Mb --ide \ --ip=192.168.0.102 --netmask=255.255.255.0 --gateway=192.168.0.1 --force \ --dir=/home/xen --memory=64Mb --arch=i386 --kernel=/boot/vmlinuz-2.6.24-16-xen \ --initrd=/boot/initrd.img-2.6.24-16-xen --install-method=debootstrap --dist=hardy \ --mirror=http://archive.ubuntu.com/ubuntu/ --passwd for example it boots up probably with no errors or hangups. That was tested in ubunu. With debian i haven''t tested it yet. Settings like extra="2 console=xvc0" don''t work either. In ubuntu it loads up the cpu with 100% but it''s not going on. In Debian it just "hangs around" with no cpu load (0.3% - 1%) . Tested it with the 2.6.18.8 which is comming along with xen 3.2.0 (mercurial build). Same results, different kernel. So could you advice me in debugging that? Don''t know where to start, as xend.log xend-debug.log and all other log files display no errors or crashs and the domain keeps running, but not working. Thanks in Advance, Amin -- www.s7u.net, mailto:webmaster@s7u.net www.ednic.de, mailto:webmaster@ednic.de s7u.net Limited Rosenbergstr.95 70193 Stuttgart Tel.: 0711. 99 33 70 20 Fax: 0711. 99 33 70 23 s7u.net Limited, Rosenbergstr.95, 70193 Stuttgart, Amtsgericht Stuttgart, Geschaeftsfuehrer Amin Dandache, USt. ID/VAT DE245989625. s7u.net Limited - Hinweis & Haftungsausschluss: Die auf diese Seite verweisende Nachricht ist eine vertrauliche Nachricht der s7u.net Limited und ausschliesslich fuer den Empfaenger dieser eMail bestimmt. Die s7u.net Limited uebernimmt keinerlei Verantwortung fuer Inhalte, Fehler oder Auslassungen in dieser Nachricht, die Verwendung oder den Missbrauch jeglicher Art oder alles was mit dieser Nachricht beziehungsweise deren Anhängen getan oder unterlassen wird. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Luke S Crawford
2008-May-12 23:00 UTC
Re: [Xen-users] Debian Etch as DomU on Ubuntu 8.04 Hardy Dom0
amin <amin@s7u.net> writes:> Everytime it runs up normal until it stars everything (cron is last) > and then it hangs. > > No console input is recognized. if i "xm shutdown" the domain it shuts > down correctly.This almost always means that you are not running a getty on the console. The box is booting fine, it just isn''t running a getty on the console you are looking at, so it looks like The same problem on a CentOS5.1 DomU is fixed by adding the following line to /etc/inittab 2:2345:respawn:/sbin/mingetty xvc0 look through your /etc/inittabl and find the getty line, and make sure one is running on tty1 Though the console on my debian DomUs all look like they are tty1 so 1:2345:respawn:/sbin/getty 38400 tty1 is the important getty line for my debian DomUs. So yeah... poke around and try to figure out what device it thinks is console and then run a proper getty on that device. (Note, if you want to login as root on that device, also add the devicename to /etc/securettys) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Luke S Crawford wrote:> amin <amin@s7u.net> writes: > >> Everytime it runs up normal until it stars everything (cron is last) >> and then it hangs. >> >> No console input is recognized. if i "xm shutdown" the domain it shuts >> down correctly. >> > > This almost always means that you are not running a getty on the console. > The box is booting fine, it just isn''t running a getty on the console > you are looking at, so it looks like > > The same problem on a CentOS5.1 DomU is fixed by adding the following line to > /etc/inittab > > 2:2345:respawn:/sbin/mingetty xvc0 > > look through your /etc/inittabl and find the getty line, and make sure > one is running on tty1 > > Though the console on my debian DomUs all look like they are tty1 so > > 1:2345:respawn:/sbin/getty 38400 tty1 > > is the important getty line for my debian DomUs. > > So yeah... poke around and try to figure out what device it thinks is console > and then run a proper getty on that device. > > (Note, if you want to login as root on that device, also add the devicename > to /etc/securettys) > >I want to describe it a little more. It''s not just one DomU. The problem is with every Debian System as DomU. They work perfect on a Xen 3.1.0 with a 2.6.18-8 kernel compiled on my old motherboard. Not one problem. But i try to figure out how to upgrade to a newer hardware, and this hardware needs a 2.6.24 kernel (intel ich9 chipset) to work. I also switched to a 64-Bit Distribution of Debian / Ubuntu to get the 8gbyte RAM directly into Dom0. My inittab looks like: ... 1:2345:respawn:/sbin/getty 38400 tty ... The problem is before the console loads up, or while. when i "xm console <domain>" i can''t press enter or any key. It won''t be recognized. At startup the last message is like "starting cron..." and then... hang up. shutdown works, but nothing else. Thanks in advance, Amin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Antonio Lobato
2008-May-12 23:18 UTC
Re: [Xen-users] Debian Etch as DomU on Ubuntu 8.04 Hardy Dom0
I don`t know if it is exactly what can help you, but I can present a "case". I`ve followed http://howtoforge.com/ubuntu-8.04-server-install-xen-from-ubuntu-repositories and all works fine for me. This doc recommends the use of another xen kernel rather than the ubuntu default, because it has some buggy. I`m running two debian etch 64bit as domU and ubuntu server hardy 64bit as dom0. Since I had to install the same kernel on debian, for access /lib/modules/2.6.24-16-xen/, I had to install module-init-tools-3.3-pre1.tar.bz2 from source rather than debian repositories, and had to use equivs for satisfy module-init-tools debian dependencys. important, when compiling module-init-tools, use ./configure --prefix=/usr --bindir=/bin --sbindir=/sbin --sysconfdir=/etc Tom Lobato tinecon.com.br amin escreveu:> Hi, > > I have a problem booting a debian DomU. > > On the System is Debian Etch (with 2.6.24-16 from ubuntu) or Ubuntu > 8.04 with 2.6.24-16. > > Everytime it runs up normal until it stars everything (cron is last) > and then it hangs. > > No console input is recognized. if i "xm shutdown" the domain it shuts > down correctly. > > > xend doesn''t provide an error. > > I have installed xen on debian etch (the 2.6.24-16-xen kernel from > ubuntu) and different versions of gcc. > And installed the original xen on ubutntu.Both do the same things with > debian domains. > > Also it only loads up with the ramdisk initrd.img-2.6.24-16-xen. > > The Dom0 and DumU Kernel is the same. Also the ramdisk. > > I''m running it on a intel dg33-tl board with 8gb ram and nothing > special on it. > Dom0 works fine without any problems. > > If i create a new ubuntu domain like: > xen-create-image --hostname=xen2.example.com --size=2Gb --swap=256Mb > --ide \ > --ip=192.168.0.102 --netmask=255.255.255.0 --gateway=192.168.0.1 > --force \ > --dir=/home/xen --memory=64Mb --arch=i386 > --kernel=/boot/vmlinuz-2.6.24-16-xen \ > --initrd=/boot/initrd.img-2.6.24-16-xen --install-method=debootstrap > --dist=hardy \ > --mirror=http://archive.ubuntu.com/ubuntu/ --passwd > for example > it boots up probably with no errors or hangups. > > That was tested in ubunu. With debian i haven''t tested it yet. > > Settings like extra="2 console=xvc0" don''t work either. > > In ubuntu it loads up the cpu with 100% but it''s not going on. > In Debian it just "hangs around" with no cpu load (0.3% - 1%) . > > Tested it with the 2.6.18.8 which is comming along with xen 3.2.0 > (mercurial build). > Same results, different kernel. > > So could you advice me in debugging that? > Don''t know where to start, as xend.log xend-debug.log and all other > log files display no errors or crashs > and the domain keeps running, but not working. > > > Thanks in Advance, > Amin >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2008-May-12 23:23 UTC
Re: [Xen-users] Debian Etch as DomU on Ubuntu 8.04 Hardy Dom0
easiest solution is to add the following to the guest configuration file: extra=''xencons=tty'' Cheers, Todd _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Luke S Crawford
2008-May-12 23:32 UTC
Re: [Xen-users] Debian Etch as DomU on Ubuntu 8.04 Hardy Dom0
amin <amin@s7u.net> writes:> They work perfect on a Xen 3.1.0 with a 2.6.18-8 kernel compiled on my > old motherboard. > Not one problem. But i try to figure out how to upgrade to a newer > hardware, and this hardware > needs a 2.6.24 kernel (intel ich9 chipset) to work. I also switched to > a 64-Bit Distribution of Debian / Ubuntu > to get the 8gbyte RAM directly into Dom0.The Dom0 and DomU need not share a kernel; my DomU kernel is the debian package linux-image-2.6.18-6-xen-amd64 and my Dom0 kernel is a RHEL 5.1 kernel; the Dom0 kernel needs to support your hardware, Any DomU kernel that supports the same version of xen as your Dom0 should work fine for the DomU, so there is no need, in your case, to use the bleeding edge DomU kernels if they are causing issues.> My inittab looks like: > ... > 1:2345:respawn:/sbin/getty 38400 ttywhen you ''xm create -c '' look for the ''Xen console'' line- mine looks like this: Xen virtual console successfully installed as tty1 that is the device you need to run the getty on. (in my case, with the Debian kernel I use, tty1. with CentOS, it says xvc0)> The problem is before the console loads up, or while. > when i "xm console <domain>" i can''t press enter or any key.Yes, this is exactly the same symptoms I see when I load up a DomU without a getty running on the right device... it scrolls the initialation stuff, starts services, and then just hangs. Disconnecting and reconnecting looks like I have a hung console. (though if you setup IP ahead of time, it''s pingable/sshable- it''s just the console that is broken) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users