手机版
你好,游客 登录 注册
背景:
阅读新闻

xen-tools创建虚拟机找不到root fs的解决办法

[日期:2012-04-07] 来源:Linux社区  作者:dchampion [字体:大 中 小]

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

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!  /dev/xvda2 does not exist.  Dropping to a shell!

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)

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

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

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

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

           [...]

           kernel      = '/boot/vmlinuz-3.0.0-13-virtual'
           ramdisk     = '/boot/initrd.img-3.0.0-13-virtual'
           [...]

      3.问题解决

linux
相关资讯       Xen 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款