WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] xen-create-image:ALERT! /dev/xvda2 does not exist. Dropping

To: "xen-users" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] xen-create-image:ALERT! /dev/xvda2 does not exist. Dropping to a shell
From: "350608693" <350608693@xxxxxx>
Date: Thu, 8 Sep 2011 20:49:59 +0800
Delivery-date: Thu, 08 Sep 2011 05:51:10 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s0907; t=1315486200; bh=0+b2ZnERD0S3owCMbAQ5CU6a24bMxR3l3DWaWd1G8HQ=; h=X-QQ-SSF:X-QQ-BUSINESS-ORIGIN:X-Originating-IP:X-QQ-STYLE: X-QQ-mid:From:To:Subject:Mime-Version:Content-Type: Content-Transfer-Encoding:Date:X-Priority:Message-ID:X-QQ-MIME: X-Mailer:X-QQ-Mailer; b=cm/cWv9FHSLDzA3He2EBbhs8PYeuSJx38uATiIGxCD1avCr+IxvV50AOCqH9/5Bat 5MRP+lkuNAkBntCd00z2QwHl2yeJEp+wfJ+mo2J0yppXcMIB0gylW9oaDuYwOzL
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
hi,
i install xen-4.2 on debian6.0(i386)/squeeze,and the dom0 kernel is 2.6.32.40.
i create a domU successfully using xen-create-image:xen-create-image --hostname localhost --ip 192.168.226.242 --verbose
******************************************************
...............................
..............................
Installation Summary
---------------------
Hostname        :  localhost
Distribution    :  squeeze
IP-Address(es)  :  192.168.226.242
RSA Fingerprint :  4b:77:cb:03:27:ca:ae:06:08:f5:15:99:c3:6c:20:7f
Root Password   :  N/A
*******************************************************
but when i start this domU(xm create -c /etc/xen/localhost.cfg),error happens:
Loading, please wait...
[    6.032277] udev[1065]: starting version 164
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Waiting for root file system ... done.
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)
 
 
and the /etc/xen-tools/xen-tools.conf is as follows:
install-method = debootstrap
size   = 4Gb      # Disk image size.
memory = 512Mb    # Memory size
swap   = 512Mb    # Swap size
fs     = ext3     # use the EXT3 filesystem for the disk image.
dist   = squeeze # Default distribution to install.
image  = sparse   # Specify sparse vs. full disk images.
gateway    = 192.168.226.1
netmask    = 255.255.255.0
broadcast  = 192.168.226.255
passwd=1
dir=/var/lib/xen
kernel = /boot/vmlinuz-`uname -r`
initrd = /boot/initrd.img-`uname -r`
mirror_squeeze =
http://mirrors.163.com/debian/
ext3_options     = noatime,nodiratime,errors=remount-ro
ext2_options     = noatime,nodiratime,errors=remount-ro
xfs_options      = defaults
reiserfs_options = defaults
btrfs_options    = defaults
serial_device = hvc0
disk_device = xvda
 
localhost.cfg is as follows:
kernel      = '/boot/vmlinuz-2.6.32.40'
ramdisk     = '/boot/initrd.img-2.6.32.40'
vcpus       = '1'
memory      = '512'
#
#  Disk device(s).
#
root        = '/dev/xvda2 ro'
disk        = [
                  'file:/var/lib/xen/domains/localhost/disk.img,xvda2,w',
                  'file:/var/lib/xen/domains/localhost/swap.img,xvda1,w',
              ]

#
#  Physical volumes
#

#
#  Hostname
#
name        = 'localhost'
#
#  Networking
#
vif         = [ 'ip=192.168.226.242,mac=00:16:3E:AA:9A:30' ]
#
#  Behaviour
#

on_reboot   = 'restart'
on_crash    = 'restart'
I google it for days,but get no constructive suggestions.could anyone tell me how to address this problem in details?
 
best regards
 
yours
yunjie du
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users