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

Re: [Xen-users] unknown-block(0,0)

To: Suman K <kanugantisuman@xxxxxxxxx>
Subject: Re: [Xen-users] unknown-block(0,0)
From: Yongkang You <yongkang.you@xxxxxxxxx>
Date: Mon, 22 Jan 2007 13:15:08 +0800
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 21 Jan 2007 21:15:02 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <925638.63468.qm@xxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <925638.63468.qm@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)
Suman K wrote:
I am using 2.6.18-1.2869.fc6xen and xend starts fine.
However, I am trying to create the guest and running
into the block device problem. I got the image from
jailtime.org for fedora6. My config file: kernel = "/boot/vmlinuz-2.6.18-1.2869.fc6xen"
memory = 64
name = "fedora.fc6"
vif = [ '' ]
dhcp = "dhcp"
disk = ['file:/etc/xen/fedora.fc6.img,sda1,w',
'file:/etc/xen/fedora.swap,sda2,w']
1. If the image has partition, it should be sda, not sda1.
"fdisk -l /etc/xen/fedora.fc6.img" can see if it has partition.

root = "/dev/sda1 ro"

I always ran into this.

VFS: Cannot open root device "sda1" or
unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root
fs on unknown-block(0,0)


2. It need to make sure /etc/fstab is also use the same disk type, which described in XenU config file (root = "/dev/sda1 ro")

How to modify /etc/fstab of XenU disk image?
a) If it is a partition image (sda1), it can be mounted directly by:
        mount -oloop /etc/xen/fedora.fc6.img /mnt/

b) If it is a disk image (sda),  the root partition can be mounted by:
        lomount -t ext3 -partition 1 -diskimage /etc/xen/fedora.fc6.img /mnt/

After that, edit /mnt/etc/fstab and make use the "/" partition is set to sda1.

BTW, if you meet another issue, you might refer http://wiki.xensource.com/xenwiki/Fedora5Xen0DomU?highlight=%28fedora%29

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

<Prev in Thread] Current Thread [Next in Thread>