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] CentOS 5.1 and Xen - mount: could not find filesystem '/

To: Erich Weiler <weiler@xxxxxxxxxxxx>
Subject: Re: [Xen-users] CentOS 5.1 and Xen - mount: could not find filesystem '/dev/root'
From: Jeff Cronstrom <jeff@xxxxxxx>
Date: Fri, 14 Dec 2007 09:41:04 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 18 Jan 2008 09:14:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47629314.9070408@xxxxxxxxxxxx>
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: <47629314.9070408@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Erich,

Make sure that your LVM is active.
I have seen an issue like yours before when trying to boot a VM from a
physical partition with a Logical Volume that was not active.

try running lvscan and make sure that "tcga1vg/tcga1root" is active.

You should output something like this...

[xenuser@XEN-Host-1 ~]# lvscan
  ACTIVE   Original '/dev/Share2/Web2' [8.00 GB] inherit
  ACTIVE   Snapshot '/dev/Share2/new_snapshot' [82.43 GB] inherit
  ACTIVE            '/dev/Share3/Spam1' [8.00 GB] inherit
  ACTIVE            '/dev/Share3/Spam2' [8.00 GB] inherit
  ACTIVE            '/dev/Share3/Spam3' [8.00 GB] inherit
  ACTIVE            '/dev/Share3/Spam4' [8.00 GB] inherit
  ACTIVE            '/dev/Share3/Spam5' [8.00 GB] inherit
  ACTIVE            '/dev/VolGroup00/LogVol00' [66.28 GB] inherit
  ACTIVE            '/dev/VolGroup00/LogVol01' [1.94 GB] inherit
  ACTIVE            '/dev/Share1/XenOS' [90.44 GB] inherit

As far as whether it is para or fully virtualized that depends on how it
is installed. I just work with para-virtualized systems so I do not know
what to look for in the config for a fully virtualized VM.


Jeff

On Fri, 2007-12-14 at 06:28 -0800, Erich Weiler wrote:
> Hi all-
> 
> I'm hoping someone can help me with this problem with Xen under CentOS 
> 5.1 (RHEL 5.1) I'm having... This is the Xen package that comes stock 
> with the distribution, I didn't compile it from source.  I can boot 
> Domain0 and the hypervisor just fine.  I'm trying to bring up a Xen 
> guest VM and it crashes on boot, with this error:
> 
> # xm create -c tcga1 vmid=1
> 
> ...
> Creating root device.
> Mounting root filesystem.
> mount: could not find filesystem '/dev/root'
> Setting up other filesystems.
> Setting up new root fs
> setuproot: moving /dev failed: No such file or directory
> no fstab.sys, mounting internal defaults
> setuproot: error mounting /proc: No such file or directory
> setuproot: error mounting /sys: No such file or directory
> Switching to new root and running init.
> unmounting old /dev
> unmounting old /proc
> unmounting old /sys
> switchroot: mount failed: No such file or directory
> Kernel panic - not syncing: Attempted to kill init!
> 
> I can't for the life of me figure this out... Here is my domain config 
> file info:
> 
> kernel = "/boot/vmlinuz-2.6.18-53.1.4.el5xen"
> ramdisk = "/boot/initrd-2.6.18-53.1.4.el5xen.img"
> memory = 4096
> name = "tcga1"
> cpus = "" # leave to Xen to pick
> vcpus = 2
> vif = [ '' ]
> disk = [ 'phy:tcga1vg/tcga1root,sda1,w' ]
> disk = [ 'phy:tcga1vg/tcga1data,sda2,w' ]
> disk = [ 'phy:tcga1vg/tcga1swap,sda3,w' ]
> root = "/dev/sda1 ro"
> extra = "selinux=0 3"
> 
> I tried making a custom initrd file with --preload=xennet 
> --preload=xenblk and that didn't seem to help...  Also I'm using LVM for 
> my disk devices but I don't think that should make a difference?
> 
> I have the guest domain VM configured in fstab to reference sda1, sda2 
> and sda3 as noted in the above config... Does anyone have guidance for me?
> 
> Also, one other question... Given my above config, is this VM running in 
> para-virtualized mode or full-virtualized mode? I think it's para but 
> hard to know for sure...
> 
> Thanks much in advance!
> 
> -some_guy
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] CentOS 5.1 and Xen - mount: could not find filesystem '/dev/root', Jeff Cronstrom <=