i added "noreboot" to read the err info:
Mounted /proc filesystem
Mounting sysfs
Creating /dev
Starting udev
Creating root device
Mounting root filesystem
mount: error 2 mounting ext3
mount: error 2 mounting none
Switching to new root
switchingroot:mounting failed: 22
umount /initrd/dev failed: 2
Kernel panic-not syncing: Attempted to kill init!
----The new menu.lst is:-------
kernel /xen.gz dom0_mem=131072 console=vga
module /vmlinuz-2.6.11.2-xen0 root=dev/hda1 ro console=tty0 noreboot
module /initrd-2.6.11.2-xen0
----the initrd-XXX-xen0 is made as:
mkinitrd initrd-2.6.11.2-xen0 2.6.11.2-xen0
"Petersson, Mats" <mats.petersson@amd.com> 写道:
If you add "noreboot" to the end of kernel line, the machine
shouldn''t try to reboot on error, at least if the error is caused by
something that causes XEN''s machine_restart to be called. Obviously, if
it''s a triple-fault, then the machine will reboot regardless, in which
case the more safe method to get the debug output is to use a serial console,
such as "com1=115200,n81 console=vga, com1".
I hope this helps.
--
Mats
---------------------------------
From: yang jianguo [mailto:yangjianguo_biy@yahoo.com.cn]
Sent: 20 July 2005 12:33
To: Petersson, Mats
Subject: RE: [Xen-users] Trouble in boot dom0 in xen3.0devel
i change to:
kernel /xen.gz dom0_mem=131072 console=vga
initrd /initrd-2.6.11.2-xen0 root=dev/hda1 ro console=tty0
it said it is not a xen compitable img
so i change to:
kernel /xen.gz dom0_mem=131072 console=vga
module /vmlinuz-2.6.11.2-xen0 root=dev/hda1 ro console=tty0
module /initrd-2.6.11.2-xen0
and it after display info:starting ?ev?, too quick to read, and then the machine
rebooted.
still can not boot
"Petersson, Mats" <mats.petersson@amd.com> wrote:
You need to say "module /initrd-2.6.11.2-xen0" instead of initrd, as
initrd requries (as it says) that the kernel loaded is linux. You''re
using a XEN kernel, which can handle taking a initrd as a module, but not as a
initrd command (I don''t know exactly what the difference is, but trust
me, the module instead of initrd works).
--
Mats
---------------------------------
From: yang jianguo [mailto:yangjianguo_biy@yahoo.com.cn]
Sent: 20 July 2005 12:05
To: Petersson, Mats
Cc: Xen-users@lists.xensource.com
Subject: RE: [Xen-users] Trouble in boot dom0 in xen3.0devel
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
.coooom/xen-users
---------------------------------
DO YOU YAHOO!?
__________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com
__________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com
__________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com
--0-1823176634-1121911683=:32692
Content-Type: text/html; charset=gb2312
Content-Transfer-Encoding: 8bit
<DIV>
<DIV>i added "noreboot" to read the err info:</DIV>
<DIV>Mounted /proc filesystem</DIV>
<DIV>Mounting sysfs</DIV>
<DIV>Creating /dev</DIV>
<DIV>Starting udev</DIV>
<DIV>Creating root device</DIV>
<DIV>Mounting root filesystem</DIV>
<DIV>mount: error 2 mounting ext3</DIV>
<DIV>mount: error 2 mounting none</DIV>
<DIV>Switching to new root</DIV>
<DIV>switchingroot:mounting failed: 22</DIV>
<DIV>umount /initrd/dev failed: 2</DIV>
<DIV>Kernel panic-not syncing: Attempted to kill init!</DIV>
<DIV> </DIV>
<DIV>----The new menu.lst is:-------</DIV>
<DIV> </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
noreboot</DIV>
<DIV>module /initrd-2.6.11.2-xen0</DIV>
<DIV> </DIV>
<DIV>----the initrd-XXX-xen0 is made as:</DIV>
<DIV>mkinitrd initrd-2.6.11.2-xen0
2.6.11.2-xen0<BR><BR><B><I>"Petersson, Mats"
<mats.petersson@amd.com></I></B> 写道:</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=094253711-20072005><FONT
face=Arial color=#0000ff size=2>If you add "noreboot" to the
end of kernel line, the machine shouldn''t try to
reboot on error, at least if the error is caused by something that causes
XEN''s machine_restart to be called. Obviously, if it''s a
triple-fault, then the machine will reboot regardless, in which case the more
safe method to get the debug output is to use a serial console, such as
"com1=115200,n81 console=vga, com1".
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=094253711-20072005><FONT
face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=094253711-20072005><FONT
face=Arial color=#0000ff size=2>I hope this
helps.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=094253711-20072005><FONT
face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=094253711-20072005><FONT
face=Arial color=#0000ff size=2>--</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=094253711-20072005><FONT
face=Arial color=#0000ff
size=2>Mats</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr 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> yang jianguo
[mailto:yangjianguo_biy@yahoo.com.cn] <BR><B>Sent:</B> 20 July
2005 12:33<BR><B>To:</B> Petersson,
Mats<BR><B>Subject:</B> RE: [Xen-users] Trouble in boot dom0
in xen3.0devel<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>i change to:</DIV>
<DIV>
<DIV>kernel /xen.gz dom0_mem=131072 console=vga</DIV>
<DIV>initrd /initrd-2.6.11.2-xen0 root=dev/hda1 ro
console=tty0</DIV>
<DIV>it said it is not a xen compitable img</DIV>
<DIV> </DIV>
<DIV>so i change to:</DIV>
<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>module /initrd-2.6.11.2-xen0</DIV>
<DIV> </DIV>
<DIV>and it after display info:starting ?ev?, too quick to read, and then
the machine rebooted.</DIV>
<DIV> </DIV>
<DIV>still can not
boot</DIV><BR><BR><B><I>"Petersson,
Mats" <mats.petersson@amd.com></I></B>
wrote:</DIV></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=472300711-20072005><FONT
face=Arial color=#0000ff size=2>You need to say "module
/initrd-2.6.11.2-xen0" instead of initrd, as initrd requries (as it says)
that the kernel loaded is linux. You''re using a XEN kernel, which can
handle taking a initrd as a module, but not as a initrd command (I
don''t know exactly what the difference is, but trust me, the module
instead of initrd works).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=472300711-20072005><FONT
face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=472300711-20072005><FONT
face=Arial color=#0000ff size=2>--</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=472300711-20072005><FONT
face=Arial color=#0000ff
size=2>Mats</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr 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> yang jianguo
[mailto:yangjianguo_biy@yahoo.com.cn] <BR><B>Sent:</B> 20 July
2005 12:05<BR><B>To:</B> Petersson,
Mats<BR><B>Cc:</B>
Xen-users@lists.xensource.com<BR><B>Subject:</B> RE:
[Xen-users] Trouble in boot dom0 in
xen3.0devel<BR></FONT><BR></DIV>
<DIV></DIV>
<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>.coooom/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</P></BLOCKQUOTE></BLOCKQUOTE>
<P>__________________________________________________<BR>赶快注册雅虎超大容量免费邮箱?<BR>http://cn.mail.yahoo.com</P></BLOCKQUOTE></BLOCKQUOTE></DIV><p>__________________________________________________<br>赶快注册雅虎超大容量免费邮箱?<br>http://cn.mail.yahoo.com
--0-1823176634-1121911683=:32692--
--===============2109106130=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
--===============2109106130==--