[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-users] Trouble in boot dom0 in xen3.0devel


  • To: "Petersson, Mats" <mats.petersson@xxxxxxx>
  • From: yang jianguo <yangjianguo_biy@xxxxxxxxxxxx>
  • Date: Thu, 21 Jul 2005 10:08:03 +0800 (CST)
  • Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 21 Jul 2005 02:06:59 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=x7VXA82vItkd69s9R3gUwwJj3uef+7kHC/QUsM9IzvEUPaD2IORlSpQ8h0ck73HwTPOPr3JLyxy/2w4jIx33bpOsnOievsL2ZNXPrUjmSivKUBCKG9+Ghads6LEYZt1kv52VCyOnM0zM0zYmtmh0nUbXaP6qSwlNArWk29hqqHg= ;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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@xxxxxxx> 写道:
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@xxxxxxxxxxxx]
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@xxxxxxx> 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@xxxxxxxxxxxx]
Sent: 20 July 2005 12:05
To: Petersson, Mats
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
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@xxxxxxx> 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@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of yang jianguo
Sent: 20 July 2005 10:03
To: Xen-users@xxxxxxxxxxxxxxxxxxx
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

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.