|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-users
Re: [Xen-users] unknown-block(0,0) 
| 
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.
 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")
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)
 
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
 | 
 |  | 
  
    |  |  |