Ubuntu 启动时出现 initramfs

用xen-create-image创建映像和cfg文件后,用xm create -c
vm.cfg启动虚拟机实例,过程中找不到root fs,报错如下:

安装好eucalyptus
,由于打雷,还是把Ubuntu服务器关了,结果第二天来开机发现3台服务器都出现下面的提示,并停在initramfs了@_@

Gave up waiting for root device.  Common problems:
 – Boot args (cat /proc/cmdline)
   – Check rootdelay= (did the system wait long enough?)
   – Check root= (did the system wait for the right device?)
 – Missing modules (cat /proc/modules; ls /dev)
ALERT澳门新葡亰赌995577,!  /dev/xvda2 does not exist.  Dropping to a shell!

Gave up waiting for root device.Common programs:

BusyBox v1.17.1 (Debian 1:1.17.1-8) built-in shell (ash)
Enter ‘help’ for a list of built-in commands.
/bin/sh: can’t access tty; job control turned off
(initramfs)

—Boot args(cat /proc cmdline)

    主要原因在于所使用的内核缺block device driver,所以要安装带有block
device driver的内核,解决方法如下:

—Check rootdelay=(did the system wait long enough?)

     1.# apt-get install -y linux-image-3.0.0-12-virtual

—Check root=(did the system wait for the right device?)

     2.# vi /etc/xen/vm.cfg

—Missing modules (cat /proc/modules: ls /dev)

                 =======================vm.cfg========================

没理由那么杯具吧。按照提示来检查:

           […]

1.Boot args