Hi, I’m still having trouble rooting xen. I’ve tried all kinds of different boot parameters and I got all kinds of different errors. When I trying the setting given in the user manual: title xen kernel /boot/xen-2.0.gz dom0_mem=131072 module /boot/vmlinux-2.6-xen0 root=/dev/sda4 ro console=tty1 I get the following error: Root-NFS: No NFS server available, giving up. VFS: Unable to mount root fs via NFS, trying floopy. Someone on the mailing list said this was cause because the system can’t find the root fs. Then I tried “module /boot/vmlinux-2.6-xen0 root=/dev/hda2 ro console=tty0”. This is where my root partition is. But I get the error: Kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(3,4) I then tried all possible permutation with the devices hdaX and sdaX and console=tty0, tty1, ttyS0. I’m not too solid on what these different things mean. Finally when I do “module /boot/vmlinux-2.6-xen0 root=/dev/hda1 ro console=tty0”, I get: Warning: unable to open an initial console. /////////////////////////////// //WARNING: Currently emulating unsupported memory accesses //in /lib/tls libraries. The emulation is very slow. To //ensure full performance you should execute the following //as root: mv /lib/tls /lib/tls.disabled /////////////////////////////// This is strange because I already renamed this item. I did a ‘Whereis’ and a ‘Find’, and found another copy of it in /usr/bin and renamed that. When the error message continued, I just deleted them out of desperation and I still get the same error. Does anyone know what might be cause this error even though TLS was removed? Thank you. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jacek Aviles wrote:> module /boot/vmlinux-2.6-xen0 root=/dev/sda4 ro console=tty1This is (obviously) pointing to the wrong root filesystem. You must point to the right one, or the kernel won''t boot.> Root-NFS: No NFS server available, giving up. > VFS: Unable to mount root fs via NFS, trying floopy.The Xen kernels are built by default with NFS-root support, and it will kick in as a fallthrough if a conventional block device as the root filesystem can''t be found. The kernel''s just trying all its options before throwing up its hands.> Then I tried “module /boot/vmlinux-2.6-xen0 root=/dev/hda2 ro > console=tty0”. This is where my root partition is. But I get the error: > > Kernel panic - not syncing: VFS: unable to mount root fs on > unknown-block(3,4)Major 3, minor 4 is /dev/hda4. It seems rather odd and unlikely that your kernel would start magically misparsing the root= argument. (If it was doing that, I''d be amazed if it would run anything at all, because the CPU would most likely be hosed entirely.)> I then tried all possible permutation with the devices hdaX and sdaX and > console=tty0, tty1, ttyS0. I’m not too solid on what these different > things mean.You should probably learn. Google, and/or read relevant files in the Documentation/ subdirectory of your kernel source tree.> Finally when I do “module /boot/vmlinux-2.6-xen0 root=/dev/hda1 ro > console=tty0”, I get: > > Warning: unable to open an initial console.There''s no /dev/console, but it''s apparently still trying. I know some people load the packaged kernel''s initrd as a workaround for this, since the root filesystem itself on newer RPM-based distros that use udev actually contains no device nodes at all.> /////////////////////////////// > //WARNING: Currently emulating unsupported memory accesses //in /lib/tls > libraries. The emulation is very slow. To //ensure full performance > you should execute the following //as root: mv /lib/tls /lib/tls.disabled > ///////////////////////////////Okay, this is normal.> This is strange because I already renamed this item. I did a ‘Whereis’ > and a ‘Find’, and found another copy of it in /usr/bin and renamed that. > When the error message continued, I just deleted them out of > desperation and I still get the same error. Does anyone know what might > be cause this error even though TLS was removed? Thank you.Depends on the distribution you''re using. You didn''t mention which one. I know FC4 has no /lib/tls, because the libraries in /lib are the TLS/NPTL enabled ones. I know it''s something RPM-based, and recent (uses udev). Did it ever reach a login: prompt? -- Derrik Pates demon@devrandom.net _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> > This is strange because I already renamed this item. I did a ‘Whereis’ > > and a ‘Find’, and found another copy of it in /usr/bin and renamed that. > > When the error message continued, I just deleted them out of > > desperation and I still get the same error. Does anyone know what might > > be cause this error even though TLS was removed? Thank you. > > Depends on the distribution you''re using. You didn''t mention which one. > I know FC4 has no /lib/tls, because the libraries in /lib are the > TLS/NPTL enabled ones. I know it''s something RPM-based, and recent (uses > udev).FC4''s libc (I think) understands when it''s running on Xen and automagically disables TLS... If you''re running a distro where direct seg refs are sometimes used directly in applications (Gentoo... others?) that would make XenLinux complain even if tls is disabled. Don''t worry too much, though - it''ll still run (maybe a bit slower, depending on how ofter the direct seg refs are used). Cheers, Mark> Did it ever reach a login: prompt?_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Aug 16, 2005 at 03:56:17PM +0100, Mark Williamson wrote:> FC4''s libc (I think) understands when it''s running on Xen and automagically > disables TLS... If you''re running a distro where direct seg refs are > sometimes used directly in applications (Gentoo... others?) that would make > XenLinux complain even if tls is disabled. Don''t worry too much, though - > it''ll still run (maybe a bit slower, depending on how ofter the direct seg > refs are used).I''ve tried running FC4 inside a domU (with Xen 2.0.6) - I''ve tried setting it up via rpmstrap with both the .i386 and .i686 glibc RPMs. I still get this complaint from, it, FYI, even after _explicitly_ adding a reference to the ''/lib/i686/nosegneg'' (iirc) directory. It doesn''t seem to adversely affect the running of the domain, but Xen/XenLinux doesn''t seem to believe that the libc actually does the right thing. (I''m hijacking the thread, I know...) -- Derrik Pates demon@devrandom.net _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I''ve ran into this a lot of times in the past so I''ve more or less gotten the hang of getting it to work. Try creating an initrd for your kernel by first booting with your regular kernel and then: mkinitrd /boot/initrd-<kernel_version>-xen0.img <kernel_version>-xen0 modify /etc/grub.conf and add: module /boot/initrd-<kernel_version>-xen0.img to the xen boot options Then try rebooting again. Most likely even though you''ve compiled everything into the kernel /dev is empty and you see nothing past the WARNING: /lib/tls message. In more recent RH-based distributions (not sure about others), /dev is populated by udev on boot. If all else fails, you can always MAKEDEV console null zero to make those permament. - gino ledesma On 8/15/05, Jacek Aviles <ja754@nyu.edu> wrote:> Hi, > > I''m still having trouble rooting xen. I''ve tried all kinds of different > boot parameters and I got all kinds of different errors. When I trying > the setting given in the user manual: > > title xen > kernel /boot/xen-2.0.gz dom0_mem=131072 > module /boot/vmlinux-2.6-xen0 root=/dev/sda4 ro console=tty1 > > I get the following error: > > Root-NFS: No NFS server available, giving up. > VFS: Unable to mount root fs via NFS, trying floopy. > > Someone on the mailing list said this was cause because the system can''t > find the root fs. > > Then I tried "module /boot/vmlinux-2.6-xen0 root=/dev/hda2 ro > console=tty0". This is where my root partition is. But I get the error: > > Kernel panic - not syncing: VFS: unable to mount root fs on > unknown-block(3,4) > > I then tried all possible permutation with the devices hdaX and sdaX and > console=tty0, tty1, ttyS0. I''m not too solid on what these different > things mean. > > Finally when I do "module /boot/vmlinux-2.6-xen0 root=/dev/hda1 ro > console=tty0", I get: > > Warning: unable to open an initial console. > > /////////////////////////////// > //WARNING: Currently emulating unsupported memory accesses //in /lib/tls > libraries. The emulation is very slow. To //ensure full performance > you should execute the following //as root: mv /lib/tls /lib/tls.disabled > /////////////////////////////// > > This is strange because I already renamed this item. I did a ''Whereis'' > and a ''Find'', and found another copy of it in /usr/bin and renamed that. > When the error message continued, I just deleted them out of > desperation and I still get the same error. Does anyone know what might > be cause this error even though TLS was removed? Thank you. > > > _______________________________________________ > 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
Yes, I am running FC4. After I get the working I don't get a login. It says: Pausing... 5 Then the five counts down to zero and then it says: Continuing... And then it just stops and just hangs. There's a blinking cursor but it doesn't take any input. It just blinks ...mockingly. So is there something else I can do under FC4 to disable tls?? Thanks ----- Original Message ----- From: Mark Williamson <mark.williamson@cl.cam.ac.uk> Date: Tuesday, August 16, 2005 10:56 am Subject: Re: [Xen-users] help boot ing xen> > > This is strange because I already renamed this item. I did a > ‘Whereis’> > and a ‘Find’, and found another copy of it in /usr/bin > and renamed that. > > > When the error message continued, I just deleted them out of > > > desperation and I still get the same error. Does anyone know > what might > > > be cause this error even though TLS was removed? Thank you. > > > > Depends on the distribution you're using. You didn't mention > which one. > > I know FC4 has no /lib/tls, because the libraries in /lib are the > > TLS/NPTL enabled ones. I know it's something RPM-based, and > recent (uses > > udev). > > FC4's libc (I think) understands when it's running on Xen and > automagically > disables TLS... If you're running a distro where direct seg refs > are > sometimes used directly in applications (Gentoo... others?) that > would make > XenLinux complain even if tls is disabled. Don't worry too much, > though - > it'll still run (maybe a bit slower, depending on how ofter the > direct seg > refs are used). > > Cheers, > Mark > > > Did it ever reach a login: prompt? >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> And then it just stops and just hangs. There''s a blinking cursor but > it doesn''t take any input. It just blinks ...mockingly. > > So is there something else I can do under FC4 to disable tls??You need to recompile the kernel with CONFIG_CURSOR_BLINK_MOCKING turned off. Sorry, I just couldn''t help myself. ;-) -- Though I''m deep inside a storm it won''t defeat me, Floating free. Look out here comes trouble, Maybe I''m just pushing through a dream, But strange how things feel quite real to me. http://surreal.istic.org/ That which will guide the lost child back to her mother''s arms... EXILE. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Aug 16, 2005 at 07:17:19PM -0400, Jacek Aviles wrote:> Yes, I am running FC4. After I get the working I don''t get a login.> And then it just stops and just hangs. There''s a blinking cursor but it > doesn''t take any input. It just blinks ...mockingly. > > So is there something else I can do under FC4 to disable tls??The lack of console output isn''t related to the TLS/NPTL message at all. That''s due to the fact that the root filesystem has no device nodes when the kernel mounts it (particularly, no /dev/console). You either need to use an existing initrd, or use mkinitrd against the dom0 kernel and use that initrd, so that there will be a /dev/console and friends to open. -- Derrik Pates demon@devrandom.net _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> The lack of console output isn''t related to the TLS/NPTL message at all.Absolutely.> That''s due to the fact that the root filesystem has no device nodes when > the kernel mounts it (particularly, no /dev/console). You either need to > use an existing initrd, or use mkinitrd against the dom0 kernel and use > that initrd, so that there will be a /dev/console and friends to open.I''m surprised it just sits there and blinks though... I''d expect it to gripe more about not having an initial console. Try using the vanilla Fedora initrd and see if that fixes things. Cheers, Mark _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, Aug 17, 2005 at 03:26:03PM +0100, Mark Williamson wrote:> I''m surprised it just sits there and blinks though... I''d expect it to gripe > more about not having an initial console.Well, according to his initial mail, it did complain, but it apparently kept on going in spite of the lack of /dev/console. Which seems a bit odd, but not entirely. -- Derrik Pates demon@devrandom.net _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I''ve faced the same problem for some time. Do you think there''s anything we can build in the kernel and forfeit the use of an initrd? I mean, what are the modules in the initrd that are fixing the /dev/ issue? Later on I''ll the mkinitrd procedure described by Gino and let you know of the results. Thanks -----Mensagem original----- De: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] Em nome de Derrik Pates Enviada em: quarta-feira, 17 de agosto de 2005 11:31 Para: xen-users@lists.xensource.com Assunto: Re: [Xen-users] help boot ing xen On Wed, Aug 17, 2005 at 03:26:03PM +0100, Mark Williamson wrote:> I''m surprised it just sits there and blinks though... I''d expect it togripe> more about not having an initial console.Well, according to his initial mail, it did complain, but it apparently kept on going in spite of the lack of /dev/console. Which seems a bit odd, but not entirely. -- Derrik Pates demon@devrandom.net _______________________________________________ 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