[Fedora-xen] Re: DomU boot on Fedora 6 fails with 'VFS: Cannot open root device'
Anne Facq
annefacq at crpp-bordeaux.cnrs.fr
Fri Feb 23 06:51:06 UTC 2007
Hi
Thanks to Sadique Puthen, here is the solution to my problem :
- create an initrd image with --with=xennet --preload=xenblk options
- specify that using "ramdisk = <path to initrd>" in the configuration
file for guest.
Anne Facq wrote:
> Hello
>
> I have got a problem booting a DomU on Linux Fedora Core 6 (kernel
> 2.6.19-1.2895.fc6xen)
>
> I did the following operations :
>
> 1) dd if=/dev/zero of=/home/xen/vm1 bs=1k seek=6144k count=1
>
> 2) mkfs.ext3 /home/xen/vm1
>
> 3) mount -o loop /home/xen/vm1 /mnt
>
> 4) cp -ax /{root,dev,var,etc,usr,bin,sbin,lib,boot} /mnt
> 5) mkdir -m 755 /mnt/{proc,sys,home,tmp,mnt}
>
> 6) DomU fstab :
> /dev/sdb1 / ext3 defaults 1 1
> devpts /dev/pts devpts gid=5,mode=620 0 0
> tmpfs /dev/shm tmpfs defaults 0 0
> proc /proc proc defaults 0 0
> sysfs /sys sysfs defaults 0 0
>
>
> 7) cat > /etc/xen/vm1
> kernel = "/boot/vmlinuz-2.6.19-1.2895.fc6xen"
> memory = 512
> name = 'vm1'
> vif = [ '' ]
> disk = [ 'file:/home/xen/vm1,sdb1,w' ]
> root = '/dev/sdb1 ro'
> extra = 'ro selinux=0 3'
>
> 8) When I launch :
> xm create -c vm1
>
> I get the following error message :
> ----
> VFS: Cannot open root device "sdb1" 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)
> ----
>
> I tried several devices but I got the same message
>
> Any advice ?
>
> Thanks in advance.
>
> Anne Facq
>
More information about the Fedora-xen
mailing list