Thanks Petersson, I have not LVM, the Xen use xen.gz as a kernel and use vmlinuz-2.6.11.2-xen0 as a module, if i initrid vmlinuz-xxx-xen0, and add lines in grub/menu.lst: kernel /xen.gz dom0_mem=131072 console=vga module /vmlinuz-2.6.11.2-xen0 root=dev/hda1 ro console=tty0 initrd /initrd-2.6.11.2-xen0 it said: Error19: Linux kernel must be loaded before initrd how to set the initrd? "Petersson, Mats" <mats.petersson@amd.com> writon: Most likely, you haven''t got your initrd set up correctly, so your root file system isn''t being detected. The final step in the kernel is to try NFS and Floppy file systems, if it can''t find a root fs somewhere else. You either need to make sure that your initrd contains the relevant modules for the disk(s) and file-systems that you use (including for instance LVM if you''re using that on the disk). Another method is to disable modules, building a monolithic kernel. That way, you don''t need an initrd to get things going. This was the way I got it working when I had the same problem. -- Mats --------------------------------- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of yang jianguo Sent: 20 July 2005 10:03 To: Xen-users@lists.xensource.com Subject: [Xen-users] Trouble in boot dom0 in xen3.0devel xen3.0 booted and dom0 kernel loaded, it said: Root-NFS: No NFS server available, giving up. VFS: Unable to mount root fs via NFS, trying floppy. VFS: Insert root floppy and press ENTER what should i do? -----------info---------------------- xen: unstable, 3.0-devel kernel 2.6.11.2-xen0 .coom/xen-users --------------------------------- DO YOU YAHOO!? __________________________________________________ 赶快注册雅虎超大容量免费邮箱? http://cn.mail.yahoo.com --0-535969942-1121857529=:90649 Content-Type: text/html; charset=gb2312 Content-Transfer-Encoding: 8bit <DIV><BR>Thanks Petersson,</DIV> <DIV>I have not LVM, the Xen use xen.gz as a kernel and use vmlinuz-2.6.11.2-xen0 as a module, if i initrid vmlinuz-xxx-xen0, and add lines in grub/menu.lst:</DIV> <DIV>kernel /xen.gz dom0_mem=131072 console=vga</DIV> <DIV>module /vmlinuz-2.6.11.2-xen0 root=dev/hda1 ro console=tty0</DIV> <DIV>initrd /initrd-2.6.11.2-xen0</DIV> <DIV> </DIV> <DIV>it said:</DIV> <DIV>Error19: Linux kernel must be loaded before initrd</DIV> <DIV> </DIV> <DIV>how to set the initrd?<BR><B><I>"Petersson, Mats" <mats.petersson@amd.com></I></B> writon:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <META content="MSHTML 6.00.2900.2627" name=GENERATOR> <DIV dir=ltr align=left><SPAN class=269370509-20072005><FONT face=Arial color=#0000ff size=2>Most likely, you haven''t got your initrd set up correctly, so your root file system isn''t being detected. The final step in the kernel is to try NFS and Floppy file systems, if it can''t find a root fs somewhere else. </FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=269370509-20072005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=269370509-20072005><FONT face=Arial color=#0000ff size=2>You either need to make sure that your initrd contains the relevant modules for the disk(s) and file-systems that you use (including for instance LVM if you''re using that on the disk). Another method is to disable modules, building a monolithic kernel. That way, you don''t need an initrd to get things going. This was the way I got it working when I had the same problem. </FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=269370509-20072005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=269370509-20072005><FONT face=Arial color=#0000ff size=2>--</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=269370509-20072005><FONT face=Arial color=#0000ff size=2>Mats</FONT></SPAN></DIV><BR> <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma size=2><B>From:</B> xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] <B>On Behalf Of </B>yang jianguo<BR><B>Sent:</B> 20 July 2005 10:03<BR><B>To:</B> Xen-users@lists.xensource.com<BR><B>Subject:</B> [Xen-users] Trouble in boot dom0 in xen3.0devel<BR></FONT><BR></DIV> <DIV></DIV> <DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <P>xen3.0 booted and dom0 kernel loaded, it said:</P> <P>Root-NFS: No NFS server available, giving up.</P> <P>VFS: Unable to mount root fs via NFS, trying floppy.</P> <P>VFS: Insert root floppy and press ENTER</P> <P>what should i do?</P> <P>-----------info----------------------<BR> <BR>xen: unstable, 3.0-devel<BR> <BR>kernel 2.6.11.2-xen0<BR> <BR>.coom/xen-users</P></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV> <P> <HR SIZE=1> DO YOU YAHOO!?<BR></BLOCKQUOTE></BLOCKQUOTE><p>__________________________________________________<br>赶快注册雅虎超大容量免费邮箱?<br>http://cn.mail.yahoo.com --0-535969942-1121857529=:90649-- --===============0471289343=Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users --===============0471289343==--
Hi, When I look at my grub.conf, I see that the initrd passed to xen kernel is written: module /path/to/initrd-2.6.11.2-xen0 In your configuration file, I see initrd /initrd-2.6.11.2-xen0 I think it is your problem. The initrd directive tells to kernel xen.gz to take this initrd. Setting module /path/to/initrd-2.6.11.2-xen0 tells to use initrd-2.6.11.2-xen0 with vmlinuz-2.6.11.2-xen0 Hope this helps. Boris yang jianguo wrote:> > Thanks Petersson, > I have not LVM, the Xen use xen.gz as a kernel and use > vmlinuz-2.6.11.2-xen0 as a module, if i initrid vmlinuz-xxx-xen0, and > add lines in grub/menu.lst: > kernel /xen.gz dom0_mem=131072 console=vga > module /vmlinuz-2.6.11.2-xen0 root=dev/hda1 ro console=tty0 > initrd /initrd-2.6.11.2-xen0 > it said: > Error19: Linux kernel must be loaded before initrd > how to set the initrd? > */"Petersson, Mats" <mats.petersson@amd.com>/* writon: > > Most likely, you haven''t got your initrd set up correctly, so your > root file system isn''t being detected. The final step in the > kernel is to try NFS and Floppy file systems, if it can''t find a > root fs somewhere else. > You either need to make sure that your initrd contains the > relevant modules for the disk(s) and file-systems that you use > (including for instance LVM if you''re using that on the disk). > Another method is to disable modules, building a monolithic > kernel. That way, you don''t need an initrd to get things going. > This was the way I got it working when I had the same problem. > -- > Mats > > ------------------------------------------------------------------------ > *From:* xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] *On Behalf Of > *yang jianguo > *Sent:* 20 July 2005 10:03 > *To:* Xen-users@lists.xensource.com > *Subject:* [Xen-users] Trouble in boot dom0 in xen3.0devel > > xen3.0 booted and dom0 kernel loaded, it said: > > Root-NFS: No NFS server available, giving up. > > VFS: Unable to mount root fs via NFS, trying floppy. > > VFS: Insert root floppy and press ENTER > > what should i do? > > -----------info---------------------- > > xen: unstable, 3.0-devel > > kernel 2.6.11.2-xen0 > > .coom/xen-users > > ------------------------------------------------------------------------ > DO YOU YAHOO!? > > __________________________________________________ > 赶快注册雅虎超大容量免费邮箱? > http://cn.mail.yahoo.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
Hi, When I look at my grub.conf, I see that the initrd passed to xen kernel is written: module /path/to/initrd-2.6.11.2-xen0 In your configuration file, I see initrd /initrd-2.6.11.2-xen0 I think it is your problem. The initrd directive tells to kernel xen.gz to take this initrd. Setting module /path/to/initrd-2.6.11.2-xen0 tells to use initrd-2.6.11.2-xen0 with vmlinuz-2.6.11.2-xen0 Hope this helps. Boris PS: sorry if my message is twice in the thread, but I''m not sure that my mails reach the ml when ml is in cc... yang jianguo wrote:> > Thanks Petersson, > I have not LVM, the Xen use xen.gz as a kernel and use > vmlinuz-2.6.11.2-xen0 as a module, if i initrid vmlinuz-xxx-xen0, and > add lines in grub/menu.lst: > kernel /xen.gz dom0_mem=131072 console=vga > module /vmlinuz-2.6.11.2-xen0 root=dev/hda1 ro console=tty0 > initrd /initrd-2.6.11.2-xen0 > it said: > Error19: Linux kernel must be loaded before initrd > how to set the initrd? > */"Petersson, Mats" <mats.petersson@amd.com>/* writon: > > Most likely, you haven''t got your initrd set up correctly, so your > root file system isn''t being detected. The final step in the > kernel is to try NFS and Floppy file systems, if it can''t find a > root fs somewhere else. > You either need to make sure that your initrd contains the > relevant modules for the disk(s) and file-systems that you use > (including for instance LVM if you''re using that on the disk). > Another method is to disable modules, building a monolithic > kernel. That way, you don''t need an initrd to get things going. > This was the way I got it working when I had the same problem. > -- > Mats > > ------------------------------------------------------------------------ > *From:* xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] *On Behalf Of > *yang jianguo > *Sent:* 20 July 2005 10:03 > *To:* Xen-users@lists.xensource.com > *Subject:* [Xen-users] Trouble in boot dom0 in xen3.0devel > > xen3.0 booted and dom0 kernel loaded, it said: > > Root-NFS: No NFS server available, giving up. > > VFS: Unable to mount root fs via NFS, trying floppy. > > VFS: Insert root floppy and press ENTER > > what should i do? > > -----------info---------------------- > > xen: unstable, 3.0-devel > > kernel 2.6.11.2-xen0 > > .coom/xen-users > > ------------------------------------------------------------------------ > DO YOU YAHOO!? > > __________________________________________________ > 赶快注册雅虎超大容量免费邮箱? > http://cn.mail.yahoo.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